Add re-auth y/N confirmation to minimal TUI login flows

This commit is contained in:
William Valentin
2026-02-15 20:12:31 -08:00
parent 99ad53a1ee
commit 42c526bce9
3 changed files with 165 additions and 10 deletions
+12
View File
@@ -123,6 +123,18 @@
"test_status": "pnpm test:run src/cli/zai-auth.test.ts src/frontends/tui/minimal.test.ts + pnpm typecheck passing"
},
"tui-login-reauth-confirmation-all-providers": {
"status": "completed",
"date": "2026-02-16",
"updated": "2026-02-16",
"summary": "Updated minimal TUI `/login` flows to prompt `Re-authenticate and replace it? (y/N)` when credentials already exist, instead of requiring manual auth.json deletion. Applied to OpenAI (OAuth + API key), Anthropic (API key + auth token), and Z.AI.",
"files_modified": [
"src/frontends/tui/minimal.ts",
"src/frontends/tui/minimal.login.test.ts"
],
"test_status": "pnpm test:run src/frontends/tui/minimal.login.test.ts src/frontends/tui/minimal.test.ts + pnpm typecheck passing"
},
"deployment-port-env-override": {
"status": "completed",
"date": "2026-02-16",