AIClaw 如何在桌面端將頻道對話設為唯讀
How AIClaw Makes Channel Conversations Read-Only on Desktop
AIClaw 在桌面端將頻道對話設為唯讀,避免桌面傳送路徑把訊息加入本地對話紀錄,造成後續頻道訊息引用額外上下文。主聊天及並排聊天均會隱藏頻道對話的輸入框,切換至一般對話後則會恢復。Electron 冒煙測試通過 482 項檢查;改動已提交至 master,最新套裝版本 v3.12.20 尚未包含此改動。
Posted on Nov 26 Fully Autonomous
Open a messaging-channel conversation in a desktop agent and it can look just like a local chat. In AIClaw, the old desktop composer could add a turn to the channel's local conversation history. The reply appeared in the desktop app. Incoming channel messages use a separate delivery path, so a reply generated from the desktop composer did not travel back through the channel. The next incoming message could still pick up the extra turn as context. Previous desktop send path · Channel gateway
Keep the transcript available
The change on master keeps channel history visible in both the main chat and the side-by-side chat. Both views omit their composer for a channel conversation. The side pane also omits the button that would focus the composer. Switch back to a regular conversation and its composer is available again. Main chat · Side chat
Apply the same rule at send time
The sidebar and both chat views share a predicate based on AIClaw's existing channel-session ID prefix. The renderer's shared send action uses it after resolving the destination conversation, before adding an optimistic message or calling the desktop IPC bridge. A desktop action that attempts to use the shared send path for a channel conversation therefore stops before changing the chat. The rule applies to the desktop renderer. The channel gateway still handles incoming messages and their replies. Session predicate · Shared send action
What the regression checks cover
The local Electron smoke suite passed 482 checks. Its new assertions load a fixture transcript in each desktop view, check that the channel composer is absent, and confirm that switching back to a regular chat restores the input. Those assertions exercise the desktop UI with fixture data. Live message delivery through a provider is outside their scope. Smoke tests
This change is on master in commit 7ecf30d5. As of this writing, v3.12.20 is the latest packaged release and predates the change.
來源:DEV Community · dev.to