Repository navigation
test: trim UI and tooling test seams - #126937
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 9:55 PM ET / August 21, 2026, 01:55 UTC. ClawSweeper reviewWhat this changesThe PR removes redundant UI, Mantis workflow, and Telegram-recorder test assertions while making a recorder-rendering helper private. Merge readinessKeep this maintainer-owned cleanup open for normal merge review. The reviewed removals leave the behavior-owning UI/session, recorder-order, and workflow safety assertions intact; no concrete patch defect was found. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherControl UI turns browser events and Gateway session records into visible panels and session rows, while Telegram/Mantis tooling drives and verifies desktop recording workflows. This PR trims tests that restate private implementation details while retaining state, ordering, and policy checks at those owners. flowchart LR
A[Cleanup PR] --> B[UI and session tests]
A --> C[Telegram recorder tests]
A --> D[Mantis workflow tests]
B --> E[Visible panel and session state]
C --> F[Open minimize capture ordering]
D --> G[Workflow safety policy]
E --> H[Maintainer CI review]
F --> H
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests -42, Other 0. Total -42 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Retain the owner-boundary assertions, keep the recorder renderer private, and merge after exact-head CI plus the latest ClawSweeper guidance are confirmed. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR does not report a runtime failure; source inspection shows the surviving tests cover the relevant observable state, order, and workflow policy. Is this the best way to solve the issue? Yes: removing implementation-coupled assertions while retaining owner-boundary state and ordering checks is the most maintainable test shape; deleting all related coverage would not be. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2ebd80cc96df. 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
|
|
Merged via squash.
|
What Problem This Solves
UI and tooling suites had accumulated a paired write/read round trip, exact assertions on private reconciliation calls, duplicated workflow-string checks, and a direct helper assertion that kept an internal recorder renderer exported. These checks were weaker than the observable state and emitted-command coverage beside them.
Why This Change Was Made
This removes the self-generated lazy-action round trip, keeps session lineage assertions on canonical placement and presentation state instead of private call shape, and deletes exact Mantis workflow checks that remain in their narrowly named owner tests. The Telegram recorder test continues to prove the real open → minimize → capture ordering, allowing the window-hide renderer to return to module-private scope.
User Impact
No user-visible behavior changes. UI recovery, session reconciliation, Telegram capture privacy ordering, and Mantis workflow policy remain covered at their behavior-owning boundaries.
AI-assisted: yes.
Evidence
pnpm test:changed— 66 tests passed across 2 Vitest shards.pnpm check:changed— passed formatting, UI i18n verification, typechecking, lint, script erasability, dead-export scans, Docker boundaries, and repository guards.git diff --check— clean.Production/tooling delta: one visibility-only substitution (
+1/-1). Test delta:+1/-43. No screenshots are needed because runtime and rendered behavior are unchanged.