Repository navigation
fix(sessions): include category in session search - #118912
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 25, 2026, 2:39 PM ET / 18:39 UTC. ClawSweeper reviewWhat this changesAdds the existing session category field to Gateway, Apple, and Android session-search matching, with focused regression coverage for category-only queries. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain No blocking correctness finding: the refreshed branch repairs the category-only omission at the Gateway plus both native cached-search owners. It remains open because the external PR has focused test claims but no redacted after-fix real-behavior trace. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherSession metadata is filtered by the Gateway for flowchart LR
A[Stored session category] --> B[Gateway session search]
A --> C[Apple cached search]
A --> D[Android cached search]
B --> E[Matching session list]
C --> E
D --> E
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +27, Other -2. Total +26 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the one-field owner-boundary repair, add redacted after-fix behavior proof, and merge only after exact-head required checks complete. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main returns category in session rows but excludes it from the Gateway and native cached-search field lists; the changed category-only regression cases target that exact path. Is this the best way to solve the issue? Yes. Adding the already-returned category to each existing owner’s search corpus is the narrow canonical repair; a separate search engine or schema change would duplicate behavior without addressing the omission. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8bfcdbe884ce. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
8662918 to
72a2556
Compare
|
@clawsweeper re-review Current head is |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
72a2556 to
2eb7f09
Compare
|
@clawsweeper re-review The PR has been refreshed on current main. The maintainer update addresses the previous sibling-parity finding by adding Android coverage alongside the contributor's Gateway and shared Apple fixes; all three category-only regressions were independently reproduced before the fix and now pass. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: ZYV5ge <[email protected]>
2eb7f09 to
83ed242
Compare
|
Merged via squash.
|
) Co-authored-by: Peter Steinberger <[email protected]>
Summary
Closes #118910.
Session search did not include the visible session category, so searching only by a group or category name returned no results even though the category was already available to each search owner. This repairs the invariant at all three existing owners:
The original contributor fix covered the Gateway and Apple paths. A maintainer update completes the equivalent Android path and preserves @ZYV5ge's contributor credit.
Production LOC: +4/-7 (net -3). Tests: +33/-4.
Validation
Each category-only regression was first observed failing independently on unfixed main, then passing after the owner-boundary repair:
node scripts/run-vitest.mjs run src/gateway/session-utils.test.ts— 195 tests passed.swift test --package-path apps/shared/OpenClawKit --filter ChatSessionSidebarModelTests— 39 tests passed../gradlew :app:testPlayDebugUnitTest --tests 'ai.openclaw.app.chat.ChatControllerSessionSearchTest' --console=plain— 7 tests passed../gradlew :app:ktlintCheck --console=plain— passed.No schema, configuration, protocol, session visibility, authorization, or ranking behavior changes.