Skip to content

fix(research): restore the native pane browser client - #194283

Merged
steipete merged 1 commit into
mainfrom
fix/research-client-restore-1106
Nov 6, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/research-client-restore-1106

Conversation

@steipete

@steipete steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the native Deep Research plugin failing to build because its browser client was deleted before the pane that consumes it landed.

User Impact

The native research pane can load its existing progress, evidence, cancellation and safe pending-start recovery behavior again.

Why This Change Was Made

Restores the exact client.ts blob from #177231 (d5a2338a9ade9f50c7bc090fb3661fc8d497080b). The cleanup in 097f990aa24 removed it while it had no production caller; #177232 subsequently added the native pane and its imports. There is one client implementation, and the current caller and server contracts still match it. No dependencies, budgets, recovery rules, or UI markup change. Thanks @vincentkoc for the original implementation.

Evidence

All green checks below ran against 3d436d5e3bb5bd2a049f440931bdf5f3b24ed258; the dispatch preflight confirms that checkout explicitly.

Check Result
Plugin/runtime build Passed.
Production extension types Passed.
Native research account recovery Passed: restores uncertain starts only for the same account after a native remount.
Native research pane behavior Passed in the same job: opens native pane, safely navigates citations, handles cancellation/offline/reconnect and clears denied data.
Red baseline Scheduled main fails both native research cases with Could not resolve "./client.js"; its build and extension types fail for the same missing module.
Independent review Codex autoreview, P0–P2, complete candidate against 077eac1f36f: scoped-clean, no actionable findings.
Diff Exact prior blob verified; git diff --check passed. Production +410/−0; tests +0/−0.

Local builds, typechecks and tests were deferred to CI while this Mac runs a separately pinned timing census. The native tests use the actual built plugin and synthetic Gateway data. No rendering markup or styles changed, so there is no new visual diff.

The full manual run is not green: its package-boundary, dead-code and Goal replacement failures match completed jobs on scheduled main; broad Node-only unit checks also fail and are not claimed as passing or attributed by this evidence.

The ready PR's normal ci:full run completed. Its only two non-aggregate failing jobs match the completed scheduled-main baseline exactly:

  • UI unit job: Browser panel > renders async page loads and retains the page and focus through successful and failed refreshes, same null-versus-false assertion as main.
  • Goal E2E job: Control UI goal replacement > confirms replacement from the literal command and Goal picker without restarting the goal and Control UI goal replacement > confirms a running goal without stopping on Cancel and adopts its resumed turn, same missing /goal prefix after Cancel as main.

The affected UI source and test objects are byte-identical on this PR's base, the scheduled baseline, and the actual tested merge. Hosted Codex review completed with no findings. Every other selected job passed or was intentionally skipped, including security-fast and both real-Gateway shards. Native landing uses the inherited-failure route with these exact names and unchanged source objects; no ignores, tests or budgets were relaxed.

The first draft dispatch (42278556102) stopped in preflight because validation_tier=main requires the workflow and target revisions to match. No payload check ran. The replacement dispatch used the documented default tier with the same target SHA.

Restore the existing client removed before its native pane callers landed.
The source matches the previously reviewed owner without changing its API
or account-bound retry behavior.

Co-authored-by: Vincent Koc <[email protected]>
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 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 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. P1 High-priority user-facing bug, regression, or broken workflow. 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: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 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Restores the browser client used by the native Deep Research pane.

Example: Open Deep research and ask “How do urban trees reduce summer heat?”

  • Before: The plugin bundle cannot resolve ./client.js, so the pane cannot build.
  • After: The pane has its existing client for loading progress, submitting research, and retrying uncertain starts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent exact restoration with no identified defect, supported by historical browser qualification but incomplete current validation.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate does not apply to this maintainer-authored restoration; linked historical browser reports exercise the identical client, while current-head validation remains incomplete.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The native Deep Research pane cannot build because its browser client is missing.
Reason: The maintainer-authored restoration reconnects an already-approved pane to its existing implementation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it restores a genuinely missing module required by the native research pane, with no actionable patch defect found; draft status and unresolved CI still prevent a readiness verdict.

Priority: P1
Reviewed head: 3d436d5e3bb5bd2a049f440931bdf5f3b24ed258

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Historical bundled-browser qualification covers the identical client, but current-head execution of the restored pane is not yet established.
Agent review details

How this fits together

The plugin-owned client connects the native research pane to authenticated Gateway research methods and account-bound recovery storage, returning scoped snapshots for display.

flowchart LR
  A[Native research pane] --> B[Research browser client]
  B --> C[Scoped Control UI host]
  C --> D[Authorized research Gateway API]
  D --> E[Retained research jobs]
  B --> F[Account bound recovery storage]
Loading

Technical review

Best possible solution:

Restore the existing client unchanged and complete the pending validation before marking this PR ready.

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

Source establishes the failure directly: current main imports ./client.js from the native plugin entry point while the corresponding module is absent; no target code was executed during this review.

Is this the best way to solve the issue?

The byte-identical restoration is the smallest complete repair using the existing client, pane, storage, and Gateway owners, with no competing implementation or unrelated change.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Retired research browser client changes intended behavior with a stated reason (097f990: The client was retired as unused before its native pane consumer landed.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 9d4d6c6 adds extensions/deep-research/browser/index.tsx:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9d4d6c62c065; files: extensions/deep-research/browser/index.tsx)

PR surface

Source +410. Total +410 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 410 0 +410
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 410 0 +410

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 P1: Current main has an unresolved production import that prevents the newly landed native research plugin from building.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P1: Current main has an unresolved production import that prevents the newly landed native research plugin from building.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Resolve attribution of the failed validation checks and confirm the restored plugin builds and its existing native-browser scenarios pass.

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 6, 2026, 2:46 PM ET / 19:46 UTC.

@steipete
steipete marked this pull request as ready for review November 6, 2026 19:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T19:56:07.709661Z 3d436d5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit 1b4aced into main Nov 6, 2026
225 of 234 checks passed
@steipete
steipete deleted the fix/research-client-restore-1106 branch November 6, 2026 20:20
@steipete

steipete commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

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

