Skip to content

fix: find grouped conversations created by agents - #149803

Merged
shakkernerd merged 3 commits into
openclaw:mainfrom
Marvinthebored:fix/show-categorized-spawned-sessions
Sep 19, 2026
Merged

shakkernerd merged 3 commits into
openclaw:mainfrom
Marvinthebored:fix/show-categorized-spawned-sessions

Conversation

@Marvinthebored

@Marvinthebored Marvinthebored commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #147603
Related: #148533

What Problem This Solves

A conversation created by an agent can be visible in its custom sidebar group
but disappear from search and shared navigation when the user selects another
conversation. Searching for its title or something said in its transcript then
fails to provide a way back to that conversation.

User Impact

Grouped conversations created by agents remain discoverable through the command
palette and shared session navigation after selection changes. Choosing a search
result reopens the matching conversation through the existing palette entry
points.

Subagent runs and ungrouped spawned sessions retain their discovery exclusions.
Grouping grants no access to private or incognito conversations and does not
override archive, agent, cron, or system-session filters. The shared inventory
rule also makes grouped ordinary conversations eligible in Activity and in
sessions_list when subagents are excluded. Runtime ownership and parent/child
relationships remain intact.

Why This Change Was Made

The palette now sends its filters to the Gateway for both metadata and transcript
search. Its Gateway selector treated every entry carrying spawnedBy as a
subagent, so changing only the browser's visibility predicate could not restore
the search result.

The repair narrows that existing discovery classification: actual subagent keys
remain excluded, while an ordinary spawned conversation with an explicit custom
group remains eligible. The shared UI navigation filter uses the same group
distinction. Canonical category updates already invalidate the prepared session
metadata, including archived rows, so the repair needs no new stored state,
configuration, or protocol option.

Evidence

On main at 0b753f1e15b27f13252f10aaf644613f52ecac0a, the real Gateway returned
zero metadata matches for the grouped conversation's title and zero transcript
matches for a unique word present in its history. The browser showed No results
found
. This fixture contains 205 newer conversations across five configured
agents, so the search also has to reach beyond a recent roster window.

The regression coverage uses the registered Gateway methods and the existing
real-Gateway browser harness, with canonical synthetic session data and verified
production UI assets. It exercises title search, transcript search, reopening a
result after selection changes, and category rename/removal/restoration in the
same running Gateway. Separate owner-boundary cases protect private, incognito,
archived, cron, system, and transient subagent rows, plus pagination and people
and owner facets.

Focused remote verification is green for the candidate's Gateway, navigation,
sidebar, and search-fixture code: 25 Gateway tests and 548 UI tests. The three
Gateway regressions fail on the baseline with 22 passing controls; the shared
navigation regression also fails on main while its other 26 cases pass.
Formatting, targeted lint, syntax, and fast static guards passed on the final
content published as 5bbe6250562741620aed18b7cb12491e9c2c15f3.

Exact-head remote verification at 5bbe6250562741620aed18b7cb12491e9c2c15f3
passed all 34 selected check commands, including production core/UI types,
all 20 core test-type graphs, lint, and the applicable docs, schema, and
architecture guards. The committed real-Gateway lifecycle test passed, as did
the paired desktop and mobile capture scenarios against production UI assets.

With another conversation selected, both title and transcript searches now find
and reopen the older grouped conversation. Renaming, clearing, and restoring
its category immediately update search, shared navigation, and people/owner
facets in the same running Gateway. The before/after captures below use identical
synthetic fixtures at 1280×900 and 390×844; the branch badge is the only intentional
build-provenance difference outside the searched surface. No live provider
inference or operator data is involved.

Visual evidence

Open preview

View Before After
Desktop title search Desktop title search returns no match for the categorized agent-created conversation Desktop title search finds the categorized agent-created conversation
Desktop transcript search Desktop transcript search returns no match for the categorized agent-created conversation Desktop transcript search finds the categorized agent-created conversation
Mobile title search Mobile title search returns no match for the categorized agent-created conversation Mobile title search finds the categorized agent-created conversation
Mobile transcript search Mobile transcript search returns no match for the categorized agent-created conversation Mobile transcript search finds the categorized agent-created conversation

Mobile emulation: open palette, find and reopen categorized conversation

after-mobile.mp4

