Skip to content

fix(connector): show open_id hint for non-admin permission commands#308

Open
xu75 wants to merge 1 commit intozts212653:mainfrom
xu75:fix/connector-admin-hint
Open

fix(connector): show open_id hint for non-admin permission commands#308
xu75 wants to merge 1 commit intozts212653:mainfrom
xu75:fix/connector-admin-hint

Conversation

@xu75
Copy link
Copy Markdown
Contributor

@xu75 xu75 commented Mar 30, 2026

Summary

  • When a non-admin user runs allow-group or deny-group commands, the error message now shows their open_id so they know which ID to add in Hub permission management.
  • If the sender cannot be identified, a clear message tells them to use the command from a group chat.

Motivation

Previously the error was a dead-end "此命令仅管理员可用" with no actionable next step. Users had to separately look up their open_id. This makes the flow self-service.

Changes

  • ConnectorCommandLayer.ts: Enhanced error response in handleAllowGroup and handleDenyGroup to include sender hint.

Test plan

  • Verified non-admin user sees their open_id in the error message
  • Verified unknown sender gets appropriate fallback message

🐾 [宪宪/Opus-46]
🤖 Generated with Claude Code

…ands

Makes the admin-only error message actionable by displaying the sender's
open_id so they know which ID to add in Hub permission management.

[宪宪/Opus-46🐾]
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xu75 xu75 requested a review from zts212653 as a code owner March 30, 2026 13:22
xu75 added a commit to xu75/clowder-ai that referenced this pull request Mar 30, 2026
Records which commits are local customizations (feishu QR bind)
vs PR'd upstream (admin hint zts212653#308), with sync rebase checklist.

[宪宪/Opus-46🐾]
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xu75
Copy link
Copy Markdown
Contributor Author

xu75 commented Apr 2, 2026

Friendly ping — this PR has been open since Mar 30 with no review activity. Could a maintainer take a look when available? The change is small (error message enhancement in ConnectorCommandLayer). Thanks! 🐾

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