Skip to content

Conversation

@Wendong-Fan
Copy link
Contributor

Summary

Follow-up improvements for #1021 (authentication and search history management):

  • SignUp.tsx: Add null guard for Stack app in handleReloadBtn, consistent with Login.tsx, to gracefully handle missing OAuth configuration
  • Login.tsx: Reorder setModelType('cloud') after token validation in handleLoginByStack to ensure store state consistency
  • Login.tsx: Add await on handleLoginByStack() in handleAuthCode to prevent race condition with lock reset
  • .vscode/tasks.json: Remove from git tracking since .vscode/ is gitignored and the referenced debug script no longer exists

Related

Wendong-Fan and others added 2 commits February 2, 2026 04:11
1. SignUp.tsx handleReloadBtn: add null check for Stack app to prevent
   runtime crash when VITE_STACK_* env vars are not configured
2. .vscode/tasks.json: untrack from git since .vscode/ is gitignored
   and the referenced .debug.script.js was never created
3. Login.tsx handleLoginByStack: move setModelType('cloud') after token
   validation to prevent inconsistent store state on auth failure
4. Login.tsx handleAuthCode: add missing await on handleLoginByStack
   to prevent race condition with lock reset

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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