feat: simplify scope reporting in login flow#582
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughRemoved Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #582 +/- ##
==========================================
+ Coverage 60.42% 60.63% +0.21%
==========================================
Files 393 393
Lines 33657 33789 +132
==========================================
+ Hits 20336 20489 +153
+ Misses 11433 11392 -41
- Partials 1888 1908 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@1bc7909dc6ca7ec179196f5657c876e35e964cf4🧩 Skill updatenpx skills add larksuite/cli#feat/auth_response_opt -y -g |
Summary
Reduce misleading/misinterpretable auth logs so AI agents don’t treat progress messages as “authorization succeeded”. Also deduplicate and standardize auth scope warning text for cleaner, consistent output.
Changes
token response received).本次未授予 scopesbreakdown line).Authorization confirmed...(avoid “completed” /授权已完成).授权结果异常:uses ASCII:).Test Plan
go test ./cmd/auth)lark-cli auth login(and a flow that triggers missing-scope warning) and confirm stderr messages are neutral and non-duplicativeRelated Issues
Summary by CodeRabbit
Bug Fixes
Style