Skip to content

feat(ui): search sessions and catalogs from command palette - #128356

Merged
VACInc merged 6 commits into
mainfrom
feat/unified-session-context-search
Aug 24, 2026
Merged

VACInc merged 6 commits into
mainfrom
feat/unified-session-context-search

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The command palette previously searched session metadata but not words that appeared only inside messages. Its other navigation entries also exposed only broad page labels, so users could not directly find individual automations, skills, plugins, apps, agents, settings sections, or configured models/providers.

What Changed

  • Combine visible-session metadata with the existing SQLite FTS5 transcript index after two characters.
  • Coalesce requests for 50 ms, ignore stale responses, rank metadata before BM25 transcript matches, and show one compact excerpt for context-only matches.
  • Lazily load bounded catalog summaries when the palette is used, cache them per connection, and match names/descriptions locally.
  • Search individual automations, skills, plugins, apps, agents, settings sections, and configured models/providers without adding another field or loading catalogs at Gateway startup.
  • Keep transcript work bounded to four roster pages, 200 keys, and four FTS requests.
  • Preserve metadata results when FTS fails and visibly surface rejected, indexing, or truncated transcript searches.
  • Avoid falsely marking a terminal roster of exactly 200 sessions as truncated.

Hidden reasoning, tool arguments/output, secrets, full skill bodies, automation payloads/history, and plugin configuration remain outside search.

Validation\n\n- GitHub exact-head CI: 152 checks completed, zero substantive failures.\n- ClawSweeper exact-head review: no findings, Platinum Hermit (4/6), ready for maintainer review.\n

  • Exact head: 6207636026c7230b37a486c0ad3cb2d022feb95c
  • Focused unit suite: 3 files, 29 tests passed.
  • Browser E2E: 11 tests passed, covering unified session and catalog search.
  • Full check:changed: passed (format, dead-code, i18n, core/UI typechecks, lint).
  • Production pnpm build: passed, including Control UI JS/CSS performance budgets.
  • Autoreview (gpt-5.6-sol, high): clean; patch correct at 0.98 confidence.
  • Real isolated Gateway proof exercised actual agent sessions, SQLite FTS, automation/catalog RPCs, and the production Control UI. Transcript lookup completed in 13.5 ms, and all seven catalog categories rendered.
  • Live proof viewport: Chromium, 1440×900, dark mode; validated WebM recording: 10.84 seconds.

The visual proof below was captured from the validated catalog-search tree immediately before the final completeness-only review fixes. The exact pushed head was subsequently rebuilt and its changed behavior is covered by the focused regressions above.

Built Control UI command palette returning metadata and transcript-only session matches

pr128356-command-palette-full-context-b490bd9-v2.webm

Attribution

AI-assisted implementation; I reviewed and understand the resulting code and tests.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper
clawsweeper marked this pull request as ready for review August 23, 2026 20:37
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Aug 23, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 2:42 PM ET / 18:42 UTC.

ClawSweeper review

What this changes

This PR lets the Control UI command palette search visible session transcripts and lazily loaded automation, skill, plugin, app, agent, settings, and model catalogs.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer product review. Current main still has metadata-only palette search, while this branch adds a distinct Control UI capability; no concrete patch defect was established.

Priority: P2
Reviewed head: 6207636026c7230b37a486c0ad3cb2d022feb95c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The feature has focused regression and browser coverage plus linked runtime evidence, with no concrete correctness finding in the reviewed source.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The stated author association is MEMBER, so the external-contributor proof gate does not apply; the PR additionally links isolated Gateway and Control UI media evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The stated author association is MEMBER, so the external-contributor proof gate does not apply; the PR additionally links isolated Gateway and Control UI media evidence.
Evidence reviewed 6 items Current-main gap: Current main only debounces metadata session-list searches; it has no transcript-search request or catalog-item state in the palette path, so the requested capability is not already implemented.
Changed UI owner boundary: The branch keeps palette orchestration in the Control UI, invoking the existing Gateway transcript endpoint only after a two-character query and retaining connection-staleness checks.
Gateway contract: The existing OpenClaw protocol bounds each transcript-search request to 200 session keys and 25 results; the Gateway handler validates and scopes the request before searching.
Findings None None.
Security None None.

