Skip to content

Fix Inspect Element in browser context menu - #2699

Merged
jonathanKingston merged 3 commits into
mainfrom
copse/how-come-right-click-inspect-element-isn-t-93b136
Sep 20, 2026
Merged

jonathanKingston merged 3 commits into
mainfrom
copse/how-come-right-click-inspect-element-isn-t-93b136

Conversation

@jonathanKingston

Copy link
Copy Markdown
Collaborator

What changed

Right-click Inspect Element in a browser guest now waits for Electron's native context menu to close, opens detached guest DevTools, and targets the clicked coordinates after DevTools reports that it is ready. The popup is also associated with its owner window, frame, and source type.

Unit coverage verifies the native-menu ordering, the already-open DevTools path, cancellation, and guest destruction while DevTools opens.

Validation

  • corepack pnpm test -- src/main/windows/browser-context-menu.test.ts — 12 passed
  • corepack pnpm test -- src/main/services/hooks/after-file-edit.test.ts — 10 passed
  • corepack pnpm run typecheck
  • corepack pnpm run lint
  • corepack pnpm run format:check
  • corepack pnpm run demo:site:check
  • corepack pnpm run check:dead-code
  • corepack pnpm run check:oracle
  • corepack pnpm run check:e2e-syntax
  • corepack pnpm run build
  • git diff --check

The first broad unit run completed with 27 hook subprocess cases timing out at their two-second limit under full-suite load. The representative hook file passes all 10 cases in isolation.

Visual evidence

No screenshot is included. Electron's native context menu is outside renderer screenshots, and the ChromeDriver debugger suppresses guest DevTools in this fixture, including the existing toolbar Open inspector path. The native ordering is covered deterministically by the focused unit test.

Co-Authored-By: Copse noreply@copse.dev
Copse-Models: acp:codex-acp#gpt-5.6-sol

Co-Authored-By: Copse <noreply@copse.dev>

Copse-Models: acp:codex-acp#gpt-6
github-actions Bot added a commit that referenced this pull request Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🖥️ PR preview

@copse-release-bot

copse-release-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Reference screenshots

CI run 35514033579 published no changed screenshot candidates for c7ce94326bf1.
Any review PR for an older source SHA has been closed.

Screenshot candidates rendered for parent PR
#2699 at
`9b58320abc2b61e8e445532d1fd47eec92c6c59a` by
[CI run
35476145819](https://github.com/copse-dev/agent-pane/actions/runs/35476145819).

Review GitHub's image diffs, then merge this PR (or enable auto-merge)
to apply the
accepted references to
`copse/how-come-right-click-inspect-element-isn-t-93b136`. This branch
contains
only PNG candidates from the immutable
`reference-screenshot-candidates-35476145819` artifact and never targets
`main`.

If the parent branch has advanced beyond the source SHA above, do not
merge this PR;
the successful CI run for the new head will replace it.

Co-authored-by: jonathanKingston <338988+jonathanKingston@users.noreply.github.com>
@jonathanKingston
jonathanKingston merged commit 08cbfba into main Sep 20, 2026
17 checks passed
@jonathanKingston
jonathanKingston deleted the copse/how-come-right-click-inspect-element-isn-t-93b136 branch September 20, 2026 13:49
github-actions Bot added a commit that referenced this pull request Sep 20, 2026

This branch was successfully deployed

1 active deployment
github-pages c7ce9432 Deployed Sep 20, 2026 by jonathanKingston via deploy / deploy #1037
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