Skip to content

fix: session-create + settings edge cases#133

Open
dzianisv wants to merge 1 commit into
mainfrom
fix/session-create-settings-bugs
Open

fix: session-create + settings edge cases#133
dzianisv wants to merge 1 commit into
mainfrom
fix/session-create-settings-bugs

Conversation

@dzianisv

Copy link
Copy Markdown
Owner

Four verified bugs from a review of session creation, the sessions list, and settings. Lower-severity than the core-path hunts — a signal the core is now well-hardened. typecheck clean, 199 tests, i18n parity.

  1. Double-tap created duplicate sessions. The new-session FAB / 'Use this folder' had no re-entrancy guard (isCreating state lags a render). Added a synchronous ref guard.
  2. 'Require biometric for messages' got stuck ON and enforced with no way to disable — after turning off the parent 'Require biometric to open' toggle, the child switch is disabled but still enforced on every send. authenticateForMessage now also gates on the parent toggle.
  3. Silent session-create failure on the default path (modal just closed, no feedback). Both paths now alert; message generic.
  4. Recent-directory duplicates ('/x' vs '/x/') and a mismatched 'current' highlight — now stripTrailingSlash.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T12AhSnQVrSxNnvwfCx2z6

…k, recent-dir dupes)

Four bugs from a review of session creation, the sessions list, and settings
(lower-severity than the core-path hunts — the core is now well-hardened):

1. Double-tap on the new-session FAB / 'Use this folder' created duplicate
   sessions (isCreating state lags a render). Added a synchronous re-entrancy
   ref guard.
2. 'Require biometric for messages' got stuck ON and enforced with no UI escape
   after turning off the parent 'Require biometric to open' toggle (the child
   switch is then disabled). authenticateForMessage now also gates on the parent.
3. Session-create failure on the default path silently closed the modal with no
   feedback (only the dir path alerted). Both paths now alert; message made generic.
4. Recent-directories got duplicate entries ('/x' vs '/x/') and a mismatched
   'current directory' highlight. switchDirectory/addRecentDirectory now
   stripTrailingSlash.

typecheck clean, 199 tests, i18n parity.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T12AhSnQVrSxNnvwfCx2z6
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