Live Verification

Command: pnpm test ui/src/e2e/session-management.groups.e2e.test.ts

Result: FAIL (partial) — step 2 expect_output manages sessions through the sidebar groups and command palette: expected terminal output was not visible within 30 seconds: "manages sessions through the sidebar groups and command palette"

pnpm test ui/src/e2e/session-management.groups.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128356-5m2q3P/target$ pnpm test ui/src/e2e/session-management.groups.e2e.test.ts
$ node --import tsx scripts/test-projects.mts ui/src/e2e/session-management.groups.e2e.test.ts
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
pnpm test ui/src/e2e/session-management.groups.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
|                                                                                |   0% of 2.3 MiB
|■■■■■■■■                                                                        |  10% of 2.3 MiB
|■■■■■■■■■■■■■■■■                                                                |  20% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-128356-5m2q3P/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128356-5m2q3P/target





























Assertions:

  • FAIL expect_output: manages sessions through the sidebar groups and command palette

How this fits together

The Control UI command palette turns an operator query into navigation choices. It obtains transcript matches through the Gateway session-search API and locally ranks bounded catalog summaries before opening the selected chat or page.

flowchart LR
  Operator[Operator query] --> Palette[Command palette]
  Palette --> SessionList[Visible session roster]
  Palette --> Gateway[Gateway transcript and catalog APIs]
  SessionList --> Ranking[Ranked local results]
  Gateway --> Ranking
  Ranking --> Navigation[Chat or settings navigation]
Loading

Decision needed

Question Recommendation
Should the command palette become the shared discovery surface for transcript snippets plus live automation, skill, plugin, agent, settings, app, and model catalogs? Accept the scoped search surface: Keep the existing Gateway permission filters and bounded transcript path, then validate the final merge result.

Why: This is a broad new operator workflow rather than a repair of an established contract, and its permanent navigation and data-discovery scope needs maintainer intent.

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch mergeable but behind current main; validate the exact merge result’s Control UI flow before landing because no local GitHub merge-result tree was available.
Agent review details

Security

None.

PR surface

Source +507, Tests +423. Total +930 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 8 747 240 +507
Tests 4 517 94 +423
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 1264 334 +930

Review metrics

Metric Value Why it matters
Production versus test LOC production +740/-233 (net +507); tests +517/-94 (net +423); i18n baseline +7/-7 The production growth implements a new user-facing search capability and has substantial focused UI and E2E coverage, but its breadth merits owner review.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-management.groups.e2e.test.ts, serialized state: ui/src/lib/sessions/transcript-search.ts, serialized state: ui/src/pages/sessions/agent-scope.test.ts, serialized state: ui/src/pages/sessions/agent-scope.ts, unknown-data-model-change: ui/src/e2e/session-management.groups.e2e.test.ts, unknown-data-model-change: ui/src/lib/sessions/transcript-search.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land only an exact-merge-result-validated version after a Control UI owner accepts the command palette as the operator-facing surface for these catalog categories and transcript snippets.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land only an exact-merge-result-validated version after a Control UI owner accepts the command palette as the operator-facing surface for these catalog categories and transcript snippets.

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

Not applicable: this is a feature PR; its body supplies focused Control UI, Gateway, and browser-E2E validation evidence.

Is this the best way to solve the issue?

Unclear: the implementation reuses the existing Gateway search contract and preserves the UI owner boundary, but the expanded palette scope needs maintainer product acceptance.

AGENTS.md: found but not applied because it conflicted with ClawSweeper's review contract.

Codex review notes: model internal, reasoning high; reviewed against bf83a4dde8f0.

Labels

