Repository navigation
test(tui): tighten regression coverage and release fixture leases - #157292
vincentkoc wants to merge 8 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR strengthens terminal-interface regression assertions, consolidates deferred fixtures, removes redundant checks, and makes fixture cleanup survive failures. Review scores
ProductKind: Test only · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep open. This member-authored PR retains useful test improvements absent from current main, and source review found no concrete introduced defect. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherOpenClaw’s terminal interface turns commands and agent events into chat, questions, and autocomplete. These tests check those results and release resources created for each scenario. flowchart LR
A[Commands and agent events] --> B[Terminal interface]
B --> C[Chat and prompt output]
D[Test fixtures] --> E[Regression tests]
C --> E
E --> F[Assertions and resource cleanup]
Technical reviewBest possible solution: Retain the stronger observable assertions and failure-safe cleanup within the existing test owners while preserving current main’s newer coverage. Do we have a high-confidence way to reproduce the issue? Yes, at source level: an assertion failure skips the first lease disposal, and a fixture setup failure bypasses cleanup on current main. Neither failure path was executed during this review. Is this the best way to solve the issue? Yes. Strengthening existing assertions and moving resource handling into existing cleanup boundaries is a narrow solution without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f76fe021990. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -21. Total -21 across 13 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 8, 2026, 9:12 PM ET / October 9, 2026, 01:12 UTC (Revision 2). |
TUI tests repeated weaker assertions, and fixture cleanup could be skipped when an assertion failed.
This tightens forbidden-command, ordering and hyperlink checks, reuses the canonical deferred helper, and removes assertions already covered by stronger expectations. Autocomplete setup retains its cleanup boundary. Prepared-runtime reuse now releases its first lease in finally while preserving assertion-before-disposal and disposal-before-second-admission ordering.
Thirteen test files; actual +37/−58 (net −21). Production, support and CI routing are unchanged. All 375 registrations and 532 statically counted cases remain; collection has not run.
Validation: source/history review, independent review, and exact forward/inverse reconstruction are complete. Qualified standalone formatting passed with no byte or mtime changes; all six native source-review passes completed with no P0–P2 findings. Each pass saw the full diff with a bounded evidence batch; the overall selection included all 13 complete changed files. Tests, collection, types, builds and CI remain held; exact pi-tui 0.85.1 and p-limit 7.3.2 implementations, installed dependencies, native PTY and runtime behavior remain unqualified.
Related prepared-runtime harness lease custody remains a separate follow-up. Final approvals and merge decisions belong to the maintainer.