Visual verification

  • Baseline: 0b753f1
  • Exact head: 5bbe6250562741620aed18b7cb12491e9c2c15f3
  • Scenario: Open the existing command palette while another conversation is selected, search by title and transcript, and reopen the older grouped conversation.
  • Runtime/build: Real isolated Gateway and production Control UI at 5bbe625; served assets/index-CjHnRHEl.js SHA256 9fe0e716fdd3abc544d13a8df671da3405b725ddb3666a791e14decbfa7d94dd matches build; Chromium 151.0.7922.71.
  • Title matches: Before 0; after 1 on desktop and mobile
  • Transcript matches: Before 0; after 1 on desktop and mobile
  • Common-term control: 10 visible results before and after
  • Category lifecycle: Rename, clear, and re-add update metadata search, transcript search, shared navigation, and people facets without restarting the Gateway
  • Viewport equivalence: 1280x900 and 390x844; identical safe fixtures, route, theme, and zoom; native PR branch badge differs outside the search surface
  • Recording presentation: MP4 trims 1 second of setup and holds the final captured frame 2 seconds; raw WebM retained
  • Actual sessions.list and sessions.search RPCs and returned keys were observed
  • Before and after served asset hashes matched the corresponding built bundles
  • Committed real-Gateway lifecycle and both paired capture scenarios passed on the final head
  • Keyboard input and search actions are visibly cued
  • All stills and all 505 raw recording frames were inspected; synthetic data only
  • Recording preserves title and transcript searches plus final opened transcript; desktop recording retained alongside mobile

Desktop search and reopen

after-desktop.mp4

Reopened conversation

Desktop Mobile
Opened conversation on desktop Opened conversation on mobile

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 2:12 PM ET / 18:12 UTC (Revision 7).

ClawSweeper review

What this changes

The PR makes grouped agent-created conversations discoverable in shared navigation and title/transcript search, with matching documentation and regression coverage.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main still excludes grouped spawned conversations from search. No blocking defect was found, and the inspected visual evidence supports the corrected behavior.

Priority: P2
Reviewed head: 5bbe6250562741620aed18b7cb12491e9c2c15f3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with convincing real-Gateway evidence, meaningful regression coverage, and no identified blocking defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots directly show the repaired palette title lookup; the supplied exact-head real-Gateway account also records transcript matches, reopening, category lifecycle updates, and matching served production assets. Only the prepared stills were independently viewed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots directly show the repaired palette title lookup; the supplied exact-head real-Gateway account also records transcript matches, reopening, category lifecycle updates, and matching served production assets. Only the prepared stills were independently viewed.
Evidence reviewed 9 items Current main still needs the repair: The fetched main revision classifies every entry with spawnedBy as a subagent regardless of category. The command palette requests excludeSubagents, so grouped ordinary conversations remain excluded.
Focused introduced behavior: The pinned introduced delta changes the Gateway discovery predicate and corresponding UI navigation predicate. Actual subagent keys remain excluded; ordinary spawned conversations become eligible only with a nonblank category. Runtime lineage fields are not rewritten.
Authorization remains independently enforced: Projected listing supplies the sharing owner's entry filter before discovery selection. Transcript search uses that authorized selection synchronously after readiness; category does not grant access. The changed registered-handler regression covers private, incognito, archived, cron, system, actual subagent, and ungrouped rows.
Findings None None.
Security None None.

How this fits together

The Control UI sends conversation searches to the Gateway, which filters authorized session metadata before searching transcripts. The returned conversations feed command-palette results and shared navigation.

