[FEATURE]: Add DevTools for built-in Desktop browser tabs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- electron, javascript, typescript
- 領域
- desktop-dev, devtools
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 230k
- フォーク
- 31.3k
- 平均マージ
- 5時間 32分
- マージ済み PR(30日)
- 453
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
anomalyco/opencode#67064 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 82/100
anomalyco/opencode#67009 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/web type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anomalyco/opencode#67001 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log対応中かも @liwenjie200543 が 2 日前に担当しました。 オープンarea/plugins platform/linux reproduced type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#66970 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaks対応中かも @argszero が 2 日前に担当しました。 オープンarea/tui platform/wsl status/repro-simulated type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
anomalyco/opencode#66773 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
tashfeenahmed/freellmapi#2169 ·
メンテナーはふだん 1 日以内に返信
-
via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vercel-labs/ui#1563 ·
メンテナーはふだん 1 日以内に返信