Repository navigation
fix(qoder): 恢复 token 登录账号的上下文窗口切换能力 - #506
Merged
caigee-cmd merged 2 commits intoNov 13, 2026
Merged
Conversation
- display.go 新增 qoderContextConfigWindows,解析 PAT 网关 /model/list 中嵌套的 context_config 对象(key 为窗口标签,value 含 token_count 和可选 is_default) - 默认窗口优先取 is_default 标记项,未标记时回退到最小档 - 最大窗口取所有可选项最大值 - 当 catalog 为空时(仍在加载),不覆盖已存的窗口值,避免误删用户选择 - direct.go / plaintext.mjs 在聊天请求中同时发送 parameters.contextWindow 与原有的 context_length,与官方客户端行为对齐 - 新增单元测试覆盖 context_config 解析、toggle 行为保护及参数转发
mcxinyu
force-pushed
the
m1/fix-qoder-cn-edit-context-with-token
branch
from
November 13, 2026 08:23
dfd5045 to
13401cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
go test ./...go vet ./...cd worker && npm testcd frontend && npm run build && npm run lintchangelog/unreleased/<slug>.md, or this PR has no user-facing change