Commit Graph

22 Commits

Author SHA1 Message Date
bincxz 4e794d4af1 fix(app-lock): keep window drag region on lock overlay
The lock screen is a full-window overlay, so it covers the title-bar
drag region and is the only chrome on a locked first paint. Mark the
backdrop as app-drag and keep unlock controls app-no-drag.

Closes #3058
2026-08-19 10:18:28 +08:00
bincxz e6c46f8198 fix(app-lock): defer protected actions until unlock 2026-08-18 20:45:29 +08:00
bincxz 8eaab92d31 feat(app-lock): prioritize system unlock flow 2026-08-18 20:22:34 +08:00
bincxz 370b57fa67 style(app-lock): simplify password field 2026-08-18 19:43:54 +08:00
bincxz 8562a26315 style(app-lock): move lock icon into password field 2026-08-18 19:42:07 +08:00
bincxz 0ac5c728b2 style(app-lock): add lock badge to logo 2026-08-18 19:39:43 +08:00
bincxz ff40b4fcff refactor(app-lock): align settings with modal flow 2026-08-18 19:36:52 +08:00
bincxz d422a27715 Merge origin/main into feature/app-lock-screen
Reconcile the app-lock feature with main's refactored renderer
architecture (publishers/hosts/AppShell) and main-process changes:

- index.tsx/App.tsx: AppLockGate keeps ownership of useSettingsState and
  useAppLockState; new AppLockRuntimePublisher publishes the runtime via
  appRuntimeBridge; SettingsPublisher now binds the gate-owned settings.
- AppSideEffects: defer deep links, tray port-forward toggles, global
  hotkeys and window close commands while locked; flush on unlock.
- main.cjs: keep fresh-session re-lock before main's reusable-window
  fast path; before-quit guard delegates to handleBeforeQuit with main's
  async plugin-shutdown commitQuit and pending-update cancellation.
- globalShortcutBridge: keep locked-state tray redaction on top of
  main's deferred tray panel show logic.
- preload: adopt main's lastPayload replay for terminal popup config
  (superset of the gate-delay replay fix).
- vite config: keep dev CSP plugin, adopt main's warn-only stale
  optimize-dep handling; electron-builder: keep Windows Hello helper
  extraResource with main's CLI-controlled arch targets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:30:30 +08:00
bincxz 8a4bec65dc fix(app-lock): topmost overlay and gate remaining capture key handlers
Raise the lock screen to max z-index and hide the context-menu portal while
locked. Centralize isAppLockOverlayActive and gate ChatInput slash picker,
SFTP shortcuts, theme modal, and shortkey/hotkey recorders so earlier
window-capture listeners cannot steal unlock keystrokes.
2026-08-06 05:00:00 +08:00
bincxz 100394dce9 fix(app-lock): block app key handlers before window listeners
While locked, use window capture with stopImmediatePropagation so
shortkey/hotkey recorders never see lock-screen keys, and stop
document bubble so window-level shortcuts (e.g. Snippets save) cannot
run even when focus is on body.
2026-08-06 04:12:23 +08:00
bincxz 81e1f7797d fix(app-lock): stop lock-screen keystrokes reaching app shortcuts
inert does not block keydown bubbling to window listeners. While locked,
stop propagation for keys targeted at the overlay so panel shortcuts
(e.g. Snippets Ctrl/Cmd+S) cannot act behind the lock screen.
2026-08-06 03:48:19 +08:00
bincxz c3dcb5c326 fix(app-lock): raise lock overlay above portaled menus
Popovers/dropdowns use z-999999; lock was only z-200000 so open menus
could remain interactive above the lock screen.
2026-08-06 02:09:42 +08:00
bincxz 1d11ae4c00 fix(app-lock): mark lock dialog data-state=open for shortcut guards
Mounted shortcut hooks (e.g. SFTP) suppress when a dialog has
data-state=open. Without that marker, keyboard actions could still run
behind the app lock overlay when focus is not on the password field.
2026-08-06 01:18:09 +08:00
bincxz 193e5e8251 fix(app-lock): inert re-locked UI; defer tray port-forward until unlock
Mark mounted app children inert/aria-hidden/pointer-events-none while locked,
trap Tab inside the lock dialog, and suppress global hotkeys. Queue tray
port-forward toggles in main (and renderer) until the runtime unlocks.
Dirty-quit focus restore already verified.
2026-08-05 23:55:26 +08:00
Zheng Liu 6c49baf84a feat: add app lock system unlock auto prompt setting 2026-06-24 16:27:43 +08:00
Zheng Liu 46716f177c fix: refine app lock biometric unlock 2026-06-24 15:58:48 +08:00
Zheng Liu 41f8924209 fix: streamline app lock system unlock 2026-06-24 15:38:24 +08:00
Zheng Liu 0ea707f70f fix: harden app lock system unlock flow 2026-06-24 14:42:49 +08:00
Zheng Liu 751aee07f3 feat: expose app lock system unlock state 2026-06-24 14:26:24 +08:00
Zheng Liu c186258abd feat: add app lock reset easter egg 2026-06-24 09:18:08 +08:00
Zheng Liu 4d54b12f56 feat: add app lock overlay 2026-06-17 13:40:09 +08:00
Zheng Liu e2c25508a1 feat: add app lock lifecycle state 2026-06-17 13:35:53 +08:00