Skip to content

Log the focus events around a blur-cancelled page's keyboard return - #598

Merged
yansfil merged 1 commit into
mainfrom
log-window-return-focus
Oct 6, 2026
Merged

yansfil merged 1 commit into
mainfrom
log-window-return-focus

Conversation

@yansfil

@yansfil yansfil commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Part of #511

Summary

The desktop e2e area cycle native still fails its first attempt at browser.spec.ts:857 on main after #586 (run 37403778186 on 0f3739a7: attempt 1 failed with browser.window_return page_focused:true logged, the retry passed).
The log cannot say what took the keyboard after the host paid it, because it records only the payment.
This adds host log events for the window's blur and focus, the page's blur and the shell's focus, so the next failing attempt shows the order; no behavior changes.

Review

  • 조심해서 볼 파일: desktop/src/main/browser.ts - four log.event calls in focus/blur listeners; they fire at operator-click rate, none carries page content.

Evidence

  • 확인한 것: desktop typecheck, lint and 155 unit tests pass.
  • 확인하지 못한 것: that the new events explain the failure; that needs a failing desktop e2e attempt in CI. The @needs-focus spec was not run locally.

@yansfil
yansfil merged commit 76aef3b into main Oct 6, 2026
13 checks passed
@yansfil
yansfil deleted the log-window-return-focus branch October 6, 2026 03:09
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