Skip to content

fix: open chat when choosing a message search result - #206393

Draft
clawpacino wants to merge 2 commits into
openclaw:mainfrom
clawpacino:clawpacino/open-chat-for-message-results
Draft

clawpacino wants to merge 2 commits into
openclaw:mainfrom
clawpacino:clawpacino/open-chat-for-message-results

Conversation

@clawpacino

Copy link
Copy Markdown

What Problem This Solves

Choosing a matching message in Sessions search or the command palette could open its session’s dashboard instead of its conversation. On an expanded dashboard, the person would have to leave the view they just landed in to read the chat.

User Impact

Choosing a message opens that session’s chat. The entire message-result card opens the conversation. Choosing the session itself by title, from the palette or the Sessions table, still opens its preferred view. This does not change the shared preference or promise a jump to an older message outside the loaded transcript.

Why This Change Was Made

Both destinations already exist. Carrying explicit chat intent through the existing navigation path fixes the mismatch without a new picker, setting, or saved state.

Evidence

Chromium, synthetic Gateway data, same 1440 × 900 light viewport: select the launch checklist excerpt in a session that defaults to an expanded dashboard. Base 8d98397fcc5c opened the dashboard route; candidate 4df48f3e63f9 opens the chat. On an isolated real Gateway with a persisted dashboard preference, the command palette opened the dashboard for a title match and the chat for a message match in that same session. A focused Chromium suite separately exercised Sessions search.

The production build reports three existing asset-budget overages (largest CSS, chat startup JS request count, and compressed chat startup JS). A clean build of the same base revision reports all three; no budget was raised.

Before · dashboard instead of the conversation

A dashboard opens with no message in view

After · conversation

The chat opens with the launch checklist in view

Annotated comparison

Dashboard content marked
Chat content marked

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 27, 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. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Message-search results explicitly open Chat while session-title results retain the session’s preferred view.

Example: Select the launch checklist message in “Launch planning,” whose preferred view is an expanded dashboard.

  • Before: The dashboard opens without the conversation visible.
  • After: Ordinary selection opens Chat with the checklist message visible.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The ordinary-selection repair has relevant browser proof, but the incomplete native-link cutover leaves a normal activation path with the wrong destination.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium screenshots show the Sessions message-selection path opening the empty dashboard on the pinned base and the conversation on the candidate; the body also records title-versus-message navigation on an isolated real Gateway.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Selecting a matching message can land on a dashboard where the conversation is not visible.
Reason: This restores the transcript-search conversation contract while preserving intentional session defaults; native new-tab activation remains outside the completed cutover.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR addresses a source-confirmed message-search navigation bug that remains on current main.

Reviewed head: 4df48f3e63f917a6953832d03c9edcdd7f3c2083

Before merge

  • [P2] Apply explicit chat intent to native message-result links (P2) - For a message result whose session has boardFace: "dashboard", this branch now opens Chat on ordinary click or Enter, but the same result’s anchor still gets a Dashboard URL from resolveSessionPreferredFace(row) in command-palette-view.tsx:323–336. Ctrl/Cmd-click and middle-click bypass selectItem, so they continue opening the dashboard and the result now exposes conflicting destinations. Complete the navigation cutover by choosing Chat for message-result hrefs too, preserving preferred-face URLs for title results; extend the existing new-tab browser case with a dashboard-default message row.

Findings

  • [P2] [P2] Apply explicit chat intent to native message-result links — ui/src/components/command-palette-navigation.ts:56-57

Tests

  • Missing end-to-end proof: Red-on-base and green-on-head execution results for the committed regression tests are not supplied.
Agent review details

How this fits together

Control UI search results pass session identity and navigation intent through the existing shell or Sessions page owner to the session route builder.

flowchart TD
  A[Command palette] --> C[Navigation intent]
  B[Sessions transcript search] --> C
  C --> D[Existing navigation owners]
  D --> E[Session route builder]
  E --> F[Chat or Dashboard]
  A --> G[Native result link]
  G --> E
Loading

Technical review

Best possible solution:

Every message-result activation should open Chat, while session-title activation retains its saved default.

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

Current-main source routes message selections through the preferred-face resolver, establishing the dashboard-default failure without executing target code.

Is this the best way to solve the issue?

Explicit chat intent through the existing navigation owners is the smallest appropriate repair, but the palette’s native href must consume the same intent.

Full review comments:

  • [P2] [P2] Apply explicit chat intent to native message-result links — ui/src/components/command-palette-navigation.ts:56-57
    For a message result whose session has boardFace: "dashboard", this branch now opens Chat on ordinary click or Enter, but the same result’s anchor still gets a Dashboard URL from resolveSessionPreferredFace(row) in command-palette-view.tsx:323–336. Ctrl/Cmd-click and middle-click bypass selectItem, so they continue opening the dashboard and the result now exposes conflicting destinations. Complete the navigation cutover by choosing Chat for message-result hrefs too, preserving preferred-face URLs for title results; extend the existing new-tab browser case with a dashboard-default message row.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0362c5b16eac.

Provenance checked

  • Session preferred-view navigation keeps the original intent (fix(ui): honor dashboard defaults when reopening sessions #155524: Ordinary session opens honor the saved dashboard default, while explicit Chat visits preserve their route without rewriting that default.)
  • Transcript-search destination keeps the original intent (29a7654: The original Sessions transcript-search feature promises that results open the matching chat.)
  • Palette native result links keeps the original intent (307d9c4: Native links support middle-click and modifier-click for session and message results while retaining the search.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test --run src/components/command-palette.test.ts
  • pnpm test:ui:e2e ui/src/e2e/command-palette-avatars.e2e.test.ts ui/src/e2e/session-transcript-search.e2e.test.ts
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 9b11465 adds ui/src/components/command-palette-state.ts:117 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 9b11465147cb; files: ui/src/components/command-palette-state.ts)

PR surface

Source +5, Tests +10. Total +15 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 17 12 +5
Tests 3 16 6 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 33 18 +15

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 12:16 AM ET / 05:16 UTC.

This branch has not been deployed

No deployments
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants