Skip to content

fix: defer no-wait auth polling hint#10

Open
hehanlin1996 wants to merge 1 commit into
mainfrom
ai-fix-20260517-auth-nowait-hint
Open

fix: defer no-wait auth polling hint#10
hehanlin1996 wants to merge 1 commit into
mainfrom
ai-fix-20260517-auth-nowait-hint

Conversation

@hehanlin1996
Copy link
Copy Markdown
Owner

Summary

Clarifies the auth login --no-wait --json hint for AI agents so they deliver the verification URL before starting the blocking device-code polling step.
This keeps the existing opaque URL warning while avoiding same-turn polling before the user has received the URL.

Changes

  • Update the no-wait JSON hint to relay verification_url first and resume polling only after delivery, such as in the background or next turn.
  • Add a regression test for the no-wait JSON hint flow.

Test Plan

  • Unit tests pass: go test ./cmd/auth -count=1
  • Manual local verification confirms the lark xxx command works as expected: N/A, scoped hint-text change covered by cmd/auth unit tests.

Related Issues

Co-Authored-By: Aiden
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