steipete added a commit that referenced this pull request Nov 6, 2026
…ity (#194263)

Follow-up to #193913. That change made the whole native Details composition wait for the live subagent-activity chunk whenever the cached receipt held ordinary children, because independent section roots could otherwise paint before the activity body. The wait cost 60.4 ms natively before the first populated Details frame. It also made it impossible to draw Details in the same frame as the first cached transcript rows, which #194142 needs.

The composition-wide prepared() memo and its Show wrapper are gone, along with the now-unused preloadChatSubagentActivity export. The existing static SubagentActivity presentation becomes the fallback of the activity's existing ChatLazyBoundary. It receives the receipt rows (or the current query rows if the receipt retires first) strictly as noninteractive presentation, at the same geometry as the live row. When the live observer module resolves through its unchanged createIdleImport owner, live rows replace the cached ones in place. A failed chunk still stays inside the boundary's local error view with Reload, and the other sections still render. The receipt, projection, empty/denied retirement and the display-only rule are unchanged.

Proof: 11 interleaved pairs plus A/A on a quiet AWS c7a.4xlarge, native and Team-scale, with active chat and seeded ordinary children. Outputs/Automations movement stays 0 px in 11/11 pairs on both harnesses. First populated Details is earlier natively in 10/11 pairs (paired median -32.3 ms, 1,394 -> 1,329 ms) and at Team scale by -8.8 ms. No hard secondary crosses the standing regression rule. The strengthened e2e holds the real activity chunk request and asserts cached rows in the first Details frame; it fails on main, where Details never appears while the chunk is held. Synthetic before/after stills of that held state are in the PR. Exact-head CI is green, including all selected checks-ui shards, the UI e2e shard and control-ui-performance. The full UI suite could not run because current main fails to build extensions/deep-research/browser (missing client.js, fix in flight as #194283); that gap is identical on main.

Size: UI runtime -11 LOC. CI Chat boot JS -416 B against its base, New and startup unchanged, no caps or baselines touched. Test changes are line-neutral.

Open follow-up: on the default expanded desktop section, a session with four or more ordinary children still caches three rows while live shows all of them.
obviyus added a commit that referenced this pull request Nov 6, 2026
## What Problem This Solves

Running iOS app tests from a terminal needs a long, hand-built `xcodebuild` command, and a mistyped suite name in `-only-testing` silently runs nothing and still exits 0.

## User Impact

No app change. Developers and agents get one command, `pnpm ios:test`, that runs the iOS app tests on a simulator with the same flags as CI and reports a short, trustworthy result.

## Why This Change Was Made

- `pnpm ios:test` runs the `OpenClaw` scheme (`OpenClawTests` and `OpenClawLogicTests`). `pnpm ios:test TalkModeManagerTests` or `Target/Suite[/test]` selectors run fewer; `OpenClawUITests` selectors use their own scheme. `IOS_SIM` picks a simulator by name or UDID; otherwise a booted iPhone, then the first available one.
- It runs the same project preparation as `ios:gen`, then `xcodebuild test` with CI's flags (`-parallel-testing-enabled NO`, `-collect-test-diagnostics never`) and the `apps/ios/build/DerivedData` path `ios:run` already uses. Output goes to a log file, as in CI, so simulator log forwarding cannot stall timed tests.
- It prints each failure (test ID and the first lines of the message), the pass/fail/skip counts, and the log and `.xcresult` paths in `apps/ios/build/TestResults`. When the build fails, it prints the compiler errors instead of "0 tests".
- `xcodebuild` ignores `-only-testing` selectors that match no test. `findUnmatchedSelectors` in `scripts/lib/ios-test-results.mjs` (the existing xcresult parser) compares the selectors with the result tree, and `ios:test` fails when a selector ran nothing. It matches on node URLs, so Swift Testing suites with display names still match their type name.
- `apps/ios/README.md` documents the command.

## Evidence

- `pnpm ios:test` (whole `OpenClaw` scheme) on an iPhone 17 simulator: 3m19s, 1343 passed, 3 skipped, 2 failed. Both failures are existing source-text tests that are red on `main` and not in any CI list (`RootTabsSidebarRegressionTests` "sidebar has one agent selector…", `WatchApprovalTransportSourceGuardTests` "retry reset matches the exact active attempt"); this PR does not touch them.
- Misspelled suite plus real selectors (a Swift Testing suite, a Logic target suite, an XCTest test method): the real ones ran (21 passed), then `no tests ran for OpenClawTests/NoSuchSuiteTests` and exit 1. The same plain `xcodebuild` command exits 0.
- A throwaway failing test printed its full test ID (`OpenClawTests/ZZThrowawayTests/…`) and expectation text, exit 1. A throwaway compile error printed the compiler error line and `xcodebuild exited 65 before running tests`, exit 1.
- `pnpm ios:test OpenClawUITests/ShareExtensionUITests`: passed through the `OpenClawUITests` scheme.
- `pnpm tsgo:scripts` (red with TS2345 before the selector-target fix, green after), `tsconfig.test.root.scripts.json`, oxlint, oxfmt, `check:script-erasability` and the existing `test/scripts/ios-test-results.test.ts` (20 passed) are clean.
- No new Vitest test: `main` is 49 lines over the test-line ceiling, and the ratchet fails any PR with positive test-line growth while that debt stands (allocations do not forgive it). The unmatched-selector behavior is proven by the real `ios:test` runs above and below; `pnpm check:test-lines-ratchet` reports net delta 0.
- Rebased onto `main` to pick up #194283 (the first CI run merged with a `main` that failed `tsgo:extensions` in `extensions/deep-research`). Smoke on the rebased head:

<details>
<summary>pnpm ios:test GatewayStatusBuilderTests NoSuchSuiteTests OpenClawLogicTests/WatchChatStatusLocalizationTests</summary>

```text
ios:test: OpenClawTests/GatewayStatusBuilderTests OpenClawTests/NoSuchSuiteTests OpenClawLogicTests/WatchChatStatusLocalizationTests on iPhone 17 (<simulator-udid>)
ios:test: log apps/ios/build/TestResults/2026-11-06T20-29-54-025Z.log
ios:test: Passed: 20 passed, 0 failed, 0 skipped
ios:test: results apps/ios/build/TestResults/2026-11-06T20-29-54-025Z.xcresult
ios:test: no tests ran for OpenClawTests/NoSuchSuiteTests; check the target, suite and test names.
[ELIFECYCLE] Command failed with exit code 1.
```

</details>

- Review: hosted ClawSweeper on this PR.

Merge danger: two-way door. Developer tooling only; no app, CI workflow, state or config changes.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
Restore the existing client removed before its native pane callers landed.
The source matches the previously reviewed owner without changing its API
or account-bound retry behavior.

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…ity (openclaw#194263)

Follow-up to openclaw#193913. That change made the whole native Details composition wait for the live subagent-activity chunk whenever the cached receipt held ordinary children, because independent section roots could otherwise paint before the activity body. The wait cost 60.4 ms natively before the first populated Details frame. It also made it impossible to draw Details in the same frame as the first cached transcript rows, which openclaw#194142 needs.

The composition-wide prepared() memo and its Show wrapper are gone, along with the now-unused preloadChatSubagentActivity export. The existing static SubagentActivity presentation becomes the fallback of the activity's existing ChatLazyBoundary. It receives the receipt rows (or the current query rows if the receipt retires first) strictly as noninteractive presentation, at the same geometry as the live row. When the live observer module resolves through its unchanged createIdleImport owner, live rows replace the cached ones in place. A failed chunk still stays inside the boundary's local error view with Reload, and the other sections still render. The receipt, projection, empty/denied retirement and the display-only rule are unchanged.

Proof: 11 interleaved pairs plus A/A on a quiet AWS c7a.4xlarge, native and Team-scale, with active chat and seeded ordinary children. Outputs/Automations movement stays 0 px in 11/11 pairs on both harnesses. First populated Details is earlier natively in 10/11 pairs (paired median -32.3 ms, 1,394 -> 1,329 ms) and at Team scale by -8.8 ms. No hard secondary crosses the standing regression rule. The strengthened e2e holds the real activity chunk request and asserts cached rows in the first Details frame; it fails on main, where Details never appears while the chunk is held. Synthetic before/after stills of that held state are in the PR. Exact-head CI is green, including all selected checks-ui shards, the UI e2e shard and control-ui-performance. The full UI suite could not run because current main fails to build extensions/deep-research/browser (missing client.js, fix in flight as openclaw#194283); that gap is identical on main.

Size: UI runtime -11 LOC. CI Chat boot JS -416 B against its base, New and startup unchanged, no caps or baselines touched. Test changes are line-neutral.

Open follow-up: on the default expanded desktop section, a session with four or more ordinary children still caches three rows while live shows all of them.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
## What Problem This Solves

Running iOS app tests from a terminal needs a long, hand-built `xcodebuild` command, and a mistyped suite name in `-only-testing` silently runs nothing and still exits 0.

## User Impact

No app change. Developers and agents get one command, `pnpm ios:test`, that runs the iOS app tests on a simulator with the same flags as CI and reports a short, trustworthy result.

## Why This Change Was Made

- `pnpm ios:test` runs the `OpenClaw` scheme (`OpenClawTests` and `OpenClawLogicTests`). `pnpm ios:test TalkModeManagerTests` or `Target/Suite[/test]` selectors run fewer; `OpenClawUITests` selectors use their own scheme. `IOS_SIM` picks a simulator by name or UDID; otherwise a booted iPhone, then the first available one.
- It runs the same project preparation as `ios:gen`, then `xcodebuild test` with CI's flags (`-parallel-testing-enabled NO`, `-collect-test-diagnostics never`) and the `apps/ios/build/DerivedData` path `ios:run` already uses. Output goes to a log file, as in CI, so simulator log forwarding cannot stall timed tests.
- It prints each failure (test ID and the first lines of the message), the pass/fail/skip counts, and the log and `.xcresult` paths in `apps/ios/build/TestResults`. When the build fails, it prints the compiler errors instead of "0 tests".
- `xcodebuild` ignores `-only-testing` selectors that match no test. `findUnmatchedSelectors` in `scripts/lib/ios-test-results.mjs` (the existing xcresult parser) compares the selectors with the result tree, and `ios:test` fails when a selector ran nothing. It matches on node URLs, so Swift Testing suites with display names still match their type name.
- `apps/ios/README.md` documents the command.

## Evidence

- `pnpm ios:test` (whole `OpenClaw` scheme) on an iPhone 17 simulator: 3m19s, 1343 passed, 3 skipped, 2 failed. Both failures are existing source-text tests that are red on `main` and not in any CI list (`RootTabsSidebarRegressionTests` "sidebar has one agent selector…", `WatchApprovalTransportSourceGuardTests` "retry reset matches the exact active attempt"); this PR does not touch them.
- Misspelled suite plus real selectors (a Swift Testing suite, a Logic target suite, an XCTest test method): the real ones ran (21 passed), then `no tests ran for OpenClawTests/NoSuchSuiteTests` and exit 1. The same plain `xcodebuild` command exits 0.
- A throwaway failing test printed its full test ID (`OpenClawTests/ZZThrowawayTests/…`) and expectation text, exit 1. A throwaway compile error printed the compiler error line and `xcodebuild exited 65 before running tests`, exit 1.
- `pnpm ios:test OpenClawUITests/ShareExtensionUITests`: passed through the `OpenClawUITests` scheme.
- `pnpm tsgo:scripts` (red with TS2345 before the selector-target fix, green after), `tsconfig.test.root.scripts.json`, oxlint, oxfmt, `check:script-erasability` and the existing `test/scripts/ios-test-results.test.ts` (20 passed) are clean.
- No new Vitest test: `main` is 49 lines over the test-line ceiling, and the ratchet fails any PR with positive test-line growth while that debt stands (allocations do not forgive it). The unmatched-selector behavior is proven by the real `ios:test` runs above and below; `pnpm check:test-lines-ratchet` reports net delta 0.
- Rebased onto `main` to pick up openclaw#194283 (the first CI run merged with a `main` that failed `tsgo:extensions` in `extensions/deep-research`). Smoke on the rebased head:

<details>
<summary>pnpm ios:test GatewayStatusBuilderTests NoSuchSuiteTests OpenClawLogicTests/WatchChatStatusLocalizationTests</summary>

```text
ios:test: OpenClawTests/GatewayStatusBuilderTests OpenClawTests/NoSuchSuiteTests OpenClawLogicTests/WatchChatStatusLocalizationTests on iPhone 17 (<simulator-udid>)
ios:test: log apps/ios/build/TestResults/2026-11-06T20-29-54-025Z.log
ios:test: Passed: 20 passed, 0 failed, 0 skipped
ios:test: results apps/ios/build/TestResults/2026-11-06T20-29-54-025Z.xcresult
ios:test: no tests ran for OpenClawTests/NoSuchSuiteTests; check the target, suite and test names.
[ELIFECYCLE] Command failed with exit code 1.
```

</details>

- Review: hosted ClawSweeper on this PR.

Merge danger: two-way door. Developer tooling only; no app, CI workflow, state or config changes.

Co-authored-by: Ayaan Zaidi <[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 ci:full Keep ordinary native-locale CI selection on the next PR run. extensions: deep-research P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant