Skip to content

fix(skills): replace non-existent scope im:chat:readonly with im:chat:read#51

Merged
riba2534 merged 1 commit intoriba2534:mainfrom
tzy0608:fix/im-chat-readonly-scope
Mar 25, 2026
Merged

fix(skills): replace non-existent scope im:chat:readonly with im:chat:read#51
riba2534 merged 1 commit intoriba2534:mainfrom
tzy0608:fix/im-chat-readonly-scope

Conversation

@tzy0608
Copy link
Copy Markdown

@tzy0608 tzy0608 commented Mar 25, 2026

Summary

  • The OAuth scope im:chat:readonly referenced in skill files does not exist in the Feishu developer console, causing error 20027 ("当前应用权限不足") during Device Flow authorization
  • The correct scope name is im:chat:read, which is available and provides the equivalent group chat read access
  • Fixed all 14 occurrences across 3 skill files: feishu-cli-auth, feishu-cli-chat, feishu-cli-search
  • Also deduplicated scope lists where im:chat:read im:chat:readonly became im:chat:read (removing the redundant duplicate)

Reproduction

  1. Run feishu-cli auth login --method device --scopes "... im:chat:readonly ..."
  2. Open the authorization URL in browser
  3. Error: 错误码: 20027 — 获取群组信息: im:chat:readonly not found

Fix

Replace all im:chat:readonly with im:chat:read in skill markdown files.

Test plan

  • feishu-cli auth login --method device with corrected scopes — no 20027 error
  • feishu-cli auth status -o json — scope list includes im:chat:read
  • Verified im:chat:readonly does not exist in Feishu developer console (user_access_token search returns 0 results)
  • No remaining im:chat:readonly references in skill files after fix

🤖 Generated with Claude Code

…hat:read`

The scope `im:chat:readonly` does not exist in the Feishu developer console,
causing error 20027 during OAuth Device Flow authorization. The correct scope
name is `im:chat:read`, which is available and provides the same group chat
read access.

Affected files:
- skills/feishu-cli-auth/SKILL.md (scope lists and reference table)
- skills/feishu-cli-chat/SKILL.md (scope requirement notes and table)
- skills/feishu-cli-search/SKILL.md (scope list in login command)
@riba2534 riba2534 merged commit 71c8ff6 into riba2534:main Mar 25, 2026
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