Repository navigation
fix(research): restore the native pane browser client - #194283
Conversation
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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesRestores the browser client used by the native Deep Research pane. Example: Open Deep research and ask “How do urban trees reduce summer heat?”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +410. Total +410 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 6, 2026, 2:46 PM ET / 19:46 UTC. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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.
## 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]>
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]>
…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.
## 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]>
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.tsblob from #177231 (d5a2338a9ade9f50c7bc090fb3661fc8d497080b). The cleanup in097f990aa24removed 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.restores uncertain starts only for the same account after a native remount.opens native pane, safely navigates citations, handles cancellation/offline/reconnect and clears denied data.Could not resolve "./client.js"; its build and extension types fail for the same missing module.077eac1f36f: scoped-clean, no actionable findings.git diff --checkpassed. 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:fullrun completed. Its only two non-aggregate failing jobs match the completed scheduled-main baseline exactly:Browser panel > renders async page loads and retains the page and focus through successful and failed refreshes, same null-versus-falseassertion as main.Control UI goal replacement > confirms replacement from the literal command and Goal picker without restarting the goalandControl UI goal replacement > confirms a running goal without stopping on Cancel and adopts its resumed turn, same missing/goalprefix 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=mainrequires the workflow and target revisions to match. No payload check ran. The replacement dispatch used the documented default tier with the same target SHA.