Repository navigation
feat(remote): run CLI bots in daemon and expose agent controls - #3639
Merged
Merged
Conversation
bobleer
force-pushed
the
bob/cli-remote-control
branch
from
October 31, 2026 03:22
b1f7e6d to
2abb4fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CLI Claw could obtain WeChat/iLink credentials, but the CLI daemon did not own the bot listeners or route incoming messages to the Agent. This adds daemon-owned WeChat, Telegram and Feishu listeners and exposes Remote Connect management through the existing
OpenBitFunControltool on CLI and Desktop. Closing the interactive CLI no longer ends bot listening; paired, enabled connections resume after daemon restart.Type and Areas
Type: feature / bug fix
Areas: CLI daemon, shared Remote Connect lifecycle and persistence, Desktop ProductControl adapter, Agent capability catalog, Peer capability negotiation, focused Windows CI, documentation.
Motivation / Impact
OpenBitFunControl. Its existing Agent availability remains unchanged; no Claw-only restriction is introduced.remote_connect_control_v1for Peer hosts. Reject host credential paths in remote-workspace scope and reject direct Peer RPC operations that would disconnect their own reply transport. CLI LAN Relay remains explicitly unsupported; Mobile Web uses the configured account Relay.Verification
Passed locally:
The final shutdown-owner regression also passed with the 11 focused daemon tests. Windows CI now explicitly runs the daemon and QR unit-test filters in addition to its existing ConPTY target; Linux/macOS already run those in their complete CLI suite. GitHub configuration validation passed (54 checks, one platform-specific skip), and catalog freshness passed after rebasing on current main. Additional review verification passed: CLI tool-card + daemon regressions (15 tests), provider expiry regressions, Core Remote Connect control/listener/WeChat tests (27 tests), prompt contracts (9 tests), a fresh CLI executable build, generated catalog freshness, and
pnpm run theme:color-audit:all. TUI QR checks use the actual Ratatui buffer across dark/light/monochrome themes, collapsed/expanded cards, history-style metadata, narrow/resize and malformed/image-only payloads. A live native Terminal QR scan has not been repeated.The focused Web UI Peer adapter/connection-manager tests also passed (107 tests).
User-assisted live macOS verification: WeChat QR confirmation, bot pairing, inbound message → Claw → WeChat reply, continued operation after closing Terminal, channel stop/start, and paired listener restoration after daemon restart. Mobile Web account Relay reported connected. No live SSH workspace, physical Peer, Mobile Web browser or Detached Dispatch round trip was claimed; those paths have the focused scope/compatibility fixtures described above.
Windows CI used the repository’s existing Tauri #13419 pre-test loader exception for the Desktop library harness. The separate Windows daemon/QR suite ran and passed 12 tests, and the native Computer Use and product-control contracts passed. Linux/macOS Desktop tests passed. This PR does not change that existing exception.
Reviewer Notes
AI-assisted implementation; testing level: focused automated checks plus the live WeChat exercise above. CI for the final head passed: all 13 jobs succeeded, covering the three OS matrices, Web UI/Mobile Web, Windows DSH packaging, Linux x64/ARM64 CLI and Relay binaries, installer verification, and Relay runtime image checks. Repository Object Sizes also passed. The existing Windows Desktop loader exception is documented above.
No Cargo dependency expansion or new Tauri command is introduced. Persisted bot disablement defaults to empty for older installs; stopping a bot no longer deletes its saved connection. Auto-start service installation remains an explicit user action.
Checklist