Skip to content

Add agent browser and Highlights to desktop - #97

Merged
dev-dami merged 5 commits into
mainfrom
feat/agent-browser-highlights
Oct 28, 2026
Merged

dev-dami merged 5 commits into
mainfrom
feat/agent-browser-highlights

Conversation

@Erioluwa-dev

Copy link
Copy Markdown
Collaborator

What this changes

Agents can now test local apps and work on approved websites in an embedded desktop browser. Users can also collect explicit agent findings, decisions and blockers in a Highlights panel, alongside short agent-authored updates.

Changes

  • Add a native Chromium browser pane with per-agent tabs, navigation, accessibility snapshots, input, typed image results, and a persistent profile. Website access uses the existing approval cards. Take control cancels pending work and pauses agent actions, reads and captures until Release.
  • Add an authenticated, desktop-local controller channel with request generations, cancellation, ownership checks, stale snapshot rejection and bounded execution deadlines. Commands are never replayed after reconnect. Keep the existing localhost Preview separate.
  • Add persisted Highlights and explicit summaries, with authenticated authors and validated source links. The renderer provides the count/unread pill, urgency strip, Highlights/Summary panel, message pinning, source navigation, resolve and dismiss. Needs you reads existing attention state.
  • Add unit coverage and a real Electron/Go/MCP integration harness covering browser operations, origin approval/decline, takeover, Highlights interactions, reload and ordinary restart.

Validation

  • go build -p 1 ./..., go vet -p 1 ./... and go test ./internal/deck/guard pass. gofmt -l . prints nothing; staged whitespace checks pass.
  • Desktop bun run lint and production build pass. Renderer checks pass 567/567 with the slow icon tests excluded; the complete desktop suite is reported below.
  • Real built Electron + Go engine + deterministic CLI/MCP fixture: all 12 integration groups pass, no skips, exit 0. Includes open/read/type/click/PNG, private-RPC and scheme rejection, stale handles, takeover, native view hiding, approval/decline before network, synthetic sign-in, Highlights pin/dedupe/source/seen/resolve/dismiss, reload and ordinary restart with profile persistence.
  • Phone client typecheck, Biome/innerHTML lint and all 623 tests pass. Rebuilt committed assets with CI-pinned Bun 1.4.2 and verified they match a fresh build. Fixed our decoder formatting issue during this review.

Notes for the reviewer: existing local failures

Compared with a clean detached checkout of origin/main at 8a55d2362c9ffb242bb92458646c0cbed430007f, using the same Windows host and dependency versions. No baseline source edits, stash or test suppressions.

Comparison Clean main This branch Result
Complete desktop unit suite, two workers 677 pass / 24 fail / 4 skip 726 pass / 24 fail / 4 skip All 24 failed identities reproduce on main; zero branch-only failures
Serial selection of previously failing Go cases across seven packages 5 pass / 11 fail 6 pass / 10 fail All 10 branch failures reproduce on main; zero branch-only failures

Desktop causes: 17 Windows socket-fixture permission failures, four Windows path expectations, one symlink privilege failure, one icon byte-length mismatch, and one 30-second icon draw timeout. The icon draw case recovers in the focused rerun.

Go causes: Unix-path assumptions in ACP tool titles; inherited Deck Git author identity in attribution fixtures; Windows lock-message/pid expectations; Windows shim environment ordering/SYSTEMROOT; unavailable Unix shebang behavior; the 20-second large-worktree performance threshold; a shared five-second RPC Git deadline; and the fixture's assumption that sh exists. Main's isolated shim rerun reproduces the branch's exact environment diagnostic. The RPC Git test discards a later deadline error and reports a nil response on the branch, while main expires on an earlier call.

Earlier race, file-claim and input-cap failures recover in both serial runs. The Windows terminal case passes on this branch and hits its five-second deadline on main. Clearing inherited Git author variables lets the first attribution case complete, but the second diagnostic case times out in Git; that is not a passing attribution package.

The broad Windows go test ./... attempts were stopped under memory pressure and remain incomplete. The serial comparison is failure attribution, not a green full Go suite. CI must run the complete Linux suite and cross-platform build checks.

Checklist

  • go build ./..., go vet ./... and the complete go test ./... pass together (build/vet pass locally; full test suite is not green, as detailed above).
  • gofmt -l . prints nothing.
  • Fixtures use synthetic data; no credentials, account identifiers or recordings are included.
  • Desktop README documents browser control and Highlights behavior.
  • No credential reads, direct model API calls or agent self-approval; the existing guard passes unchanged.

Limits

  • The synthetic sign-in fixture exercises cookies, takeover and restart using the test driver's form submission; physical keyboard focus into the native browser view was not tested. Agent CDP typing and clicking were exercised.
  • No package-manager migration: package manifests and the tracked package-lock remain unchanged, and the automatically generated desktop Bun lockfile is excluded.

Generated with Deck

claude and others added 2 commits October 27, 2026 13:27
…a spot

The paper material set every panel's offset shadow in the spot colour,
falling back to the accent. For any colours but Riso's that meant a hard
3px blue bar along each panel and the sidebar, which read as a glitch.
Colours with no spot ink now get a faint impression of their text colour;
Riso keeps its pink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
Co-Authored-By: Deck <311780591+deck-cli@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 106 files, which is 6 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 05cafcb6-f701-46b9-ba14-f802436f98a0
Commits

Reviewing files that changed from the base of the PR and between 8a55d23 and fc7f492.

Files ignored due to path filters: 7
  • desktop-shell/docs/renderer.png is excluded by !**/*.png
  • desktop-shell/docs/screenshot.png is excluded by !**/*.png
  • pkg/remote/web/dist/index.html is excluded by !**/dist/**
  • pkg/remote/web/dist/main-sjkx0wvz.js is excluded by !**/dist/**
  • pkg/remote/web/dist/sw.js is excluded by !**/dist/**
  • pkg/rpc/deckv1/deck.pb.go is excluded by !**/*.pb.go
  • pkg/rpc/deckv1/deck_grpc.pb.go is excluded by !**/*.pb.go
Files selected for processing: 106
  • README.md
  • desktop-shell/README.md
  • desktop-shell/scripts/browser-bench.cjs
  • desktop-shell/src/main/browser.test.ts
  • desktop-shell/src/main/browser.ts
  • desktop-shell/src/main/decks.ts
  • desktop-shell/src/main/host.test.ts
  • desktop-shell/src/main/host.ts
  • desktop-shell/src/main/main.ts
  • desktop-shell/src/main/outline.test.ts
  • desktop-shell/src/main/outline.ts
  • desktop-shell/src/main/pageControl.test.ts
  • desktop-shell/src/main/pageControl.ts
  • desktop-shell/src/main/tabs.test.ts
  • desktop-shell/src/main/tabs.ts
  • desktop-shell/src/preload/preload.ts
  • desktop-shell/src/renderer/appState.ts
  • desktop-shell/src/renderer/approvals.test.ts
  • desktop-shell/src/renderer/approvals.ts
  • desktop-shell/src/renderer/browser.test.ts
  • desktop-shell/src/renderer/browser.ts
  • desktop-shell/src/renderer/client.ts
  • desktop-shell/src/renderer/highlights.test.ts
  • desktop-shell/src/renderer/highlights.ts
  • desktop-shell/src/renderer/live.test.ts
  • desktop-shell/src/renderer/live.ts
  • desktop-shell/src/renderer/pin.test.ts
  • desktop-shell/src/renderer/pin.ts
  • desktop-shell/src/renderer/rpcClient.ts
  • desktop-shell/src/renderer/rpcMap.ts
  • desktop-shell/src/renderer/styles.css
  • desktop-shell/src/renderer/ui.ts
  • desktop-shell/src/renderer/ui/ApprovalCard.tsx
  • desktop-shell/src/renderer/ui/BrowserPanel.tsx
  • desktop-shell/src/renderer/ui/HighlightsPanel.tsx
  • desktop-shell/src/renderer/ui/HighlightsPill.tsx
  • desktop-shell/src/renderer/ui/PreviewPanel.tsx
  • desktop-shell/src/renderer/ui/RightPanel.tsx
  • desktop-shell/src/renderer/ui/Room.tsx
  • desktop-shell/src/renderer/ui/RoomVerbs.tsx
  • desktop-shell/src/renderer/ui/Timeline.tsx
  • desktop-shell/src/shared/bridge.ts
  • desktop-shell/test/browser-electron.cjs
  • desktop-shell/test/browser-integration.cjs
  • desktop-shell/test/browser-shots.cjs
  • desktop-shell/test/e2e/browser.spec.ts
  • desktop-shell/test/fake-grpc.ts
  • desktop-shell/test/fixtures/browser-agent.go
  • desktop-shell/test/fixtures/browser-engine.go
  • internal/cmd/serve.go
  • internal/deck/agent/agent.go
  • internal/deck/agent/decktools.go
  • internal/deck/agent/decktools_test.go
  • internal/deck/agent/fake/hub.go
  • internal/deck/agent/masktyped_test.go
  • internal/deck/agent/opresult.go
  • internal/deck/agent/opresult_test.go
  • internal/deck/approve/broker.go
  • internal/deck/approve/image_result_test.go
  • internal/deck/approve/mcp.go
  • internal/deck/browser/broker.go
  • internal/deck/browser/broker_test.go
  • internal/deck/highlights/store.go
  • internal/deck/highlights/store_test.go
  • internal/deck/hub/browser.go
  • internal/deck/hub/browser_test.go
  • internal/deck/hub/highlights.go
  • internal/deck/hub/highlights_test.go
  • internal/deck/hub/hub.go
  • internal/deck/session/briefing.go
  • internal/deck/session/briefing_budget_test.go
  • internal/deck/session/browser.go
  • internal/deck/session/browser_origin_test.go
  • internal/deck/session/browser_secret_test.go
  • internal/deck/session/browser_test.go
  • internal/deck/session/highlights.go
  • internal/deck/session/highlights_test.go
  • internal/deck/session/level.go
  • internal/deck/session/manager.go
  • internal/deck/session/modes.go
  • internal/deck/session/msgs.go
  • internal/deck/session/ops.go
  • internal/deck/store/scan_test.go
  • internal/deck/store/store.go
  • internal/workspace/browser.go
  • internal/workspace/browser_test.go
  • internal/workspace/deck_workspace.go
  • internal/workspace/highlights.go
  • internal/workspace/highlights_test.go
  • internal/workspace/remote_caps.go
  • pkg/remote/adapter/browser_test.go
  • pkg/remote/adapter/convert.go
  • pkg/remote/web/src/protocol.ts
  • pkg/remote/wire/wire.go
  • pkg/rpc/browser.go
  • pkg/rpc/browser_contract_test.go
  • pkg/rpc/browser_test.go
  • pkg/rpc/convert.go
  • pkg/rpc/highlights.go
  • pkg/rpc/highlights_test.go
  • pkg/rpc/project.go
  • pkg/rpc/room.go
  • pkg/rpc/server.go
  • pkg/rpc/socket.go
  • pkg/rpc/team.go
  • proto/deck/v1/deck.proto

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

The Preview pane becomes a small browser. Every agent of a room uses the same
Chromium and one in-memory session per Deck, each in tabs it owns, which the
person watches and can take over. Agents drive it through browser.* ops
(open, tabs, snapshot, click, type, press, scroll, select, wait, back,
forward, reload, eval, screenshot, close) that every CLI gets from the
existing search and execute tools.

The engine publishes each op to the desktop over a new BrowserHost stream
and the desktop answers with BrowserReply; the broker times out, refuses
when no window hosts the browser, and keeps per-agent and global limits.
Pages are WebContentsViews made on use, throttled when hidden and
discarded when idle or over the live cap. A page is read as an outline of
the accessibility tree whose actionable elements carry refs that fail
clearly when stale.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
browser.type's text is masked in every tool row and in the thread log,
origins are normalised the way the browser names them, and the desktop
ships a bench (scripts/browser-bench.cjs) that measures the process tree
with app.getAppMetrics() as agents are added, a real-Electron e2e of the
channel and the screenshots spec.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
Both branches built the same feature: a browser in the desktop app that
agents drive and the person watches. This keeps #97's design wherever the
two did the same job (the persistent per-project profile, origin approvals
through the approval cards, the authenticated desktop controller channel with
generations and cancellation, takeover, typed image results, Highlights and
the integration harness) and brings over what #96 did better for many agents
at once:

- Performance: at most 8 live pages (the least recently used idle page is
  discarded and comes back at its address), 6 tabs per agent, a 40-tab
  bound, idle discard after 5 minutes, background throttling and muting,
  hidden pages kept as one pixel and made visible only while an agent works
  (Chromium does not deliver input to a page hidden since birth: clicks on
  such a tab reported success and did nothing), a window-sized viewport for
  them, two heavy ops (snapshot, picture) at a time. Which page goes follows
  a use counter, not clock ties.
- Reading: a compact outline with stable [eN] refs replaces the flat
  accessibility list; text fields say only whether they are filled; password,
  card and code fields are never shown or typed by an agent, and when they
  cannot be found no field value is shown.
- Ops: one set of browser.* ops, now with press, scroll, select, wait,
  back, forward, reload and element screenshots; one proto, one broker, one
  controller channel, one tab manager.
- Safety: plan mode refuses acting ops; typed text is masked in rows, events
  and the stored log by reading the JSON, not matching bytes; JS dialogs are
  answered and reported instead of hanging the agent. browser.eval is not
  brought over: the profile persists, so a script could read its cookies.
- UI: tab strip with the agent's mark and hue (pulsing while it works), a bar
  that says what it is doing with Take control and Release, owners shown by
  their roster name.

The Preview pane stays separate as in #97.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
@dev-dami
dev-dami merged commit 9a06a8d into main Oct 28, 2026
10 checks passed
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.

4 participants