[FEATURE]: Add DevTools for built-in Desktop browser tabs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- electron, javascript, typescript
- Ambito
- desktop-dev, devtools
Direzione di ricerca
Start with the built-in Desktop browser tab creation and the menu/action registration that currently targets the application shell. Inspect the Browser API observation path and its Electron debugger-detach handling, then run the packaged Desktop app on Windows to reproduce the tab-scoped DevTools workflow. Done means DevTools opens for only the selected tab, preserves its state, and the agent reports busy during manual ownership but recovers after DevTools closes; treat the Browser API follow-ups as separate work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Add an Open DevTools action for the active tab in the built-in Desktop browser. This would let me debug the page I am already working on with the agent, preserving its session and in-memory state without reopening it in an external browser or enabling a remote debugging port.
Current behavior (Desktop 2.4.2 on Windows): In the packaged code, the browser tab is created with native DevTools disabled, and View → Toggle Developer Tools targets the application shell. The Browser API already provides page evaluation, console messages, HTTP request inspection, tracing, CPU and heap profiling, and Lighthouse. Related browser-pane work: #63002.
Initial scope: DevTools for a browser tab
Open Chromium's DevTools for the tab selected when the action is invoked. Expose the standard panels available for Electron web content: Elements, Console, Sources, Network, Application, Performance, and Memory, along with Device Mode where supported. The key workflow is stepping through JavaScript in Sources. Keep the same document and page state when opening and closing DevTools.
Electron documents that opening DevTools can detach the existing programmatic debugger. The current browser pane treats an unexpected detach as a page failure. This is an integration risk identified from the packaged code and Electron's documentation, not a failure reproduced with per-tab DevTools enabled. If manual DevTools temporarily takes ownership, agent operations on that tab should report that it is busy, and agent control and diagnostics should recover when DevTools closes.
Acceptance example: Open two pages. On tab A, change an in-memory value, then open DevTools while the agent is already observing the tab. Hit a breakpoint in a test script with a valid TypeScript source map, step, resume, and close DevTools. The value is unchanged and new console and network events from tab A are visible through the Browser API. Tab B is not paused or taken over. Also verify that closing DevTools while tab A is paused does not leave that tab stuck.
Browser API follow-ups
The UI request above can ship independently. The list below tracks additional work for the agent. Where Desktop already has a capability, expose it rather than reimplementing it. Scope agent-controlled breakpoints, emulation, and request overrides to the targeted tab. Support explicit reset and release agent-owned settings when debugging ends or the tab closes.
- JavaScript debugger: set, disable, and remove line breakpoints, conditional breakpoints, and logpoints in plain JavaScript and source-mapped builds. Support pause, step in/over/out, and resume. Inspect sync and async call stacks and local scopes, and evaluate expressions in a paused frame. Include exception, DOM, event-listener and XHR/fetch breakpoints, and worker targets where supported.
- Startup and network control: expose registration and removal of an agent-supplied script that runs before page scripts; Desktop already uses pre-document scripts internally. Add tab-scoped request blocking and request/response overrides for tests (request headers and body; response status, headers, and body), and cache bypass across requests beyond the existing one-off
reload(ignoreCache). - Emulation: expose existing fixed viewport and mobile/touch presets. Add independent controls for device pixel ratio, custom user agent, locale/timezone, geolocation, media preferences, offline and network latency/bandwidth, and CPU throttling.
- Network diagnostics: expose redirect chains already tracked internally, request initiator stacks and timing phases, individual WebSocket messages and SSE events, optional capture across navigation, and HAR export that redacts credential headers and omits URL query strings and payloads by default.
- Application and security diagnostics: cookie inspection and selective cookie clearing are already requested in #63519, which also proposes a basic storage reset. Track the remaining gaps here: blocked-cookie reasons, service-worker inspection and bypass, HTTP-cache behavior, and browser-reported TLS/certificate, mixed-content, CORS and content-policy issues. If existing Desktop site-data/cache clearing is exposed to the agent, show the affected origin or profile and confirm the action. Other tabs can share that data.
- CSS, rendering and coverage: expose matched and overridden rules with source locations, forced pseudo-states, native paint/layout-shift overlays and compositor layers, and used/unused ranges for JS and CSS.
- User-flow recording: record actions a person performs in the tab and export replayable steps.
API acceptance examples:
- On a test page, the agent sets a breakpoint, receives a pause event, reads a known local variable, steps, and resumes. Ending the agent's debugging session while paused releases a pause it owns and preserves user breakpoints.
- Start with the same test endpoint returning
200in two tabs on the same origin. Install a mock before reloading tab A. Make a fresh request from each tab while the mock is active. Tab A receives503; tab B receives200. Remove the mock and verify a new request from tab A receives200.
- Lingua principale
- TypeScript
- Stelle
- 230k
- Fork
- 31.3k
- Merge medio
- 5h 32m
- PR unite (30g)
- 453
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
anomalyco/opencode#67064 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 82/100
anomalyco/opencode#67009 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area/web type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
anomalyco/opencode#67001 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any logForse già presa @liwenjie200543 l’ha presa 2 giorni fa. Apertaarea/plugins platform/linux reproduced type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#66970 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksForse già presa @argszero l’ha presa 2 giorni fa. Apertaarea/tui platform/wsl status/repro-simulated type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
anomalyco/opencode#66773 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tashfeenahmed/freellmapi#2169 ·
I maintainer di solito rispondono entro 1 giorno
-
via-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
vercel-labs/ui#1563 ·
I maintainer di solito rispondono entro 1 giorno