Skip to content

feat: support to disable auto open browser#365

Open
patrickmen wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
patrickmen:feat/no-browser
Open

feat: support to disable auto open browser#365
patrickmen wants to merge 1 commit into
DingTalk-Real-AI:mainfrom
patrickmen:feat/no-browser

Conversation

@patrickmen
Copy link
Copy Markdown

@patrickmen patrickmen commented May 27, 2026

Problem

_ = cmd.Flags().MarkHidden("no-browser")

The --no-browser flag was already defined on dws auth login but never wired to the device flow logic — the browser always opened regardless.

Fix

  • Pass the --no-browser flag value into DeviceFlowProvider.NoBrowser and gate the openBrowser call on it.
  • The flag was already defined but never connected — browser always opened regardless of the flag.

Copy link
Copy Markdown

@Bububuger Bububuger left a comment

Choose a reason for hiding this comment

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

LGTM — clean fix wiring the existing --no-browser flag into device flow logic.

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