Skip to content

fix(cli): honest Linear vault fallback status and a re-asking identity picker - #1006

Closed
isadeks wants to merge 4 commits into
mainfrom
fix/996-linear-setup-fallback-and-picker
Closed

isadeks wants to merge 4 commits into
mainfrom
fix/996-linear-setup-fallback-and-picker

Conversation

@isadeks

@isadeks isadeks commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #996.

  • Honest fallback status: when bgagent linear setup moves a workspace onto the Identity vault and keeps the existing Secrets Manager token, it now reports the fallback as unverified if the kept access token has already expired. Before, it always printed "✓ Kept … as a fallback". A refresh token can't be checked without rotating it, so the message says exactly that. The logic lives in describePreservedFallback in linear-oauth.ts.
  • Re-asking pickers: the self-link and teammate pickers use a new promptChoice, which re-asks on an empty or invalid answer, up to 3 times. A pasted session id ending in a newline, followed by Enter, used to deliver an empty answer to the picker and silently skip the self-link.

Tests

  • New: describePreservedFallback for expired and live tokens; promptChoice re-asking after a stray empty line, on out-of-range and non-numeric answers, and giving up after the attempt budget.
  • CLI suite 1,084 passed; eslint clean.

@isadeks
isadeks requested review from a team and backgroundagents as code owners November 5, 2026 14:30
…y picker

- When `bgagent linear setup` moves a workspace onto the Identity vault it
  keeps the existing Secrets Manager token. If that token's access token has
  already expired, setup now says the fallback is unverified (refresh tokens
  expire when unused and cannot be checked without rotating) instead of
  printing "Kept the existing Secrets Manager token as a fallback". Seen
  live: a token dead since 2026-08-27 was reported as a working fallback.
- The self-link and teammate pickers re-ask on an empty or invalid answer
  (up to 3 times). A pasted session id that ends in a newline, followed by
  Enter, left a stray empty line that silently skipped the self-link.
@isadeks
isadeks force-pushed the fix/996-linear-setup-fallback-and-picker branch from e91981e to 1fbfad4 Compare November 5, 2026 14:37
@isadeks

isadeks commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1067, which carries this change (its commits are kept as they were, followed by one commit that adapts the combined set to current main). Closing to keep one place for review.

@isadeks isadeks closed this Nov 25, 2026
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.

fix(cli): linear setup reports a dead token as a working fallback; identity picker skips on a stray newline

2 participants