Skip to content

feat(research): add native session research pane - #177232

Merged
vincentkoc merged 14 commits into
mainfrom
openclaw/research-control-ui-draft-20261019
Nov 6, 2026
Merged

vincentkoc merged 14 commits into
mainfrom
openclaw/research-control-ui-draft-20261019

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Retained research needs a native session pane with reports, source inspection, and visible work controls on desktop and phone.

User Impact

Users can inspect research progress and evidence, retry an uncertain start without submitting a new request, cancel work, and navigate report citations. Account changes, disconnects, and denied access retire private UI state. Publishing this source does not deploy or enable a production Gateway.

Why This Change Was Made

The plugin-owned pane reuses the landed browser client and native panel owner. Reports render as text with producer-authored UTF-8 citation ranges; external links are restricted to credential-free HTTP(S). The correction preserves all lower research owners and their relocated Gateway tests, qualifies Solid 2 reactivity, and adopts the current dedicated native-plugin browser fixture.

This is the final UI stage after #177231. The superseded #177229 remains closed.

Evidence

  • Signed candidate: 38335c770194a85e4695281f6c51f0a47403b981; reviewed tree: d4ee770d24b79f947233b4272cd7f7ab0dbec678.
  • Independent final committed-range P2 autoreview: no actionable findings (confidence 0.86). The exact-commit full production build passed in 2m54s.
  • Plugin, production UI, and UI-other test type graphs; typed lint, formatting, and public-import boundaries passed.
  • 41 test-planner and six report tests passed. Both real bundled-plugin Chromium scenarios passed again (21s), covering account replacement, same-key retry, live source-count updates, cancellation, citations/focus, reconnect, denial clearing, and responsive layout.
  • Final-source desktop/phone screenshots: feat(research): add native session research pane #177232 (comment). All four inline images were independently verified to render. Synthetic fixture data only; this is not provider acceptance.
  • Authenticated native/Google and isolated package/upgrade acceptance were completed in the already-landed lower stack; no provider request was repeated for this UI-only stage.
  • CI 42261663602 passed hosted UI performance, bundled browser, and security. It exposed a core-test graph edge into plugin source; the type-only correction removes that edge, and the exact graph plus full boundary guard now pass locally. That boundary correction changed no runtime, fixture values, or assertions.
  • The hosted review identified a stale source-count label. The real browser regression reproduced 1→2 remaining at 1; tracked JSX fixes it without new state or lifecycle machinery. The regression and all existing browser assertions pass.
  • Own test growth is exactly 545 LF, covered by 421 + 124 LF allocations. Exact-head CI 42267378833 completed with all selected product, build, UI, performance, lint, type, boundary, and security checks passing. Its sole root failure is the independently verified 47-LF baseline ratchet debt; the aggregate also failed. The actual main parent and tested merge are both 47 over, and this PR adds/credits 545 LF. Landing uses the native inherited-failure exception; CI is not claimed green. The hosted re-review of this exact head reports zero findings.

@clawsweeper

clawsweeper Bot commented Oct 19, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 19, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds a session research pane with progress, work controls, reports, sources, and citation navigation.

Example: Research asks “How do urban trees reduce summer heat?”

  • Before: The session has no native pane for inspecting the retained report and its evidence.
  • After: Users open Deep research, read the report, and select citation S1 to inspect its source.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Useful native UI completion with inspected visual proof, focused browser coverage, and the previous finding resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop and phone captures show the bundled plugin running in the native Control UI host; public verification reports cover count updates, citation focus, explicit cancellation, uncertain-start retry, account replacement, reconnect, and denial clearing with synthetic Gateway fixtures.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users need to inspect retained research progress, reports, evidence, and work controls inside their conversation.
Reason: The maintainer-authored direction completes the landed research stack through existing native plugin contracts without adding configuration or another domain owner.

Merge readiness

✅ Ready for maintainer review

This PR adds a useful native research pane that current main lacks. The previous source-count finding is fixed, and no remaining actionable defect was found; exact-head CI is still running.

Priority: P2
Reviewed head: 38335c770194a85e4695281f6c51f0a47403b981

Before merge

None.

Findings

None.

Agent review details

How this fits together

The plugin renders inside the native Control UI host, consuming the existing account-bound research client and authorized Gateway RPCs to display retained jobs and submit explicit user actions.

flowchart LR
  A[Session header] --> B[Native plugin host]
  B --> C[Research pane]
  C --> D[Existing research client]
  D --> E[Authorized Gateway RPCs]
  E --> F[Retained research jobs]
  F --> C
