Repository navigation
Conversation
关联 agegr#1439。复用批量统计返回当前分支记录的模型与思考深度,保持三行布局并补充分支缓存及窄屏回归。
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.
关联议题
Fixes #1439
改动
保持 Agents 列表现有三行,在子代理第二行显示
代理类型 · 实际模型 · 思考深度:/api/sessions/stats批量请求返回当前分支记录的模型和思考深度,复用现有getSessionSettings(),不根据 profile 默认值推测,也不逐行请求详情。off时隐藏;长模型名截断,优先保留代理类型和思考深度。完整provider/modelId、深度和相对更新时间放在悬浮提示中。本分支基于
agegr/pi-web/main,只含这一项功能,不包含 fork 的其他改动。验证
node_modules/.bin/tsc --noEmit、npm run lint、改动文件 LSP 检查及git diff --check通过。node e2e/agent-switcher-model.mjs:1280px、390px、320px 英文及 390px 中文四组浏览器回归通过。off,以及不新增 entry 的活动分支切换。测试环境为 Linux root;直接
npm test时,现有的只读目录测试会被 root 的 DAC 绕过能力影响。仅对测试子进程移除该能力后完整重跑通过:setpriv --bounding-set=-dac_override,-dac_read_search npm test。没有修改测试、增加 skip 或放宽权限。