Repository navigation
fix(test): native Talk fixture retires prompt baselines between cases - #198248
Conversation
Retire only the reused session's diagnostic baseline after test-state work and cleanup settle. Keep transport cleanup with its existing owners. Wait for the post-cancel delegation result before asserting its content so failure replies expose the unchanged success assertion without hanging. The named file still has four post-cancel history failures overlapping #179237; all five original cross-fixture readiness failures are gone. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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. What this changesThis PR clears a reused native Talk fixture’s prompt observations after cleanup and surfaces failed post-cancel consultations without waiting for timeout. Example: Two test cases reuse session ID native-control-transcript with separate temporary state.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a concrete fixture-isolation defect while preserving the cancellation assertions; no actionable patch defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe native Talk integration fixture drives public plugin registration and Gateway handlers through synthetic transports, exercising real session and agent owners and checking their outgoing frames. flowchart LR
A[Test case] --> B[Native Talk fixture]
B --> C[Gateway Talk handlers]
C --> D[Agent and session owners]
D --> E[Prompt observation tracker]
C --> F[Captured transport frames]
B --> G[Drain and cleanup]
G --> E
Technical reviewBest possible solution: Retire only the fixture’s diagnostic baseline after cleanup and retain all within-session prefix and completion assertions. Do we have a high-confidence way to reproduce the issue? The reused session ID, fresh per-case state, retained tracker, and suite-wide assertion establish the failure path in source; this read-only review ran no tests. Is this the best way to solve the issue? This is the smallest complete fixture repair: it uses the existing cleanup API after the owning lifecycle settles and changes waiting behavior without weakening success checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d5d77e181a2e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +3. Total +3 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
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 Reviewed November 13, 2026, 7:04 AM ET / 12:04 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Retire only the reused session's diagnostic baseline after test-state work and cleanup settle. Keep transport cleanup with its existing owners. Wait for the post-cancel delegation result before asserting its content so failure replies expose the unchanged success assertion without hanging. The named file still has four post-cancel history failures overlapping openclaw#179237; all five original cross-fixture readiness failures are gone. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
Native Talk tests in
checks-node-compact-large-7(main runs 43393420383, 43409014923) settle before readiness after #198100 enabled the prompt-cache prefix assertion in all tests. The native Talk fixture reuses one session ID with a fresh state per case, so later cases compare against the previous case's prompt baseline. A consultation that fails also left the test waiting for a success frame until timeout.User Impact
None at runtime; test-only.
Why This Change Was Made
Four remaining post-cancel history cases in this file are fixed by open #179237 and are not touched here.
Evidence
4e426a3346f8b98ce962377f686a171e1f2e2851against7c6fde1612efc688593a56a74ed3f0e47747aa79, with no actionable findings. Hosted ClawSweeper also found no actionable patch defects at this head.openclaw/ci-gate. All other jobs are successful or skipped, including successfulsecurity-fast, changed-file formatting and gateway test types.client-native-control.test.ts: cancel / transcript-first / rejection; cancel / delegation-first / rejection; cancel / transcript-first / empty; cancel / delegation-first / partial. Ten cases pass and all nine planned shard invocations finish.:281); this fixture repair fixes readiness and reaches the unchanged post-cancel completion assertion (:474), expectingReal runner consultation completed.and receivingI need a moment to verify that before answering.Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.