Repository navigation
fix(talk): avoid readiness failures during slow test setup - #156376
Conversation
Start the existing 1000 ms readiness deadline when the real completion owner creates its registration claim, after workspace and session preparation. Observe original-delegation completion so setup rejection still settles readiness and closes the fixture. Prove a held 1100 ms workspace preparation fails on the original fixture and succeeds after the repair. Preserve missing-registration cleanup and add preclaim setup-rejection coverage. Both native Talk files pass 40 tests; targeted test types, lint, ratchets, and independent P2 review pass. No production behavior or timeout duration changes.
|
🦞👀 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 real behavior proof before merge. Reviewed September 23, 2026, 6:00 AM ET / 10:00 UTC. ClawSweeper reviewWhat this changesAdjusts native Talk test readiness to begin at backend registration and adds coverage for slow preparation and setup rejection. Merge readiness⛔ Blocked before merge - 3 items remain The fixture repair remains useful on current main, but the new regression should use controlled time before merge. Priority: P3 Review scores
Verification
How this fits togetherNative Talk connects voice-provider delegations to OpenClaw agent runs. These test fixtures exercise registration, voice control, and cleanup through the plugin entrypoint with simulated transport and backend execution. flowchart TD
A[Simulated voice delegation] --> B[Workspace and session preparation]
B --> C[Backend registration claim]
C --> D[Registration deadline]
D --> E[Parked backend ready]
B --> F[Setup rejection frame]
E --> G[Assertions and cleanup]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +76. Total +76 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep registration-scoped readiness and terminal-frame cleanup, with a deterministic regression that advances the fixture clock instead of sleeping. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that current main starts the 1000 ms deadline before awaited workspace preparation; holding that boundary beyond the deadline exposes the fixture defect. This review did not execute the reproduction. Is this the best way to solve the issue? The readiness-boundary repair is appropriate, but the new regression should use controlled time to retain coverage without adding a real sleep. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b4ebc043bc8. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What 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.
|
…w#156376) Start the existing 1000 ms readiness deadline when the real completion owner creates its registration claim, after workspace and session preparation. Observe original-delegation completion so setup rejection still settles readiness and closes the fixture. Prove a held 1100 ms workspace preparation fails on the original fixture and succeeds after the repair. Preserve missing-registration cleanup and add preclaim setup-rejection coverage. Both native Talk files pass 40 tests; targeted test types, lint, ratchets, and independent P2 review pass. No production behavior or timeout duration changes.
What Problem This Solves
Fixes native Talk test failures when legitimate workspace or session preparation consumes the fixture's backend-registration deadline.
User Impact
There is no user-visible behavior change. The Talk test fixture can tolerate slow preparation while retaining the existing 1000 ms registration deadline and cleanup checks.
Why This Change Was Made
Start the readiness timer when the completion owner creates its registration claim, after preparation. Observe the original delegation's terminal frame so setup rejection before a claim also settles the fixture promptly. This changes two test files only; it does not increase timeouts or add retries.
Evidence
A real workspace-preparation boundary held for 1100 ms fails with the original fixture and passes with this repair. A separate preclaim rejection regression exposed a 120-second hang before the terminal-frame observer was added and passes in approximately 2.6 seconds afterward. Both native Talk suites pass all 40 tests, including missing-registration cleanup. Targeted test types, lint, line/assertion ratchets, and independent review pass.
The patch and both preimages were rechecked against current main before publication; the restored files match the reviewed candidate byte for byte. Local proof used Node 24.21 on macOS arm64 and does not reproduce the original Linux Node 24.19 parallel CI shard. Exact-head hosted CI remains the landing gate; no full local build or repository-wide test suite was run.