Skip to content

fix: remove PLATFORM_USER chat user ID handling from runtime user ID retrieval#6514

Merged
wxg0103 merged 1 commit into
v2from
pr@v2@fix_remove_platform_user
Jul 27, 2026
Merged

fix: remove PLATFORM_USER chat user ID handling from runtime user ID retrieval#6514
wxg0103 merged 1 commit into
v2from
pr@v2@fix_remove_platform_user

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

fix: remove PLATFORM_USER chat user ID handling from runtime user ID retrieval

Copilot AI review requested due to automatic review settings July 27, 2026 04:22
@shaohuzhang1

Copy link
Copy Markdown
Contributor Author

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@wxg0103
wxg0103 merged commit 64dc708 into v2 Jul 27, 2026
4 of 6 checks passed
@wxg0103
wxg0103 deleted the pr@v2@fix_remove_platform_user branch July 27, 2026 04:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the shared-resource authorization helper used to derive a “runtime user id” for downstream permission checks, removing the special-case mapping for chat_user_type == "PLATFORM_USER".

Changes:

  • Remove PLATFORM_USER + chat_user_id fallback logic from get_runtime_user_id().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 20 to 23
def get_runtime_user_id(user_id=None, chat_user_id=None, chat_user_type=None):
if user_id:
return str(user_id)
if chat_user_type == "PLATFORM_USER" and chat_user_id:
return str(chat_user_id)
return None
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.

3 participants