Repository navigation
Conversation
koeria
force-pushed
the
fix/issue-3073
branch
from
November 12, 2026 18:39
7a165e1 to
476c1af
Compare
This branch has not been deployed
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.
问题
折叠分组 id 只存在页面内存里(重注入经
viewState交接),Codex 重启后即丢失;且codexPlusModelPickerObserveList换列表节点时会主动清空state.collapsed。因此网关变更/重启后选择器退回全部展开(#3073)。collapsedGroups.v1这个 localStorage 键只存供应商归属,从未存折叠状态。修复(最小改动,均在
assets/inject/renderer-inject/71-model-picker-groups.js)codexPlus.modelPicker.collapsedList.v1,与归属缓存分开存折叠分组 id 列表。codexPlusModelPickerLoadView时合并持久化的折叠 id;不按当前分组裁剪(重启后目录可能晚于菜单出现,先裁剪会误删仍存在分组的折叠状态)。测试
新增
assets/inject/model-picker-collapse-persist.test.cjs(node:test + vm 抽取分片函数):本地
node --test assets/inject/model-picker-collapse-persist.test.cjs assets/inject/model-picker-groups-scan.test.cjs assets/inject/model-picker-decor.test.cjs:10 pass / 0 fail。Fixes #3073