Skip to content

Add OpenRouter authentication support and enhance configuration manag… - #47

Closed
kingkillery wants to merge 1 commit into
QwenLM:mainfrom
kingkillery:orouter-compat-edit
Closed

kingkillery wants to merge 1 commit into
QwenLM:mainfrom
kingkillery:orouter-compat-edit

Conversation

@kingkillery

Copy link
Copy Markdown

…ement

  • Introduced OpenRouter as a new authentication method in the CLI.
  • Updated the AuthDialog component to handle OpenRouter API key input.
  • Enhanced the content generator to support OpenRouter models.
  • Updated configuration parsing to prioritize OpenRouter settings.
  • Added OpenRouterContentGenerator class for handling OpenRouter API interactions.
  • Expanded error handling for missing API keys and models in the authentication flow.
  • Updated documentation to reflect new project structure and authentication options.

TLDR

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run ❓ ❓ ❓
npx ❓ ❓ ❓
Docker ❓ ❓ ❓
Podman ❓ - -
Seatbelt ❓ - -

Linked issues / bugs

…ement

- Introduced OpenRouter as a new authentication method in the CLI.
- Updated the AuthDialog component to handle OpenRouter API key input.
- Enhanced the content generator to support OpenRouter models.
- Updated configuration parsing to prioritize OpenRouter settings.
- Added OpenRouterContentGenerator class for handling OpenRouter API interactions.
- Expanded error handling for missing API keys and models in the authentication flow.
- Updated documentation to reflect new project structure and authentication options.
@kingkillery
kingkillery deleted the orouter-compat-edit branch July 23, 2025 05:56
ranpox pushed a commit that referenced this pull request Aug 1, 2025
* Bump the character limit to web fetch.

* Piped Input Hook. First step in bringing in STDIN piping.

* Fix linting errors.

* Remove incorrect comment.
xaelistic pushed a commit to xaelistic/qwen-code that referenced this pull request Jun 7, 2026
* Bump the character limit to web fetch.

* Piped Input Hook. First step in bringing in STDIN piping.

* Fix linting errors.

* Remove incorrect comment.
Eric-GoodBoy-Tech added a commit to Eric-GoodBoy-Tech/qwen-code that referenced this pull request Jun 28, 2026
Round 2 (4 items):
- QwenLM#35: add [atMention=true] prefix to handleGroup/handleC2C
- QwenLM#36: sanitize senderName (strip [ ]) in all handlers
- QwenLM#37: remove redundant [可选回复] prefix
- QwenLM#38: add C2C scoping guard to system instructions

Round 3 (9 items):
- QwenLM#39: add GROUP_MESSAGE intent (bit 26) to types + IDENTIFY
- QwenLM#40: fix msgSeqMap.delete key (msgId not groupId)
- QwenLM#41: truncate token error body to prevent appSecret leak
- QwenLM#42: add group_openid null guard to toggle handlers
- QwenLM#44: remove dead hasMarkdownSyntax/hasLinkSyntax
- QwenLM#45: validate gateway URL protocol (wss:/ws:)
- QwenLM#46: add error logging to restore* catch blocks
- QwenLM#47: add disposed check in connect() retry loop
- QwenLM#43: already fixed in round 1 (isDuplicate at top)
Eric-GoodBoy-Tech added a commit to Eric-GoodBoy-Tech/qwen-code that referenced this pull request Jun 29, 2026
Round 2 (4 items):
- QwenLM#35: add [atMention=true] prefix to handleGroup/handleC2C
- QwenLM#36: sanitize senderName (strip [ ]) in all handlers
- QwenLM#37: remove redundant [可选回复] prefix
- QwenLM#38: add C2C scoping guard to system instructions

Round 3 (9 items):
- QwenLM#39: add GROUP_MESSAGE intent (bit 26) to types + IDENTIFY
- QwenLM#40: fix msgSeqMap.delete key (msgId not groupId)
- QwenLM#41: truncate token error body to prevent appSecret leak
- QwenLM#42: add group_openid null guard to toggle handlers
- QwenLM#44: remove dead hasMarkdownSyntax/hasLinkSyntax
- QwenLM#45: validate gateway URL protocol (wss:/ws:)
- QwenLM#46: add error logging to restore* catch blocks
- QwenLM#47: add disposed check in connect() retry loop
- QwenLM#43: already fixed in round 1 (isDuplicate at top)
Eric-GoodBoy-Tech added a commit to Eric-GoodBoy-Tech/qwen-code that referenced this pull request Jun 29, 2026
Round 2 (4 items):
- QwenLM#35: add [atMention=true] prefix to handleGroup/handleC2C
- QwenLM#36: sanitize senderName (strip [ ]) in all handlers
- QwenLM#37: remove redundant [可选回复] prefix
- QwenLM#38: add C2C scoping guard to system instructions

