Repository navigation
fix(sessions): stop self-only recall from scanning unrelated sessions - #200202
Merged
Merged
Conversation
Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5d923180-9a48-8ed7-a2c1-a72ce73d7957
Contributor
|
🦞👀 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. |
roboclaw-bot
marked this pull request as ready for review
November 16, 2026 18:15
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Select the loaded command row rather than its temporary loading summary before scrolling and exercising deferred ACK ownership. Preserve all four original ACK, draft, tool, and send-count assertions. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: a91f029d-420c-8235-9278-4ce2c73ba71c
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 17, 2026
…openclaw#200202) * fix(sessions): avoid roster scans for self-only search Co-authored-by: vincentkoc <[email protected]> * fix(sessions): stop self-only recall from scanning unrelated sessions Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 5d923180-9a48-8ed7-a2c1-a72ce73d7957 * test(ui): wait for resolved ACK ownership tool rows Select the loaded command row rather than its temporary loading summary before scrolling and exercising deferred ACK ownership. Preserve all four original ACK, draft, tool, and send-count assertions. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/fast-krill-2 Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: a91f029d-420c-8235-9278-4ce2c73ba71c --------- Co-authored-by: vincentkoc <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #198855
What Problem This Solves
Fixes slow or failed history recall under self-only visibility when unrelated session inventory is large or unavailable.
User Impact
Self-only recall searches the current conversation directly, without waiting for an unrelated roster scan. Explicit targets, host-bound read scopes, sandbox clamps, incognito restrictions and broader visibility modes retain their existing authorization paths. This does not fix the separate broad-search fanout investigation.
Why This Change Was Made
Effective
selfvisibility already defines a one-session search universe. Reuse the existing targeted resolver and access check instead of enumerating the roster and filtering it back down. No new permission, protocol, configuration, dependency, state or cache is introduced.Evidence
alland retains its assertions.aa3656aa5101bc6a92fdbf5bca7adbfe3d53b2be; both UI E2E shards and both CI gate statuses passed. The original failed CI attempt remains recorded.Real agent/model proof — passed
A fresh isolated Gateway was built from source
895756d5aa4ff188db6081e342f8315878992025, whose committed tree65cedc05c03f459c4a627d6af39a421a98a63484exactly matches the published head. Only a task-owned driver and synthetic scenario were added outside the shipping diff.The normal source-selected
live-frontierflow used a real configured OpenAI model, the normal agent RPC, Gateway search, QA-channel delivery and persisted transcript owners. The final canonical report is 1 scenario, 1 passed, 0 failed, 0 skipped; all selected cells executed. It verifies:agents.listincludes the QA agent and the served primary model has canonical OpenAI identity;sessions_searchwithsessionKeyomitted;SELF-SEARCH-OK violet-copper-9281.An earlier bound live execution also passed. This is one scenario exercised twice, not two distinct coverage cases. The first unbound attempt never reached model execution because QA imported the SecretRef without its provider definition. The existing fixture hook then retained only the matching, already-configured absolute-path file-provider definition. No key values, alternate accounts, model overrides, endpoints or credential references were supplied or changed by that fixture. Synthetic controls reproduce the missing-definition error and pass with the supported hook. The narrowed proof harness also received an independent P0–P2 clean review.
Transport work-count measurement
Five serial ABAB process pairs, each one cold and five warm self searches over 600 synthetic sessions, used the real tool → Gateway WebSocket path on Node 26.12.1. Base
4a0e45492b8987d67d8b56e8d6dcdb3765aa61ed; measured search source0d8db16e701a3a520d6216e3c4b6ce77ec42ee48, unchanged by the ACK-test repair.Result and completeness flags matched in the no-match fixture. Rerun
scripts/perf/session-search-rpc-measure.tswith fresh state directories,--sessions 600 --visibility self, and--tool-ref <base-sha>for the baseline. This benchmark does not establish broad-search recall correctness.CI readiness repair
Original failure: the ACK-ownership test scrolled a replaceable loading summary before resolving the steer ACK. Source
895756d5aa4ff188db6081e342f8315878992025makes its selector wait for the resolved command descendant. All ACK, retained-draft, retained-tool and send-count assertions remain unchanged; no retries, sleeps, timeout increases or production changes were added.The controlled import/stability-window probe is red on main
ec025eba2df15ab949239fa17dfd99ac4286b50cand green with the selector. All four original cases pass on that baseline plus the repair and the combined search candidate: 19.69s wrapper, including 10.37s UI build; 5.754s test time. Hosted ClawSweeper found no actionable technical findings on prior search headd5464f9cb957499c6697470907222d8cec84320b; the new readiness delta has its separate fresh local review.Investigated local validation gaps
The production unused-file scan passed with zero findings. The full-tree scan failed on five unmodified, non-owned paths; it remains a failure, not an aggregate pass:
scripts/lib/stable-publish-recovery.mjssrc/gateway/tools-invoke.policy.test-support.tssrc/plugins/test-helpers/install-account-policy.test-support.tstest/scripts/fixtures/vitest-worker-scheduling.cjstest/scripts/vitest-worker-cache-retention.test-support.tsThe private-QA build completed with exit 0 but emitted nonfatal UI-budget advisories; this PR changes no production UI code and does not claim a strict UI-budget pass. Native exact-head review records retain these gaps.
Requested by @vincentkoc.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by