From 4a8a0c4cdf5ca2c03848dfbfdf26c433a37995f6 Mon Sep 17 00:00:00 2001 From: Loongphy Date: Sun, 31 May 2026 21:15:53 +0800 Subject: [PATCH 1/4] docs: design previous account switch --- ...26-05-31-previous-account-switch-design.md | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 docs/brainstorm/2026-05-31-previous-account-switch-design.md diff --git a/docs/brainstorm/2026-05-31-previous-account-switch-design.md b/docs/brainstorm/2026-05-31-previous-account-switch-design.md new file mode 100644 index 00000000..417f6afa --- /dev/null +++ b/docs/brainstorm/2026-05-31-previous-account-switch-design.md @@ -0,0 +1,147 @@ +# Previous Account Switch Design + +## Goal + +Add a `cd -` style shortcut for returning to the previous active account. + +The shortcut must support both: + +```shell +codex-auth - +codex-auth switch - +``` + +Both commands must have the same behavior. + +## User-Facing Behavior + +`codex-auth -` and `codex-auth switch -` switch to the previous active account. On success, output stays consistent with the existing switch command: + +```text +Switched to