Round 3 (9 items):
- QwenLM#39: add GROUP_MESSAGE intent (bit 26) to types + IDENTIFY
- QwenLM#40: fix msgSeqMap.delete key (msgId not groupId)
- QwenLM#41: truncate token error body to prevent appSecret leak
- QwenLM#42: add group_openid null guard to toggle handlers
- QwenLM#44: remove dead hasMarkdownSyntax/hasLinkSyntax
- QwenLM#45: validate gateway URL protocol (wss:/ws:)
- QwenLM#46: add error logging to restore* catch blocks
- QwenLM#47: add disposed check in connect() retry loop
- QwenLM#43: already fixed in round 1 (isDuplicate at top)
Eric-GoodBoy-Tech added a commit to Eric-GoodBoy-Tech/qwen-code that referenced this pull request Jun 30, 2026
Round 2 (4 items):
- QwenLM#35: add [atMention=true] prefix to handleGroup/handleC2C
- QwenLM#36: sanitize senderName (strip [ ]) in all handlers
- QwenLM#37: remove redundant [可选回复] prefix
- QwenLM#38: add C2C scoping guard to system instructions

Round 3 (9 items):
- QwenLM#39: add GROUP_MESSAGE intent (bit 26) to types + IDENTIFY
- QwenLM#40: fix msgSeqMap.delete key (msgId not groupId)
- QwenLM#41: truncate token error body to prevent appSecret leak
- QwenLM#42: add group_openid null guard to toggle handlers
- QwenLM#44: remove dead hasMarkdownSyntax/hasLinkSyntax
- QwenLM#45: validate gateway URL protocol (wss:/ws:)
- QwenLM#46: add error logging to restore* catch blocks
- QwenLM#47: add disposed check in connect() retry loop
- QwenLM#43: already fixed in round 1 (isDuplicate at top)
Eric-GoodBoy-Tech added a commit to Eric-GoodBoy-Tech/qwen-code that referenced this pull request Jun 30, 2026
Round 2 (4 items):
- QwenLM#35: add [atMention=true] prefix to handleGroup/handleC2C
- QwenLM#36: sanitize senderName (strip [ ]) in all handlers
- QwenLM#37: remove redundant [可选回复] prefix
- QwenLM#38: add C2C scoping guard to system instructions

Round 3 (9 items):
- QwenLM#39: add GROUP_MESSAGE intent (bit 26) to types + IDENTIFY
- QwenLM#40: fix msgSeqMap.delete key (msgId not groupId)
- QwenLM#41: truncate token error body to prevent appSecret leak
- QwenLM#42: add group_openid null guard to toggle handlers
- QwenLM#44: remove dead hasMarkdownSyntax/hasLinkSyntax
- QwenLM#45: validate gateway URL protocol (wss:/ws:)
- QwenLM#46: add error logging to restore* catch blocks
- QwenLM#47: add disposed check in connect() retry loop
- QwenLM#43: already fixed in round 1 (isDuplicate at top)
gaosen1 added a commit to Meeting-For-You/qwen-code that referenced this pull request Sep 12, 2026
…ion banner

Codex 审查(frontend-web PR QwenLM#47 review comment 3996026146)指出:Web Shell
内置的"看起来像切换话题,要不要新建会话"建议横幅点击后直接调用
createNewSession,不经过 onSlashCommand,宿主即使拦截了 /new /clear /reset
也拦不住这条路径。对"一个 runtime 固定绑定一个长期任务"的宿主(比如医联
Agent 的会议工作区)来说,这个横幅点出来的"新会话"实际上还是在同一个
workspace/meetingId 下开一条新聊天记录,不是真正独立的任务。

新增 WebShellProps.newSessionSuggestionEnabled:与 fileUploadEnabled 同样的
"配合能力位、不是取代能力位"语义——false 时无论 daemon 是否声明
session_generation 能力都强制关闭这个横幅,true/省略时仍然要求能力位满足。

新增回归测试验证:先反向确认了不加这个 prop、同样的触发条件下横幅确实会
出现,再验证传 newSessionSuggestionEnabled: false 后横幅不再出现。
Co-Authored-By: Claude Sonnet 5 <[email protected]>
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