OpenClaw / gogcli
Merged upstreamCorrectnessMerged Sep 7, 2026

Correct persistent default account setup

Repaired gogcli's quickstart account-selection workflow and documented the precedence of explicit account flags, environment configuration, and the saved default.

openclaw/gogcli · #1093

User guidance correction

Gogcli's quickstart now directs users to the supported account manager instead of an invalid command that attempts to create the reserved `default` alias.

Problem

The published quickstart recommended `gog auth alias set default`, but `default` is reserved by the CLI. Users following the documented setup received an error instead of persisting their preferred account.

Approach

Replaces the invalid alias command with `gog auth manage` and its Set default action, while clarifying that `--account` and `GOG_ACCOUNT` intentionally override the stored selection.

Impact and scope

  • Restores a working first-run path for users configuring multiple Google accounts.
  • Makes persistent and per-command account selection behavior unambiguous.
  • Corrects the documentation without changing aliases, account precedence, or runtime defaults.

Validation

  • The built CLI reproduced the reserved-name error, then persisted a synthetic account through the real local account manager across process exit.
  • Explicit flag and environment overrides, focused account and alias tests, and exact-head Linux, Windows, macOS, and Worker CI passed.
  • The GitHub-verified merge commit credits Goutam Adwant and closed GH-1092.