Skip to content

(MOT-4259) feat(browser,console): ship the browser page + renderers as injectable console UI - #612

Merged
rohitg00 merged 2 commits into
mainfrom
feat/browser-injectable-ui
Jul 28, 2026
Merged

(MOT-4259) feat(browser,console): ship the browser page + renderers as injectable console UI#612
rohitg00 merged 2 commits into
mainfrom
feat/browser-injectable-ui

Conversation

@rohitg00

Copy link
Copy Markdown
Contributor

What

Moves the console's browser page AND its chat/function-call renderers to an injectable UI shipped by the browser worker, per docs/sops/injectable-console-ui.md (state worker as the reference). Part of the console injectable-UI migration (MOT-4256).

browser/ui (injectable)

  • page.tsx: setup(host) registers the browser page (#/ext/browser, nav label browser) + the browser function-call renderers via host.functionTriggers.register.
  • src/page/: session rail, live viewport, console + network panels ported to @iii-dev/console-ui + host.iii.trigger. Live frames via useLiveFrames (engine-pushes/client-appends): host.iii.on(...) + registerTrigger({ type: 'stream', function_id: '<fn>::<browserId>', config: { stream_name: 'browser:frames', group_id: sessionId } }), with seq guarding + session-change reset + await-start-before-teardown.
  • styles.css scoped [data-iii-ui="browser"], tokens only, 0 unscoped. build.mjs esbuild with the five shared externals.
  • Rust: iii-console-ui crate, ConsoleUi::new("browser").script(...).style(...).register(&iii); build.rs respects SKIP_UI_BUILD. pnpm-workspace.yaml joins browser/ui.

console (deletions)

  • Deleted pages/Browser/, components/chat/browser/, hooks/use-browser-{status,events}.ts, lib/browser.ts; edited App.tsx, ChatView.tsx, nav-options.ts(+test), use-hash-route.ts, conversations-context.tsx, components/function-trigger/renderer-registry.tsx. No leftover browser-page refs (remaining browser hits are the iii-browser-sdk package).

Verification

  • worker: cargo build / fmt / clippy / test (39 lib incl. 3 new ui:: tests + integration/manifest/schema).
  • ui: tsc + esbuild build clean.
  • console: tsc -b exit 0, biome clean on 7 changed files, nav-options tests 5/5.

Closes MOT-4259.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jul 28, 2026 11:17am
workers-tech-spec Ready Ready Preview, Comment Jul 28, 2026 11:17am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rohitg00, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 7 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3f08326b-60b2-4d16-bd5f-33adfa8eb688

📥 Commits

Reviewing files that changed from the base of the PR and between cb08760 and 5d611f8.

⛔ Files ignored due to path filters (2)
  • browser/Cargo.lock is excluded by !**/*.lock
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (42)
  • browser/Cargo.toml
  • browser/build.rs
  • browser/src/lib.rs
  • browser/src/main.rs
  • browser/src/ui.rs
  • browser/ui/build.mjs
  • browser/ui/package.json
  • browser/ui/page.tsx
  • browser/ui/src/function-trigger-message/BrowserViews.tsx
  • browser/ui/src/function-trigger-message/index.tsx
  • browser/ui/src/function-trigger-message/parsers.ts
  • browser/ui/src/lib/browser.ts
  • browser/ui/src/lib/cn.ts
  • browser/ui/src/lib/errors.tsx
  • browser/ui/src/lib/events.ts
  • browser/ui/src/lib/format.ts
  • browser/ui/src/lib/highlight.tsx
  • browser/ui/src/lib/icons.tsx
  • browser/ui/src/lib/shared.tsx
  • browser/ui/src/page/ConsolePanel.tsx
  • browser/ui/src/page/NetworkPanel.tsx
  • browser/ui/src/page/SessionRail.tsx
  • browser/ui/src/page/SessionView.tsx
  • browser/ui/src/page/Viewport.tsx
  • browser/ui/src/page/index.tsx
  • browser/ui/src/page/useBrowserSessionsLive.ts
  • browser/ui/src/page/useLiveFrames.ts
  • browser/ui/styles.css
  • browser/ui/tsconfig.json
  • console/web/src/App.tsx
  • console/web/src/components/chat/ChatView.tsx
  • console/web/src/components/function-trigger/renderer-registry.tsx
  • console/web/src/hooks/use-browser-events.ts
  • console/web/src/hooks/use-browser-status.ts
  • console/web/src/hooks/use-hash-route.test.ts
  • console/web/src/hooks/use-hash-route.ts
  • console/web/src/lib/conversations-context.tsx
  • console/web/src/lib/nav-options.test.ts
  • console/web/src/lib/nav-options.ts
  • console/web/src/pages/Browser/components/SessionRail.tsx
  • console/web/src/pages/Browser/index.tsx
  • pnpm-workspace.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/browser-injectable-ui

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 49 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@rohitg00

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…le-ui

# Conflicts:
#	console/web/src/App.tsx
#	console/web/src/hooks/use-hash-route.ts
#	console/web/src/lib/nav-options.test.ts
#	console/web/src/lib/nav-options.ts
#	pnpm-lock.yaml
@rohitg00

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@rohitg00
rohitg00 merged commit 6f7f8d0 into main Jul 28, 2026
16 checks passed
@rohitg00
rohitg00 deleted the feat/browser-injectable-ui branch July 28, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant