Repository navigation
Add agent browser and Highlights to desktop - #97
Merged
Merged
Conversation
…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>
|
Important Review skippedToo 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.
|
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
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Validation
go build -p 1 ./...,go vet -p 1 ./...andgo test ./internal/deck/guardpass.gofmt -l .prints nothing; staged whitespace checks pass.bun run lintand production build pass. Renderer checks pass 567/567 with the slow icon tests excluded; the complete desktop suite is reported below.Notes for the reviewer: existing local failures
Compared with a clean detached checkout of
origin/mainat8a55d2362c9ffb242bb92458646c0cbed430007f, using the same Windows host and dependency versions. No baseline source edits, stash or test suppressions.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
shexists. 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 completego test ./...pass together (build/vet pass locally; full test suite is not green, as detailed above).gofmt -l .prints nothing.Limits
Generated with Deck