feat(mobile): support remote CLI slash commands#4547
Conversation
…-cli-slash-commands
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of commits since the last pass (mobile chat-composer voice-input wiring, session context-usage header/sheet integration, and the Files Reviewed (10 files)
Previous Review Summary (commit 4d916a8)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4d916a8)Status: 1 Issue Found | Recommendation: Address before merge Executive SummaryA required-with-no-default Overview
Issue Details (click to expand)WARNING
Files Reviewed (46 files)
Reviewed by claude-sonnet-5 · Input: 48 · Output: 13.3K · Cached: 1.5M Review guidance: REVIEW.md from base branch |
…-cli-slash-commands # Conflicts: # apps/mobile/src/components/agents/chat-composer.tsx # apps/mobile/src/components/agents/session-detail-content.tsx
…-cli-slash-commands
…-cli-slash-commands
|
@kilocode-bot review the latest head |
|
To use Kilo from GitHub you first need to link your GitHub account to Kilo. Link your Kilo account to continue. After linking, mention me again in this issue or pull request. |
|
@kilocode-bot review the current latest head 49dc920 |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryNo new PR-authored code changes since the last review; the head advanced only via an empty Files Reviewed (0 files)
Previous Review Summaries (2 snapshots, latest commit 8ec6d16)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8ec6d16)Status: No Issues Found | Recommendation: Merge Executive SummaryNo new PR-authored code changes since the last review; the head advanced only via an empty Files Reviewed (0 files)
Previous review (commit a5d97fd)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of the diff since the last reviewed commit ( This change directly resolves the single issue flagged in the previous review: Detailed FindingsPreviously flagged issue — now resolved ✅
Correctness
Security
Quality (non-blocking nit)
Files Reviewed (3 files)
Note: the Reviewed by claude-sonnet-5 · Input: 26 · Output: 3.2K · Cached: 450.1K Review guidance: REVIEW.md from base branch |
|
Review already posted at head Only substantive change since last review was |
…-cli-slash-commands # Conflicts: # apps/mobile/src/components/agents/session-detail-content.tsx # apps/web/src/lib/cloud-agent-sdk/cli-live-transport.ts
|
(bot) @kilocode-bot review the latest head |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryFull-diff review of the current head ( The exit feature is layered cleanly on the existing remote-slash-command design and stays fail-closed end to end:
Security: No regressions. Command surface is allowlisted and owner-fenced at the relay; catalog size (512 KiB), per-string (2,000), hint (32), and command-count (256) caps are unchanged; parsers fail closed on unknown/extra keys. No tokens, credentials, or command payloads are logged; forwarded CLI error strings go only to the requesting owner. Correctness: Generation/owner guards, in-flight dedupe, and deep-copy snapshotting of the command catalog are preserved across the new paths. Test coverage is strong (relay allowlist/validation, SDK exit/create parsing and fencing, mobile confirmation/submit-lock/routing). Non-blocking nits
Files Reviewed (core source, 12 files)
Accompanying test files were reviewed for coverage but omitted for brevity. The |
|
Review already posted: no issues found, recommendation is merge. #4547 (comment) 3 non-blocking nits noted (display-vs-execution mismatch on |
Summary
/compact, without forwarding known commands as model text/newfor remote sessions, create a root session in the same CLI workspace, and replace the route with the returned session IDCoordinated change
Verification
pnpm typecheck,pnpm lint,pnpm check:unused,pnpm format:checkpnpm typecheck,pnpm lintpnpm typecheck,pnpm lint/compact,/new, and registered commands/compacttriggered actual CLI compaction/newcreated and opened a new session; Agents list showed both sessions/compactdraftE2E environment