Skip to content

fix(daemon): activate tabs before mouse input - #212

Closed
MonkeyLeeT wants to merge 1 commit into
epiral:mainfrom
MonkeyLeeT:codex/fix-background-tab-input
Closed

fix(daemon): activate tabs before mouse input#212
MonkeyLeeT wants to merge 1 commit into
epiral:mainfrom
MonkeyLeeT:codex/fix-background-tab-input

Conversation

@MonkeyLeeT

@MonkeyLeeT MonkeyLeeT commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • activate click targets before resolving DOM coordinates or dispatching mouse events
  • activate scroll targets before dispatching wheel events
  • add daemon dispatch tests covering activation order for click and scroll

Root cause

Chrome can accept Input.dispatchMouseEvent for background targets without producing DOM click or wheel effects. Measuring click coordinates before activation can also use stale background-tab layout, so the target now becomes foreground before coordinate resolution.

Validation

  • pnpm --filter @bb-browser/daemon test
  • pnpm build
  • pnpm lint
  • pre-commit hook ran pnpm build and pnpm test

Fixes #144

@MonkeyLeeT
MonkeyLeeT marked this pull request as ready for review May 11, 2026 06:17
@MonkeyLeeT MonkeyLeeT changed the title [codex] fix daemon mouse input on background tabs fix(daemon): activate tabs before mouse input May 11, 2026
@MonkeyLeeT
MonkeyLeeT force-pushed the codex/fix-background-tab-input branch from 4639a26 to 4e02167 Compare May 11, 2026 17:41
@MonkeyLeeT
MonkeyLeeT force-pushed the codex/fix-background-tab-input branch 6 times, most recently from 50e8c97 to a3fd1cc Compare May 28, 2026 17:36
@MonkeyLeeT
MonkeyLeeT force-pushed the codex/fix-background-tab-input branch from a3fd1cc to 682ddb1 Compare May 29, 2026 15:55
@MonkeyLeeT MonkeyLeeT closed this May 29, 2026
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.

Input.dispatchMouseEvent silently fails on background tabs (background: true)

1 participant