Repository navigation
test(tui): prove editor input through PTY - #118982
Conversation
|
@clawsweeper review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
6fdf9cf to
b563fe0
Compare
|
@clawsweeper review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: found issues before merge. Reviewed August 3, 2026, 6:13 PM ET / 22:13 UTC. ClawSweeper reviewWhat this changesThis PR adds a QA Lab scenario and four real-PTY editor-input assertions for TUI history, shortcuts, paste admission, IME, and AltGr handling. Merge readinessKeep open: the exact head provides useful TUI PTY coverage and resolves the prior max-lines suppression, but it has not applied the requested structural split and replaces it with unreadable formatter-ignored test code. Priority: P3 Review scores
Verification
How this fits togetherThe TUI converts terminal bytes into editor actions and submitted messages; the PTY harness drives that loop against a fake backend, while QA Lab authenticates selected assertions as scenario evidence. flowchart LR
A[Terminal input] --> B[PTY harness]
B --> C[TUI terminal loop]
C --> D[Editor and submission]
D --> E[Fake backend log]
B --> F[QA evidence producer]
F --> G[QA scenario result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +27, Other +52. Total +79 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Extract the independent editor-input flows into a focused sibling PTY test file, reuse the fixture support, and update the producer allowlist and scenario patterns without changing the tested runtime behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds coverage rather than fixing a reported production failure; its exact-head real-PTY check is supplied as supporting evidence. Is this the best way to solve the issue? No. Removing the max-lines suppression is insufficient because the independent cases remain compressed in the oversized harness; a sibling test file is the clearer, maintainable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d3ea24c669da. 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)
|
b563fe0 to
d6b9971
Compare
|
@clawsweeper review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper disposition for exact head
No production code or additional files are in scope. The maintainer review |
|
Merged via squash.
|
…r-admin-20260803 * origin/main: (89 commits) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) ...
…ansports-20260803 * origin/main: (120 commits) test(ui): add service-worker update primary QA proof (#118805) test(qa): cover CLI onboarding and plugin install sources (#118882) test(qa): cover remote logging boundaries (#118951) fix(sms): retry transient MMS failures before durable adoption (#118994) test(qa): cover video generation invocation (#118864) test(qa): cover media reference intake (#118858) test(qa): cover image generation task lifecycle (#118915) feat(sms): track Twilio delivery status (#118665) test(tasks): cover TaskFlow registry lifecycle (#118983) test(gateway): verify SSH tunnel fallback (#118818) fix(security): harden network tool output at canonical owner boundaries (#118984) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) ...
What Problem This Solves
OpenClaw's TUI editor behavior had focused helper coverage, but no primary QA
evidence running message composition, input history, keyboard shortcuts, paste
admission, and IME/AltGr bytes through the real terminal loop.
Why This Change Was Made
This adds four focused real-PTY assertions to the existing
runTui()harnessand a producer-backed QA scenario. The evidence producer remains unchanged and
authenticates one independently matched assertion for each coverage ID.
User Impact
No production behavior changes. Maintainers gain durable primary evidence for
five TUI editor-input contracts.
Evidence
qa-evidence.json: pass atd6b9971f94174b1ad9735be53ec6c6df860b9350.proof-matrix.json: five configured cases, each matched to one passedassertion in
src/tui/tui-pty-harness.e2e.test.ts.qaRuntimebuild passed withOPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_BUILD_ALL_NO_PNPM=1.bracketed paste, fragmented committed CJK input, and Kitty AltGr CSI-u.
including Real behavior proof, lint, build artifacts, QA smoke, and the
max-lines ratchet.
git diff --check,forbidden-scope, and privacy scans pass with no new suppression.
without dependency reconciliation, as allowed by repository policy.
Primary coverage:
tui.message-compositiontui.input-historytui.keyboard-shortcutstui.paste-and-busy-submit-handlingtui.ime-and-altgr-handling