Repository navigation
chore(tui): add PTY command surface coverage - #119165
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 6:05 AM ET / 10:05 UTC. ClawSweeper reviewWhat this changesThis PR adds three QA Lab scenarios and real-PTY assertions for TUI slash commands, model/session pickers, and settings changes. Merge readinessKeep open: the updated head resolves both prior PTY-proof blockers and adds useful fake-backend terminal coverage without changing production behavior; no actionable patch finding remains. Priority: P3 Review scores
Verification
How this fits togetherThe TUI turns terminal input into command, picker, and settings actions through flowchart LR
A[Terminal input] --> B[TUI command handlers]
B --> C[PTY harness]
C --> D[Fake backend calls]
C --> E[Authenticated terminal frames]
D --> F[Focused assertions]
E --> F
F --> G[QA evidence scenario]
Decision needed
Why: The protected maintainer label requires an explicit human merge judgment even though the exact reviewed head has no actionable finding. Before merge
Agent review detailsSecurityNone. PR surfaceSource +109, Tests +2, Other +40. Total +151 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical fake-backend PTY harness, land the three focused cases after a current-main refresh, and avoid claiming that they prove Gateway, provider, persistence, or live-streaming behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than repairing a separately reported runtime failure; its focused PTY paths are source-traceable. Is this the best way to solve the issue? Yes. Reusing the existing fake-backend AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a7cca37838ac. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
8e44f45 to
942e501
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…checkpoint * origin/main: (46 commits) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) fix(scripts): prevent gateway benchmarks from stalling on probes (#119063) test(channels): verify built sanitizer semantics (#119151) fix: prevent live updater from leaving Gateway offline indefinitely (#119116) test(qa): restore memory tools primary ownership (#119142) fix(agents): settle yielded fanout at harness boundary (#118703) fix(codex): cap compaction override warning cache via createDedupeCache (#101745) fix(daemon): skip unlabeled launchd plists (#119091) test(qa): repair QA catalog integrity (#119140) ...
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) ...
…time * origin/main: (177 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (openclaw#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (openclaw#119218) test(qa): cover Canvas agent and node controls (openclaw#119047) fix(cli): avoid repeated migration scans during local agent turns (openclaw#119051) fix(gateway): keep agents list on prepared model facts (openclaw#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (openclaw#119121) fix(qqbot): keep channel API calls on the active account [AI] (openclaw#118575) fix(agents): recover from invalid compaction summaries (openclaw#119137) fix(gateway): expose OAuth-backed tools to CLI agents (openclaw#119166) fix(plugins): preserve metadata reloads during models status (openclaw#119183) fix(test): bound direct gateway server runs (openclaw#119184) test(tui): prove command surfaces through PTY (openclaw#119165) fix(testbox): restore claims across path aliases (openclaw#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (openclaw#119164) fix(testbox): remove changed-gate sync residue (openclaw#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (openclaw#118998) ...
What Problem This Solves
The TUI command surfaces lacked primary real-PTY QA evidence for slash commands, model and session pickers, and settings updates.
Why This Change Was Made
Adds one QA scenario with exact anchored cases through the fake-backend
runTui()PTY harness. The assertions reuse the landed synchronized final-screen oracle, preserve the existing slash-help markers, and add authenticated final-frame and backend-execution proof without changing production behavior.User Impact
No runtime behavior changes. Regressions in slash command listing and execution, picker selection, and settings updates now fail through the real terminal boundary.
Evidence
942e50121934f17407479a17d48b3443a166dd81.artifacts/qa-e2e/tui-command-surfaces-pty-exact-head-942e50121934f17407479a17d48b3443a166dd81-20260804/qa-evidence.json3passed,0failed; exact primary coverage fortui.slash-commands,tui.pickers, andtui.settingsSlash commands:,/help,/verbose,/reasoning,/goal,/goal start,/btw,/queue,/stop, and/exit; authenticated final rows include/settingsand/exit;/gateway-statusexecutes against the fixture backendloadHistorycalls, then Show thinking causes exactly one2passed3passed,57skippedgit diff --check, privacy scan, signature verification, and artifact reference validation passedrun_0d629c09cbebpassed all earlier guards, then stopped only on a pre-existingsrc/config/**dead-export inventory; no T04b path or symbol was listedgpt-5.6-sol, high): no accepted/actionable findings; patch correct at0.91+0; QA/test+180/-29; no docs, taxonomy, changelog, dependency, or T02 local-Gateway changes