Loading

Technical review

Best possible solution:

Complete this plugin-owned UI stage using the existing research client and native host after the required exact-head checks finish.

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

This is a feature PR; source inspection verifies the earlier source-count defect and its tracked-binding correction, supported by the maintainer’s reported browser red/green run.

Is this the best way to solve the issue?

The implementation is a coherent presentation stage: it adds the missing pane while retaining existing request, recovery, authorization, and job owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Research package dependencies and TypeScript boundary keeps the original intent (c50ff4f: The portable research plugin established plugin-local dependencies and the shared package-boundary TypeScript configuration; the PR adds the documented Solid build dependencies and JSX inclusion while retaining that boundary.)
  • Browser client and account-bound recovery keeps the original intent (ecb7169: Keep private questions scoped to the authenticated account and preserve exact request identity after uncertain acceptance; the new pane consumes this owner without changing it.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit ecb7169 adds extensions/deep-research/browser/client.ts:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ecb716937da5; files: extensions/deep-research/browser/client.ts)

PR surface

Source +747, Tests +545, Config +24, Other +15. Total +1331 across 12 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 5 747 0 +747
Tests 2 545 0 +545
Docs 0 0 0 0
Config 2 28 4 +24
Generated 0 0 0 0
Other 3 25 10 +15
Total 12 1345 14 +1331

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:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: A useful, scoped research interface improvement with no demonstrated urgent user regression.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-19T10:24:19.595Z sha 44220d4 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-06T17:33:32.621Z sha 2b3cfe5 :: needs changes before merge. :: [P2] Keep the header source count reactive

Reviewed November 6, 2026, 1:10 PM ET / 18:10 UTC (Revision 3).

@vincentkoc

vincentkoc commented Nov 6, 2026 •

Copy link
Copy Markdown
Member Author

Repaired native Control UI proof

Synthetic fixture data; isolated browser Gateway; no live deployment or provider acceptance claimed. The production plugin bundle passed the complete desktop/mobile flow: uncertain-start retry, cancellation, report/source navigation and focus, offline/reconnect, and denied-state clearing. These captures show before opening the pane and the resulting report.

Desktop

Before opening the research pane
Research report in the native pane

Phone

Before opening research on a phone
Research report in the native phone panel

@vincentkoc
vincentkoc force-pushed the openclaw/research-view-client-20261019 branch from 964fa83 to 3a96940 Compare November 6, 2026 04:31
@vincentkoc
vincentkoc force-pushed the openclaw/research-control-ui-draft-20261019 branch from 44220d4 to a5f5989 Compare November 6, 2026 04:32
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Nov 6, 2026
@vincentkoc vincentkoc self-assigned this Nov 6, 2026
Base automatically changed from openclaw/research-view-client-20261019 to main November 6, 2026 16:52
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 38335c770194a85e4695281f6c51f0a47403b981
  • Maintainer: @vincentkoc
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • extensions/deep-research/package.json

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

The source-count finding is fixed in signed head 38335c770194a85e4695281f6c51f0a47403b981. The existing real native-browser scenario first reproduced the stale 1→2 count, then passed with the tracked JSX binding. Full final-range P2 autoreview is clean; both browser scenarios, targeted types/lint, and the exact-commit production build passed. Updated final-source desktop/phone images are rendered in #177232 (comment). Please verify the original source-count finding and its regression. Exact-head CI is running.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 6, 2026
@vincentkoc
vincentkoc merged commit 9d4d6c6 into main Nov 6, 2026
135 of 138 checks passed
@vincentkoc
vincentkoc deleted the openclaw/research-control-ui-draft-20261019 branch November 6, 2026 18:28
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
* fix(research): keep evidence types in their leaf contract

* test(codex): account for native research boundary coverage

* feat(google): add authority-bound managed research adapter

* feat(research): retain conversation-bound jobs and evidence

* feat(research): recover durable jobs through current source authority

* feat(research): activate lazy bundled research by default

* feat(research): bind native search to selected model and evidence

* feat(research): expose current-authority retained job views

* feat(research): retain authorized browser research state

* feat(research): add native session research pane

* fix(research): qualify native pane against landed client

* test(research): keep native UI fixtures outside plugin types

* fix(research): keep progress source counts reactive
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 dependencies-changed PR changes dependency-related files extensions: deep-research 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: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant