Repository navigation
fix(sessions): stop false indexing notices in complete searches - #167174
Conversation
Keep search hits and their connection-local revision check on the existing single-reader projection lane. The parallel history pool introduced by #167029 could validate a token on another connection and report complete results as still indexing. Ordinary foreground history stays parallel. Preserve maintenance readiness, foreign-commit checks, authorization, and database cleanup. The unchanged real-Gateway palette test fails at #167029 and passes at its parent and with this fix; no schema or data migration is required.
|
🦞👀 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 October 8, 2026, 7:18 AM ET / 11:18 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR runs conversation searches and their freshness checks on the existing single-reader worker lane to prevent false indexing notices. Example: Search conversations for copperfinch in the command palette.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR remains necessary: current main can validate a connection-bound search revision on a different worker and falsely report indexing. The focused repair preserves freshness safeguards, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway searches conversation messages stored in per-agent SQLite databases and returns matching messages plus indexing status to the command palette. Database workers perform those reads outside the Gateway request thread. flowchart TD
A[Command palette query] --> B[Gateway conversation search]
B --> C[Single-reader worker lane]
C --> D[Message hits and connection revision]
D --> E[Index readiness check]
E --> F[Freshness check on same reader]
F --> G[Results and indexing status]
Technical reviewBest possible solution: Keep connection-bound search certification on the existing single-reader lane while ordinary history reads retain parallel workers. Do we have a high-confidence way to reproduce the issue? Yes: current source dispatches separate requests through parallel workers while requiring connection identity equality, and the unchanged real-Gateway case reportedly fails at the indexing assertion. This read-only review did not execute the reproduction. Is this the best way to solve the issue? Yes: selecting the existing single-reader lane repairs the connection mismatch without weakening freshness validation or creating another worker owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f6c34cd2a5cd. Provenance checked
TestingProof path: shipped entry point. Added test files: 0. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5. Total +5 across 1 file. View PR surface stats
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)
|
…law#167174) Keep search hits and their connection-local revision check on the existing single-reader projection lane. The parallel history pool introduced by openclaw#167029 could validate a token on another connection and report complete results as still indexing. Ordinary foreground history stays parallel. Preserve maintenance readiness, foreign-commit checks, authorization, and database cleanup. The unchanged real-Gateway palette test fails at openclaw#167029 and passes at its parent and with this fix; no schema or data migration is required.
Related: #167029
What Problem This Solves
Complete searches across agents can incorrectly report that conversations are still indexing.
User Impact
The command palette can present complete results without a false indexing notice. Pending indexing and changed search snapshots retain their existing warnings.
Why This Change Was Made
The search revision contains a connection-specific identity and SQLite data version. After foreground history reads became parallel, the later revision check could run on another worker and fail to certify an unchanged result. Run the paired reads on the existing single-reader projection lane. Ordinary foreground history remains parallel; no schema, storage, permission, or migration changes are needed.
Evidence
2095264a9271passes;6aa926265782(perf(sessions): parallelize foreground transcript reads #167029) and current main fail at the indexing assertion; this fix passes the full case.check:architecturepasses, with zero runtime and Madge cycles; formatting, changed-file lint, boundary lint, and P2 review pass.Linux owning-config and original-shard replay remain unrun: AWS refused the shared fleet cap and Testbox timed out after 15 minutes without a runner. Full typecheck and
check-changedalso remain unrun. The focused proof above ran through the repository harness as individual files on macOS; no workflow was dispatched or rerun.