Repository navigation
test(talk): fail fast when native-action readiness is missed - #152177
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 maintainer review before merge. Reviewed September 18, 2026, 5:42 PM ET / 21:42 UTC. ClawSweeper reviewWhat this changesThe PR makes native Talk tests fail promptly when backend registration is missing and ensures cleanup releases the synthetic provider stream before joining the backend. Merge readiness✅ Ready for maintainer review Keep open: current main still needs this focused fixture repair, and no actionable correctness or security defect was found. The maintainer-owned work is not a cleanup-close candidate. Priority: P3 Review scores
Verification
How this fits togetherTalk connects voice requests to OpenClaw agent runs. These tests exercise that connection through plugin registration and Gateway handlers, using synthetic transports to verify run ownership and control behavior. flowchart TD
A[Synthetic voice request] --> B[Talk Gateway handlers]
B --> C[Agent run registration]
C --> D[Test readiness deadline]
D -->|Registered| E[Ownership assertions]
D -->|Missing or failed| F[Readiness error]
E --> G[Release stream and join backend]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +81. Total +81 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep readiness tied to the existing registration owner and make fixture cleanup release every parked resource before awaiting completion. Do we have a high-confidence way to reproduce the issue? Yes, from source: suppress backend registration while the synthetic provider remains open, causing setup to fail before callback-owned stream release. The supplied regression targets this path; no tests were executed in this review. Is this the best way to solve the issue? Yes. Observing the existing registration promise and moving stream release into fixture cleanup directly repairs the lifecycle defect without extending the readiness deadline or weakening ownership assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bc9e86ff940c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…w#152177) Related: openclaw#151678 Native Talk ownership tests could hang until their outer timeout when setup missed backend registration: teardown waited for a provider stream whose release lived in the callback that failed setup never reached. Keep readiness with the real completion owner's registration promise and preserve the 1,000 ms deadline. The fixture now finishes its synthetic provider stream before joining backend cleanup and reports the last startup phase on a readiness miss. Existing final-insertion ownership, liveness, reassignment, replay, and insertion assertions remain intact. This changes tests and support only, with no user-visible runtime behavior or update migration. Production LOC: +0/-0; test/support LOC: +208/-127. Validation: the forced-miss regression hung on the original fixture and passes after the repair; the native-action file passed locally (25 tests) and in 10/10 focused hosted runs. Exact-head CI run 35397519787 is GREEN at a1838d5, with zero pending checks. The committed-branch Codex review of record is scoped-clean through P1. The original hosted shard's two unrelated temporary-directory permission failures remain documented in the PR; no tests or CI jobs were rerun by the landing lane.
Related: #151678
What Problem This Solves
Fixes native Talk ownership tests hanging until the outer timeout when setup misses backend registration. Cleanup previously waited for a provider stream whose release lived inside the callback that failed setup had skipped.
User Impact
No user-visible runtime change. CI gets a prompt readiness failure with the last startup phase, and the fixture closes its synthetic stream and joins the backend before returning.
Why This Change Was Made
The fixture now observes the real completion owner's registration promise while preserving the existing 1,000 ms readiness deadline. It owns provider-stream completion in its cleanup path. The five final-insertion scenarios retain their ownership, liveness, reassignment, replay, and insertion assertions.
Evidence
pnpm check:changedpassed, including full core-test typechecking, guards, dead-export scans, and changed-file lint.The unrelated hosted failures were
node-workspace-transfer-service.test.ts > streams workspace and changed results beyond worker credential expiryandrepository-workspace-startup.test.ts > adopts completed setup, restores accepted repository edits, and retains the bound workspace on restart. Both reportedFsSafeError: temp workspace directory is group/world writable without sticky protectionbefore the changed Talk test was loaded.Landing verification: the native watcher returned GREEN, with zero pending checks, for exact-head CI run 35397519787 at
a1838d5fc412f00f7c962957bb24c629d4e7b0f9. No tests or CI jobs were rerun by the landing lane. The campaign committed-branch Codex review of record is scoped-clean through P1, with no accepted/actionable findings; it did not independently rerun the reported proof.ClawSweeper's completed exact-head review, reviewed September 18 at 21:42 UTC, found no actionable correctness or security defect. It lists no Rank-up moves and no before-merge actions, so none require application or a skip. The native completed-review gate passed. This remains a fixture repair with no claim of changed live Talk behavior.