feat(cli): send, wait, logs, screen, events, api, completion (4/5) #341
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 338 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #341"
general
weight: 0.35
mzdluo123
Summary
Fourth implementation PR of
add-agent-shell-control(stacked on #340). Scope:tasks.md§2 (except 2.7, done in 2/5), §1.4 and §7.4. CLI only.send SESSION [TEXT|-] [--enter] [--key NAME]...(US-S09): one acknowledged submission (exit 0 only onwritten), then named keys (enter esc tab ctrl-c ctrl-d up down left right backspace). It takes control like browser typing, labelledscript(plus the source session inside one).--wait STATEsubscribes before sending, so a stale idle cannot end the wait. Chat-side hybrid sessions are refused with a pointer tochat send.wait SESSION... --until STATESwith--changed,--stable,--any,--timeout(124),--json.logs(US-S10): raw buffer,--strip,--tail N, or--followas an observer.screenrenders the replay with thexterm-go/vtemulator the server's preview already uses — client side, no server emulation, no new dependency — and prints plain text or--json{cols, rows, cursor, altScreen, lines}.events(US-S11):/ws/sessionsas NDJSON,--sessionfilter, reconnects with a new snapshot.api: raw/api/and/local/v1/requests (JSON body, WebSocket paths refused).kill,rm,rename.completion bash|zsh|fish+ hidden__complete(US-S12): commands, options, enum values and live session IDs/launch configs/repositories/worktrees/topics, 1 s timeout, silent without a server.sessionsandrecipescover the new commands; command reference regenerated.Spec adjustments in this PR
screendrops--ansi(plain text only) and reusesxterm-go/vtinstead of a new library (design D15);logs --tailand--followare mutually exclusive.Verification
cmd/webmux/control_cli_test.goagainst a real server: api (raw,/ws/refused, invalid JSON, 404), send + logs round trip,--tail, unknown key,send --wait exited --jsonreading the exit code,wait(current state, timeout 124,--changednot satisfied by an old state),screentext and JSON of a full-screen paint, firsteventsline is the snapshot, rename/kill/rm, completion candidates incl. live session IDs.COMPREPLYchecked (fish/zsh are not installed here; the fish case runs when available).go test -raceforinternal/sessioncmd,cmd/webmux,internal/archtest,internal/localclient,internal/agentguide;go vet ./...; golangci-lint v2.15.0; Windows cross-compile; darwin vet.User stories
US-S09–US-S12 added; coverage index and verification log updated.
---
_Generated by Claude Code_