Repository navigation
chore(tui): add Gateway boundary PTY coverage - #119191
Conversation
* origin/main: (53 commits) 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) fix(test): isolate shared state between test files (#118781) fix(telegram): use monotonic polling liveness fix(setup): keep compatible Claude wrappers selectable fix(agents): gate Claude live session protocol fix(agents): preserve Claude fork successor on stalls fix(agents): preserve Claude follow-up replies after background tasks fix: unblock macOS release validation (#119110) improve(qa): cover vision channel offload (#118862) test(qa): cover sandboxed exec behavior (#119053) ...
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 9:15 AM ET / 13:15 UTC. ClawSweeper reviewWhat this changesAdds a QA scenario and built-CLI PTY tests for TUI Gateway connection, authentication, history attach, reconnect, and command RPC behavior. Merge readinessNo blocking correctness finding. This maintainer-owned QA-only PR should remain open for exact-head CI completion and normal maintainer review. Priority: P3 Review scores
Verification
How this fits togetherThe TUI CLI connects to the Gateway over WebSocket and renders session state in a terminal. The added QA producer runs that real Gateway/PTY boundary and records assertion-level evidence. flowchart LR
Scenario[QA scenario] --> Producer[Evidence producer]
Producer --> BuiltCli[Built TUI CLI]
BuiltCli --> Gateway[Gateway WebSocket]
Gateway --> Sessions[Session and model state]
BuiltCli --> Assertions[PTY assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +264, Other +40. Total +304 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the real Gateway/PTY coverage and land it after the exact-head merge and CI gates are green. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds durable regression coverage rather than reporting a user-facing failure; its stated path is a real Gateway plus built CLI and PTY. Is this the best way to solve the issue? Yes: extending the shared real-Gateway fixture with isolated client/session assertions tests the owner boundary without duplicating runtime behavior or mocking transport. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2b90e6e71c5. LabelsLabel 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
History |
|
Merged via squash.
|
* 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) ...
* origin/main: 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)
* origin/main: chore(tui): add Gateway boundary PTY coverage (#119191)
* test(tui): prove gateway boundary flows * test(tui): tighten gateway boundary assertions * test(tui): satisfy gateway boundary lint * test(tui): harden gateway boundary PTY proof * test(tui): strengthen gateway lifecycle proof * test(tui): validate gateway history metadata * test(tui): isolate gateway model proof * test(tui): isolate gateway model replies * test(tui): isolate gateway boundary fixtures * test(tui): settle gateway session adoption
* 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) ...
Additional instructions
Allow edits from maintainers is enabled.
What Problem This Solves
The TUI's real Gateway boundary did not have one durable built-CLI scenario proving connection, authentication isolation, attach history, reconnect visibility, and command RPC behavior through an actual WebSocket and PTY.
Why This Change Was Made
This adds QA-only shared-Gateway PTY cases plus one mapped QA scenario for the five approved coverage IDs. It uses the canonical synchronized final-screen oracle for attach history, authoritative Gateway history/session reads for lifecycle invariants, isolated model fixtures, and redacted token-leak checks. Production code is unchanged.
User Impact
No production behavior changes. Maintainers gain exact built-CLI regression evidence for the TUI/Gateway ownership boundary.
Evidence
222d09dbaee6b00199610e1ee4fd04bb9aeefd00run_050a5560414c; the raw image lacked dependencies before build, so the same lease and checkout continued without sync or source changesrun_719bd298d59d, build status 0;dist/build-info.jsonwas not emittedrun_84aab0825e6f, final status 0222d09dbaee6b00199610e1ee4fd04bb9aeefd00origin/main@b4f01afa861be479fe5bb7922e19f29582d1e9e0, zero touched-path drift and a conflict-free merge tree from merge-baseb6a445c393ec378d066ced0d31b679ad4c6c2f72; no rebase for unrelated movementrun_3c582b27e42f; 3 passed / 0 failed / 13 skipped, then 16 passed / 0 failedgit diff --check, exact type/format/oxlint gates, and targeted static checks passed