feat: browse subagent sessions nested under their parent

Sessions with a parentID were filtered out of the sidebar, so a subagent's
conversation was unreachable. They now render indented under the session that
started them (robot marker, "子代理 ·" subtitle), the parent shows its worker
count, and tapping one opens its full chat. Opening a parent also fetches its
children with parentID=<id>, so older workers missing from the loaded page
appear.

A subagent's app bar gets a back arrow to its parent session.

Builds now produce a universal APK plus per-ABI arm64/armv7/x86_64 splits; the
packaging preference is kept in project memory.

0.4.9 (409).
This commit is contained in:
blumia committed 2026-11-23 20:35:21 +08:00
1 parent 79221e57d7
commit cebf09048e
9 files changed
+170 -19

No files matched your search

+12
View File
@@ -5,6 +5,18 @@
---
## 0.4.9 浏览子代理会话(分支 `flutter`)
| 项 | 结果 |
| --- | --- |
| 侧栏嵌套 | 子代理会话(`parentID` 指向父会话)不再被过滤掉:父行下面缩进显示一个子代理行(robot 图标,副标题以「子代理 ·」开头),父行的副标题显示「N 个子代理」;父会话在置顶区也带出它的子代理。子代理行可以点开查看完整会话内容,⋮ 菜单与普通会话一致 |
| 按需加载 | 打开父会话时并行请求 `GET /api/session?parentID=<id>`(每个父会话一次),把不在当前分页里的旧子代理补进列表;断开连接时清空缓存 |
| 父会话返回 | 子代理会话的 AppBar 左侧改为返回箭头(tooltip「返回父会话」),标题前有 robot 标记;点击回到父会话。侧栏点父行也能回去 |
| 测试 | `test/sidebar_rows_test.dart` 新增:父子会话同时显示、缩进/robot 图标、「1 个子代理」副标题、点击子行打开该会话;46 项全过 |
| 版本 | **0.4.9(code 409)** |
---
## 0.4.8 项目图标与聊天图标(分支 `flutter`)
| 项 | 结果 |