Diagnose and plan bug resolution strategy

Unlisted
See the bug in @bug.txt. Find the problem and generate a plan. Do not write any code. Use the oracle as needed to diagnose the issue.

Primary Fix: Add fullscreen detection guard to HiddenTitlebarTerminalWindow.reapplyHiddenStyle()

Implementation Steps:

  1. Add fullscreenActive property to detect both native and non-native fullscreen states
  2. Guard reapplyHiddenStyle() to skip execution during fullscreen
  3. Test the fix with hidden titlebar + non-native fullscreen combination

Alternative approaches if primary fix insufficient:

  • Make reapplyHiddenStyle() idempotent by preserving existing style mask state
  • Add explicit focus restoration after style mask changes

Verification:

  • Hidden titlebar window → toggle non-native fullscreen via keybind → run echo hi → confirm window remains focused