Label justifications:

  • P2: This is a normal-priority Control UI discoverability enhancement with bounded operator-facing impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The stated author association is MEMBER, so the external-contributor proof gate does not apply; the PR additionally links isolated Gateway and Control UI media evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: History covers the palette’s original search behavior and the current-main failure-state repair. (role: recent Control UI feature owner; confidence: high; commits: add5c513aed8, b90d7efddbc0; files: ui/src/components/command-palette.ts, ui/src/pages/sessions/agent-scope.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Revalidate the documented palette flow on the exact merge result after current-base drift is resolved.

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-08-23T20:45:26.439Z sha 3c8fe63 :: found issues before merge. :: [P1] Resolve bare default session keys before transcript search | [P1] Keep palette transcript search bounded
  • reviewed 2026-08-23T21:22:31.095Z sha 3c8fe63 :: needs changes before merge. :: [P1] Resolve bare default session keys before transcript search | [P1] Bound transcript roster enumeration for palette queries | [P1] Preserve metadata search when transcript search rejects
  • reviewed 2026-08-23T21:53:52.664Z sha b490bd9 :: needs changes before merge. :: [P1] Surface incomplete transcript results in the palette
  • reviewed 2026-08-23T23:03:41.680Z sha b490bd9 :: needs changes before merge. :: [P1] Surface successful but incomplete transcript searches | [P2] Do not truncate a terminal roster at the exact key cap
  • reviewed 2026-08-24T13:23:50.898Z sha 32ce8cc :: found issues before merge. :: [P2] Describe partial transcript results accurately
  • reviewed 2026-08-24T13:42:39.145Z sha 6207636 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 23, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

All three findings from the 3c8fe6311c7 review are resolved on b490bd9b537fb2a856f250fae75f251744f04bc4 with focused regressions:

  • bare default-session ownership fallback;
  • palette-only roster/key/request budgets;
  • metadata results retained with a partial-search notice when FTS fails.

The PR body now includes refreshed exact-head production-build, real Gateway/SQLite FTS, screenshot, and browser-video proof.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 23, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

Resolved the latest completeness findings on exact head 32ce8ccca77807c232ed9cad23357753cd4d0aea:

  • successful indexing and truncated FTS responses now surface the partial-search notice while retaining metadata results;
  • a terminal roster of exactly 200 keys is no longer falsely marked truncated;
  • added focused regressions for both states and the exact-cap boundary.

Also extended the same palette to lazily search bounded automation, skill, plugin, app, agent, settings, and model/provider catalogs. Full validation and production build are documented in the PR body.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Aug 24, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

Resolved the exact-head wording finding on 6207636026c7230b37a486c0ad3cb2d022feb95c:

  • unavailable FTS now retains the existing unavailable/metadata-only notice;
  • successful indexing or truncated responses now show distinct incomplete-results copy;
  • the regression includes a transcript-only hit plus each successful partial status.

Validation: 29 focused unit tests, 11 browser E2E tests, full check:changed, production Control UI build/budgets, and local autoreview all pass.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 24, 2026
@roboclaw-bot roboclaw-bot changed the title fix(ui): search session messages from command palette feat(ui): search sessions and catalogs from command palette Aug 24, 2026
@VACInc
VACInc merged commit 798c21a into main Aug 24, 2026
166 of 168 checks passed
@VACInc
VACInc deleted the feat/unified-session-context-search branch August 24, 2026 19:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
…#128356)

* feat(ui): search session context from command palette

Co-authored-by: VACInc <[email protected]>

* fix(ui): harden unified session search

Co-authored-by: VACInc <[email protected]>

* fix(ui): preserve control UI style budget

Co-authored-by: VACInc <[email protected]>

* feat(ui): search command palette catalogs

Co-authored-by: VACInc <[email protected]>

* fix(ui): surface incomplete palette searches

Co-authored-by: VACInc <[email protected]>

* fix(ui): distinguish incomplete transcript results

Co-authored-by: VACInc <[email protected]>

---------

Co-authored-by: VACInc <[email protected]>
Co-authored-by: roboclaw-bot <[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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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