flowchart TD
  A[Conversation metadata and transcripts] --> B[Gateway sharing checks]
  C[Search query and filters] --> B
  B --> D[Group and subagent selection]
  D --> E[Metadata and transcript matches]
  E --> F[Palette results and navigation]
  F --> G[Reopened conversation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +3, Tests +271, Docs +6. Total +280 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 2 5 2 +3
Tests 8 296 25 +271
Docs 2 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 308 28 +280

Review metrics

None.

Technical review

Best possible solution:

Keep discovery consistent with existing sidebar grouping through the shared Gateway selector while preserving authorization, archive filters, and runtime lineage.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main source excludes a grouped ordinary conversation carrying spawnedBy when the palette requests excludeSubagents. Submitted before/after evidence exercises that path; this review did not execute it.

Is this the best way to solve the issue?

Yes: adjusting the existing Gateway selection facts and UI navigation predicate repairs the inconsistency without adding state, protocol options, or a competing search implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0c41e701875c.

Labels

Label justifications:

  • P2: This fixes a bounded conversation-discovery failure without changing execution or stored-data contracts.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots directly show the repaired palette title lookup; the supplied exact-head real-Gateway account also records transcript matches, reopening, category lifecycle updates, and matching served production assets. Only the prepared stills were independently viewed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots directly show the repaired palette title lookup; the supplied exact-head real-Gateway account also records transcript matches, reopening, category lifecycle updates, and matching served production assets. Only the prepared stills were independently viewed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots directly show the repaired palette title lookup; the supplied exact-head real-Gateway account also records transcript matches, reopening, category lifecycle updates, and matching served production assets. Only the prepared stills were independently viewed.

Evidence

What I checked:

  • Current main still needs the repair: The fetched main revision classifies every entry with spawnedBy as a subagent regardless of category. The command palette requests excludeSubagents, so grouped ordinary conversations remain excluded. (src/gateway/session-list-target.ts:13, 0c41e701875c)
  • Focused introduced behavior: The pinned introduced delta changes the Gateway discovery predicate and corresponding UI navigation predicate. Actual subagent keys remain excluded; ordinary spawned conversations become eligible only with a nonblank category. Runtime lineage fields are not rewritten. (src/gateway/session-list-target.ts:13, 5bbe62505627)
  • Authorization remains independently enforced: Projected listing supplies the sharing owner's entry filter before discovery selection. Transcript search uses that authorized selection synchronously after readiness; category does not grant access. The changed registered-handler regression covers private, incognito, archived, cron, system, actual subagent, and ungrouped rows. (src/gateway/server-methods/sessions-search-projected.ts:34, 5bbe62505627)
  • Existing grouping contract and invalidation: The existing sidebar tree already promotes categorized ordinary children while retaining actual subagents as children. Canonical row acquisition recomputes selection facts when session metadata changes, including archived entries, so the repair does not require another cache or migration. (src/gateway/session-row-projection-record.ts:340, 5bbe62505627)
  • Inspected after-fix visual proof: Inspected prepared proof-image-2.png and proof-image-3.png: the same desktop title query changes from no results to one matching older conversation. Also inspected proof-image-4.png showing the baseline transcript-search failure. The supplied body snapshot identifies the exact head, isolated real Gateway, matching production asset hashes, observed sessions.list/sessions.search results, reopening, and category lifecycle outcomes. Additional recordings and mobile captures were linked but were not included in the prepared manifest inspected here. (5bbe62505627)
  • Production-path regression and review continuity: The real-Gateway browser scenario checks title and transcript lookup beyond 205 newer conversations, reopening results, and category rename/removal/restoration. Captures now use distinct filenames beneath the suite artifact directory, addressing the earlier capture-retention finding. The latest review projection contains no code findings; its historical originating-chat delivery uncertainty is not new evidence of a contributor or patch defect. (ui/src/e2e/command-palette-search.real-gateway.e2e.test.ts:390, 5bbe62505627)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-16T06:37:55.493Z sha d3f0dd25b8fafe93d242d0cfee7e10d038068303 :: blocked before merge. :: [P2] Preserve each screenshot capture in the suite artifact directory
  • reviewed 2026-09-17T02:29:09.964Z sha f95b591e7a364d0629a2be29ea5450056ef98bfa :: blocked before merge. :: none
  • reviewed 2026-09-17T03:04:34.584Z sha f95b591e7a364d0629a2be29ea5450056ef98bfa :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T17:29:00.232Z sha 5bbe625 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-19T17:36:53.872Z sha 5bbe625 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-19T18:03:26.739Z sha 5bbe625 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 17, 2026
@Marvinthebored Marvinthebored changed the title fix: show categorized spawned sessions in the mobile sidebar fix(ui): find categorized spawned conversations in Control UI search Sep 17, 2026
@shakkernerd shakkernerd self-assigned this Sep 17, 2026
Peetiegonzalez and others added 3 commits September 19, 2026 17:48
Register the new mobile E2E as a private-server owner, retire the
now-unused visible-scope export, and retain each proof capture in the
suite artifact directory instead of overwriting tracked files.

Co-Authored-By: Claude Opus 5 <[email protected]>
@shakkernerd
shakkernerd force-pushed the fix/show-categorized-spawned-sessions branch from f95b591 to 5bbe625 Compare September 19, 2026 17:21
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime labels Sep 19, 2026
@shakkernerd shakkernerd changed the title fix(ui): find categorized spawned conversations in Control UI search fix: find grouped conversations created by agents Sep 19, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 19, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 19, 2026
@shakkernerd
shakkernerd merged commit 1174128 into openclaw:main Sep 19, 2026
445 of 449 checks passed
@shakkernerd

Copy link
Copy Markdown
Contributor

Fixed: grouped spawned conversations remain searchable and reopenable after switching chats.

With thanks to @Marvinthebored.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 20, 2026
Keep grouped spawned conversations discoverable in search and shared navigation after selection changes, with existing visibility and archive filters.

Refs openclaw#147603.
Reviewed-by: @shakkernerd
Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants