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