Skip to content

[CI] feat(dashboard): Sessions 页默认折叠辅助会话;README 按实现校准并换 Archify 架构图 - #358

Merged
ThreeFish-AI merged 7 commits into
feature/1.x.xfrom
feat-sessions-aux-fold
Dec 5, 2026
Merged

ThreeFish-AI merged 7 commits into
feature/1.x.xfrom
feat-sessions-aux-fold

Conversation

@ThreeFish-AI

@ThreeFish-AI ThreeFish-AI commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

变更摘要

Sessions 页默认折叠辅助会话(v0.6.21)

  • /api/dashboard/sessions 每行新增 auxiliary: bool,按标题家族标签判定([会话命名] [分支命名] [记忆压缩] [单命令] [注入任务]),标签表与标题提取共用 session_title._INJECTED_PROMPT_FAMILIES,不另抄一份。
  • Sessions 页默认隐藏辅助会话,分页栏提示「已隐藏 N 个辅助会话」;新增「显示辅助会话」勾选,打开后辅助行标题前带灰色「辅助」tag。

README 校准与架构图置换

  • 架构全景图由 mermaid 换为 Archify 图,A 档四件套入库 docs/diagrams/routing-n-tier/,中英 README 嵌同一份 SVG。
  • 中英 README 按实现校准:安装改 uv tool install coding-proxy;auth login -p copilot 修正为 -p github / -p google;CLI 表补 session 命令与 config / usage / reset 参数;Config 分区、Features 描述、文档地图(guide / arch / ops / design / diagrams)与看板截图同步;中文版补齐 PI 接入节。

动机

  • 辅助会话:harness 的注入式调用(Orca 会话命名走 PI、分支命名走 Claude Code 等)各自成会话,标题又和用户主对话同源,排查 cbeae736-… 时看到的是 1 次请求、2/16 token 的「分支命名」调用,而真正的 PI 主对话在另一个 session key 下(41 次 glm-5.4 调用)。归因本身没有错,是辅助会话和主对话混排造成的认知错位。
  • README:auth login -p copilot 照做会报错;session 命令、Config 的 pricing / tiers / antigravity_gateway 分区、docs/guide 与 docs/arch 共 14 篇文档此前均未出现在 README。

验证

  • uv run pytest tests:2501 passed;新增 tests/test_session_title_auxiliary.py,test_dashboard_sessions_render.py 补开关 wiring、API 标记与 Node 渲染两态断言。Ruff check / format 通过。
  • 实机:用 usage.db 副本起服务核对,Sessions 页默认「175 sessions · 已隐藏 25 个辅助会话」,勾选后 200 行且辅助行带 tag。
  • Archify:finalize --quality showcase 四门 pass,visual-check 回执入库,1440×900 dark / 2048×1320 light 截图人工核对。
  • README:两份文件内所有相对链接与图片路径脚本检查 0 失效;CLI 参数逐条对照 --help 实际输出。

风险点

  • auxiliary 是增量字段,老前端忽略即可;无 DB 迁移。
  • limit=200 在 SQL 层生效、过滤在其后:24h 内辅助会话挤满 200 名额时真实会话会被挤出,当前辅助占比 12.5%,暂不处理。
  • 判定依赖标题前缀,标题为空的辅助会话不会被折叠(现状下注入式模板必然成标题,影响面可忽略)。

…r/);

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
…I 参数,Config 分区、文档地图与看板截图同步;

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
@ThreeFish-AI ThreeFish-AI changed the title [CI] feat(dashboard): Sessions 页默认折叠辅助会话,API 增 auxiliary 标记 [CI] feat(dashboard): Sessions 页默认折叠辅助会话;README 按实现校准并换 Archify 架构图 Dec 5, 2026
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

This branch was successfully deployed

2 active deployments
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.

1 participant