Skip to content

feat(cli): aws sso login redirect on SSO-expired (TTY-gated) #375

Description

@macalbert

Description

After #1, offer to run aws sso login --profile X when an SsoSessionExpiredError is presented. CLI-only.

Acceptance Criteria

  • Redirect only triggers on an interactive TTY (never in CI / non-interactive shells)
  • Prompts before launching (Run aws sso login now? [y/N])
  • Never part of any SDK
  • Tests pass: pnpm test

Technical Notes

Message standards (ADR-0010 §5)

All user-facing text in this slice must meet the ADR-0010 message standards:

  • Plain and direct ÔÇö written for a broad developer audience; no jargon or raw provider stack-trace noise
  • Actionable step-by-step ÔÇö one-line problem + the exact steps to fix (e.g. aws sso login --profile <name>, then retry)
  • Professional and calm on the failure path (no playful tone in errors)
  • Keyword-anchored ÔÇö surfaces the profile name, the command to run, and the provider
  • CLI formatted (colour/icon/layout) / SDK clean plain text without ANSI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions