Skip to content

feat: remove fallback to first saved account in get-context-token#21

Merged
lewiszlw merged 2 commits into
masterfrom
feat/remove-gct-fallback
Apr 24, 2026
Merged

feat: remove fallback to first saved account in get-context-token#21
lewiszlw merged 2 commits into
masterfrom
feat/remove-gct-fallback

Conversation

@lewiszlw
Copy link
Copy Markdown
Member

BREAKING CHANGE: get-context-token now requires --user-id explicitly. The old behavior of falling back to the first saved account when --user-id was omitted has been removed.

Changes

  • src/cli.rs: user_id changed from Option<String> to String
  • src/commands/get_context_token.rs: removed resolve_user_id call; user_id is now required
  • src/commands/account.rs: removed resolve_user_id function
  • src/storage.rs: removed get_account_ids function
  • README.md: updated get-context-token example to show required --user-id
  • Cargo.toml: bumped version to 0.4.0

Validation

  • cargo build — success
  • cargo test — 11 passed; 0 failed
  • cargo clippy --all-features -- -D warnings — success
  • cargo fmt --all --check — success

BREAKING CHANGE: get-context-token now requires --user-id explicitly.
The old behavior of falling back to the first saved account when --user-id
was omitted has been removed.

Changes:
- cli.rs: user_id changed from Option<String> to String
- get_context_token.rs: removed resolve_user_id call, user_id is now required
- account.rs: removed resolve_user_id function
- storage.rs: removed get_account_ids function
- README.md: updated get-context-token example to show required --user-id
- Cargo.toml: bumped version to 0.4.0
@lewiszlw lewiszlw merged commit 9162195 into master Apr 24, 2026
3 checks passed
@lewiszlw lewiszlw deleted the feat/remove-gct-fallback branch April 24, 2026 04:12
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.

1 participant