Skip to content

Fix bug in login and logout commands to honor profile and config-file flags - #77

Merged
anekkanti merged 1 commit into
mainfrom
abhinav/profileFixForLoginCmd
Jun 3, 2026
Merged

anekkanti merged 1 commit into
mainfrom
abhinav/profileFixForLoginCmd

Conversation

@anekkanti

@anekkanti anekkanti commented Jun 2, 2026 •

Copy link
Copy Markdown
Member

Note

Low Risk
Narrow fix aligning OAuth persistence with existing profile flags; no new auth flows, only correct config targeting.

Overview
Cloud login and logout now read and write OAuth credentials using the same --config-file and --profile values as the rest of the CLI, via c.Parent.ConfigFile and c.Parent.Profile on LoadClientOAuth / StoreClientOAuth.

Previously those commands ignored those flags, so sessions could be stored or cleared in the wrong profile while other cloud commands used the selected profile.

Reviewed by Cursor Bugbot for commit 0dc2eb5. Bugbot is set up for automated code reviews on this repo. Configure here.

@anekkanti
anekkanti requested a review from a team as a code owner June 2, 2026 23:51
Comment on lines +18 to +19
ConfigFilePath: c.Parent.ConfigFile,
ProfileName: c.Parent.Profile,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not so important here because it's not a deeply nested command, but I believe this can also be gotten through cctx.RootCommand rather than c.Parent

jeri-temporal

This comment was marked as duplicate.

@anekkanti
anekkanti merged commit 57d04cc into main Jun 3, 2026
6 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