From e916d5942bfb61534aab09f2668d3f8f0a879ba4 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Tue, 17 Mar 2026 12:48:30 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20"Use=20Claude=20Code=20Token"=20button?= =?UTF-8?q?=20=E2=80=94=20imports=20credentials.json=20as=20OAuth=20fallba?= =?UTF-8?q?ck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reads %USERPROFILE%\.claude\.credentials.json (or ~/.claude/.credentials.json), extracts the access and refresh tokens, stores them encrypted in Wraith's vault. Works when Wraith's own OAuth exchange fails. If Claude Code is authenticated on the same machine, Wraith piggybacks on the existing token. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/copilot/CopilotSettings.vue | 23 +++++++- internal/ai/oauth.go | 53 +++++++++++++++++++ internal/app/app.go | 9 ++++ 3 files changed, 84 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/copilot/CopilotSettings.vue b/frontend/src/components/copilot/CopilotSettings.vue index 716465b..d5a50d0 100644 --- a/frontend/src/components/copilot/CopilotSettings.vue +++ b/frontend/src/components/copilot/CopilotSettings.vue @@ -27,7 +27,14 @@ class="w-full px-3 py-2 text-sm font-medium text-white bg-[#1f6feb] hover:bg-[#388bfd] rounded transition-colors cursor-pointer" @click="handleLogin" > - Connect to Claude + Connect to Claude (OAuth) + + +
@@ -97,6 +104,7 @@