Repository navigation
fix: verify chat Stop recovery after dashboard pairing - #207888
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecbc9017-952c-4867-9b3f-8987364d445d
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR updates the real-Gateway Stop regression to expect bootstrap authentication followed by device authentication. Example: A fresh dashboard login opens two connections before the finished-run Stop scenario.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs an obsolete connection assertion while preserving the Stop recovery contract; no actionable correctness or security findings remain. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser regression drives the dashboard and an isolated Gateway with a deterministic provider, withholds terminal notifications, and verifies that Stop restores the completed reply and Send button. flowchart LR
A[Browser regression] --> B[Dashboard login]
B --> C[Bootstrap pairing]
C --> D[Device connection]
D --> E[Gateway chat run]
E --> F[Deterministic provider]
D --> G[Stop and history recovery]
Technical reviewBest possible solution: Keep the existing regression and update its connection invariant to require the intended pairing sequence without allowing later reconnects. Do we have a high-confidence way to reproduce the issue? Current main intentionally creates bootstrap and device connections, while the unchanged baseline regression requires one socket before Stop; source establishes the mismatch, and no target code was executed during this review. Is this the best way to solve the issue? The change fixes the test's obsolete premise at its existing boundary and preserves the recovery assertions without changing production authentication or chat behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 793ccbd52f9e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +8. Total +8 across 1 file. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 28, 2026, 9:31 PM ET / November 29, 2026, 02:31 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…line * commit 'c876514dc21154a07f3755320495d2a93584b46b': (538 commits) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) chore(doctor): hold expired doctor migrations as removal-pending (#207865) fix: show ended one-time automations in History (#201280) ...
* commit '2194d14488091e2047d2f87ebbb093212f30840e': (540 commits) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) refactor(infra): simplify audit recovery write progress (#157141) fix: show restart blockers in service logs (#207879) test(infra): exercise group identity in session roundtrip (#207671) test(infra): exercise live owner expiry policy (#207672) feat: let Knowledge learn from your Gmail through Composio (#207266) test: stop the history-worker overload test from failing CI on slow runners (#207862) test(auth): assert SecretRef plaintext is absent from storage (#207698) ...
…seline * commit '32403124cae2ccbcfc556e844b218682b133956e': (547 commits) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) ...
…eline * commit 'eee1e0553d29456424ac367008c3cf080f9866ec': (550 commits) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) ...
…ions suite * commit '60e80f1c5fd439f7aa4ce33f54985c7efdc30884': (555 commits) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) ...
Require the dashboard's bootstrap and device handshakes before the Stop scenario starts. Keep the connection count fixed while Stop restores the completed reply and Send through Gateway history. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecbc9017-952c-4867-9b3f-8987364d445d
Require the dashboard's bootstrap and device handshakes before the Stop scenario starts. Keep the connection count fixed while Stop restores the completed reply and Send through Gateway history. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecbc9017-952c-4867-9b3f-8987364d445d (cherry picked from commit 28be8a5) Co-authored-by: RomneyDa <[email protected]>
Require the dashboard's bootstrap and device handshakes before the Stop scenario starts. Keep the connection count fixed while Stop restores the completed reply and Send through Gateway history. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecbc9017-952c-4867-9b3f-8987364d445d (cherry picked from commit 28be8a5) Companion audit: Pinned main scan found no later path/PR/SHA follow-ups. No required follow-up identified. Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The real-Gateway CI check for Stop on an already-finished chat failed before it clicked Stop. It counted the dashboard's single-use pairing connection as an unexpected reconnect, even though the dashboard intentionally opens a second connection with the issued device credential (#207750).
User Impact
This restores CI coverage for getting the composer back after Stop. It changes one test, not the dashboard, Gateway, or authentication behavior. No configuration or migration is needed.
Why This Change Was Made
I kept the original Stop regression on the actual dashboard login path. The test requires the Gateway to accept exactly the bootstrap-token handshake followed by the device-token handshake. An extra socket or handshake still fails the test. The single provider request, missed terminal notification, exact abort target, post-Stop history response, completed reply, and restored Send button are still required.
Evidence
16e000a7.4e26d1fdon AWS Pond. Stop received the no-active-run answer and the composer recovered without reconnecting. The scenario passed in 8.6 seconds (53.9 seconds for the invocation). This uses a deterministic provider, not a live model.98e17923). I did not run the full UI shard on AWS.untrackcount (view-sessions-scope.tsx: 1 > 0). In the same AWS replay, I ran the hosted guard on its exact unmodified main base9f63c3c1and reproduced that failure. I left Workboard untouched.Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw