Skip to content

Gate hasCompletedOnboarding on credential presence#44

Merged
jhrozek merged 1 commit intomainfrom
onboarding
Mar 16, 2026
Merged

Gate hasCompletedOnboarding on credential presence#44
jhrozek merged 1 commit intomainfrom
onboarding

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Mar 16, 2026

Only set hasCompletedOnboarding in .claude.json when credentials
were actually injected into the rootfs. Without this guard the
onboarding wizard was unconditionally skipped, leaving first-time
users logged out with no sign-in prompt.

The credential injection hook runs before the MCP config hook, so
a simple stat on .claude/.credentials.json is sufficient to decide.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Only set hasCompletedOnboarding in .claude.json when credentials
were actually injected into the rootfs. Without this guard the
onboarding wizard was unconditionally skipped, leaving first-time
users logged out with no sign-in prompt.

The credential injection hook runs before the MCP config hook, so
a simple stat on .claude/.credentials.json is sufficient to decide.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jhrozek jhrozek merged commit ccdd66e into main Mar 16, 2026
7 checks passed
@jhrozek jhrozek deleted the onboarding branch March 16, 2026 11:25
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.

2 participants