Skip to content

Auto-start auth from Cursor session hook#3

Open
ishaanxgupta wants to merge 1 commit into
codex/cursor-web-auth-connectfrom
codex/cursor-auto-auth-on-first-use
Open

Auto-start auth from Cursor session hook#3
ishaanxgupta wants to merge 1 commit into
codex/cursor-web-auth-connectfrom
codex/cursor-auto-auth-on-first-use

Conversation

@ishaanxgupta

Copy link
Copy Markdown

Summary

  • Start the browser auth flow from Cursor's sessionStart hook when no API key is configured.
  • Add auth-attempted and logged-out markers so first-use auth does not nag after a failed/ignored prompt or explicit logout.
  • Clear markers on successful/manual login so auth can be retried intentionally.

Testing

  • bun run typecheck
  • bun run build
  • Temporary-home smoke: pre-created .supermemory-cursor/.auth-attempted, ran bun run src/hooks/session-start.ts, confirmed it returned {"continue":true} without launching auth.

Stacked on #2 because the current Cursor auth branch contains the web-app OAuth routing this builds on.

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