Add y/N re-auth confirmation to zai-auth command

This commit is contained in:
William Valentin
2026-02-15 19:57:52 -08:00
parent 8b1ed2f689
commit 22930cbe2e
3 changed files with 105 additions and 2 deletions
+12
View File
@@ -69,6 +69,18 @@
"test_status": "pnpm test:run src/frontends/tui/minimal.test.ts src/models/openai.test.ts src/daemon/clientFactory.test.ts + pnpm typecheck passing"
},
"zai-auth-reauthenticate-confirmation": {
"status": "completed",
"date": "2026-02-16",
"updated": "2026-02-16",
"summary": "Improved `zai-auth` UX: when a stored credential already exists, prompt for confirmation (`Re-authenticate and replace it? (y/N)`) instead of requiring manual auth.json edits. Added command tests for both cancel and replace flows.",
"files_modified": [
"src/cli/zai-auth.ts",
"src/cli/zai-auth.test.ts"
],
"test_status": "pnpm test:run src/cli/zai-auth.test.ts + pnpm typecheck passing"
},
"deployment-port-env-override": {
"status": "completed",
"date": "2026-02-16",