feat(cli): add session-based run interaction #6133
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6133"
general
weight: 0.35
chinawch007
Summary
A supervising agent cannot currently answer a headless Maka AskUser and continue the same Turn: the blocking CLI stops it instead. This change returns the questions as
needs_inputwith exit code 0, leaves the Host Turn waiting, and lets a later CLI invocation answer it and receive the original Turn result.--sessioncontrols inherit saved permissions without requiring another--yolo. Only explicit--yoloelevates access, after action preflight checks. Status shows the actualexecutionBoundary, so inheriting bypass cannot be mistaken for an enforced read-only task. Preserve the legacy blocking--resume <id>confirmation, limits, Graph completion, and cancellation behavior.submission: started/queued/steeringfrom the currently observed Session status. A queued receipt can carry the predecessor's AskUser or sandbox request. Omit queue counts until the projection reaches the admitted epoch/revision rather than publishing a stale count. Status also exposes Host-published provider retry information.--jsonwith the Session ID and diagnostic. Session result replay recognizes a successful same-tool/same-argument retry in a later step while preserving unrelated unresolved sandbox failures and the blocking denial policy.submission: "inbox"without a worker result, queue count, or worker-Turn wait; retain existing worker queue/steer semantics.skills/maka-cliand English/Chinese usage guidance. For coordination, submit with--queue --no-waitand service Session wait/answer interactions.--queue --waitretains exact-message result tracking; it does not hand off a predecessor's question. Result reads remain final-result queries, not progress streams.Changes are limited to
packages/cliandskills/maka-cli. Sandbox approval requires exactly one pending request, continues its original Turn/Run, and expands the saved managed boundary without switching to bypass. A response with an uncertain outcome is not automatically retried. Unsupported permission/form interactions can be handled in an interactive client or stopped explicitly.Client-owned MCP continuation across CLI exits and Graph question handoff remain unsupported. Blocking MCP behavior is preserved; nonblocking submission refuses to detach invocation-owned MCP servers. Local temporary npx execution retains the blocking path because it can own the Host lifetime. Ordinary blocking runs still wait by default, except built-in AskUser returns a structured handoff: scripts must inspect status rather than interpret exit 0 alone as final completion.
Verification
--json, and ordinary terminal failure JSON. The real-Host sandbox scenario now includes an initial failed Fetch and its successful retry after approval; wait and subsequent result agree. Negative cases retain same-step, different-tool/argument, missing-evidence and additional unresolved failures. Replacing the classifier with its previous implementation fails both the real-Host recovery and focused positive regression.--yolo; afterward new task/queue/answer all succeeded without repeating it, with boundary revision unchanged and separate results preserved.git diff --checkpass. Skill validation/discovery and all 13 command examples pass. Full repository tests and native Windows/macOS runs were not performed; hosted CI status is reported by GitHub checks.AI use
Tool(s) and scope: Codex assisted with design, source review, implementation, documentation, and tests. Commits include a
Generated-by: Codextrailer. This PR description was prepared with Codex.Checklist
Does this PR entail a change in behavior?