From 3f8e16edb204b223050af13a654586e1b931e950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Mikalsen?= <119136210+AndyMik90@users.noreply.github.com> Date: Sun, 15 Mar 2026 11:05:27 +0100 Subject: [PATCH] fix: skip Claude onboarding for profiles + prevent duplicate accounts (#1952) * fix: skip Claude Code onboarding for authenticated profiles When CLAUDE_CONFIG_DIR points to a profile directory, Claude Code reads .claude.json from that directory instead of ~/.claude.json. Profile configs created by `claude auth login` don't include hasCompletedOnboarding, causing the onboarding wizard to appear every time Claude Code is launched. Set hasCompletedOnboarding: true in the profile's .claude.json after successful authentication and before each Claude Code invocation. Co-Authored-By: Claude Opus 4.6 * chore: clean up dead onboarding code paths and add tests Remove dead `needsOnboarding` UI branch from AuthTerminal.tsx and stale type declarations from types.ts, ipc.ts, terminal-api.ts. Remove unreachable `ensureOnboardingComplete` call from `handleOnboardingComplete` (guard prevents execution). Export `ensureOnboardingComplete` and add 9 unit tests covering all branches. Co-Authored-By: Claude Opus 4.6 * fix: allow project-switching shortcuts when terminal is focused xterm.js uses a hidden