Skip to content

Improve user-facing copy - #5

Merged
boristane merged 2 commits into
mainfrom
copy-pass
Jul 24, 2026
Merged

Improve user-facing copy#5
boristane merged 2 commits into
mainfrom
copy-pass

Conversation

@claude

@claude claude Bot commented Jul 24, 2026

Copy link
Copy Markdown

Requested by boris · Slack thread

Before: an unknown command — including polylane setup on old bundles — dumped the full ~46-line root help. After: a 2-line error (Error: Unknown command: polylane setup / Hint: Run \polylane --help` to list commands), exit 2, JSON envelope when piped. polylane help shared the path and gets the same fix. This is the CLI-side root cause; it doesn't conflict with the installer'ssetup --help` probe.

How: reviewed every human-facing string (help, prompts, spinners, receipts, warnings, errors). One verb family for auth state, spinners end in , dead-end errors converted to CLIError with the exact next command, account(s) pluralization fixed. Root help unchanged; JSON/parseable output untouched. ERRORS.md synced; tests added for the unknown-command error and setup's unknown-agent error. Codegen, typecheck, lint, tests (117), build all pass.

Before After
Unknown command: polylane setup + 46 lines of help Unknown command: polylane setup + hint, 2 lines
Not logged in. / Authenticated as … / Logged out Not signed in. / Signed in as … / Signed out
Unauthorized - check your API key (401) Not authenticated
Refusing to disconnect without --yes in non-interactive mode Confirmation required + Re-run with --yes to disconnect <id>
No workspace matching "x" (bare, exit 1) same + List workspaces with \polylane workspace list``
How would you like to authenticate? Sign in with
Waiting for assistant on thrd_x Waiting for reply on thrd_x…
3 account(s) failed to connect 3 accounts failed to connect

🤖 Generated with Claude Code

https://claude.ai/code/session_016f5mrz553qSn9DoBJLoAzb


Generated by Claude Code

claude added 2 commits July 24, 2026 02:58
An unknown command (e.g. `polylane setup` on an old bundle) printed the
full ~46-line root help. It now prints a two-line error with exit 2, in
both text and JSON output. `polylane help <unknown>` shared the same
path and gets the same fix.
One verb family for auth state (signed in/out), spinner labels with a
real ellipsis, singular/plural interpolation, and every dead-end error
now names the next command. ERRORS.md rows updated to match.
@boristane
boristane marked this pull request as ready for review July 24, 2026 04:43
@boristane
boristane merged commit 1d6aa06 into main Jul 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants