fix(agent): preserve choice receipt timestamps

Refs #7314
This commit is contained in:
jxxghp
2026-11-06 22:23:37 +08:00
parent 0e93eda0e8
commit db07e6ff0f
8 changed files with 237 additions and 33 deletions

View File

@@ -825,7 +825,7 @@ flowchart LR
| 指标 | 当前值 |
|---|---:|
| Python 模块 | 1150 |
| 内部导入边 | 9,963 |
| 内部导入边 | 9,965 |
| 非平凡 SCC | 1(29 个模块的 TMDB vendor 精确 containment) |
| Application / Chain 具体 Adapter 直连 | 0 / 0 |
| Direct egress | 51(精确 policy 准入,Application / Chain 均为 0) |

View File

@@ -74,6 +74,8 @@
后端按用户、会话和选择 ID 领取一次执行;入队前明确拒绝可重试,执行结果未知时不重放。
`echo_user=false` 仅隐藏用户回显,选择结果仍保存;完整快照替换保留隐藏选择收据,
即使旧快照不含卡片,也不能让后续快照把已选卡片改回 `pending`。普通消息仍按完整快照替换。
选择回执合并时保留原始 `createdAt` 毫秒时间戳;旧历史缺少该字段时,读取和保存边界
使用相邻消息时间补齐,不丢弃选择内容。整份快照都没有时间时以 `0` 表示未知。
会话 `is_processing` 只表示实际执行或排队,空闲等待下一条消息的 worker 不计入。
工具事件沿用 `tool_id` 与 `assistant_message_id`,跨 steering 后仍更新原助手段。

View File

@@ -1342,7 +1342,7 @@ driven workflow registration.
| `app/application/server/report.py` | Server reporting use cases over injected local readers and transport callbacks |
| `app/application/server/share.py` | Server sharing use cases over injected repositories and transport callbacks |
| `app/domain/plugin.py` | Pure local-source, generation-compatibility and Release-install-plan rules |
| `app/domain/chat.py` | 会话展示快照的纯选择状态合并规则;保留首次选择,不读取交互管理器或持久化服务 |
| `app/domain/chat.py` | 会话展示快照的纯时间戳兼容与选择状态合并规则;保留首次选择及回执时间,不读取交互管理器或持久化服务 |
| `app/adapters/external/plugin/client.py` | `PluginMarketTransport`, the unique market transport, index/Release and local-candidate owner |
| `app/adapters/system/plugin/package.py` | `PluginPackageManager`, the unique install, checkpoint, backup, restore and physical-delete owner |
| `app/adapters/system/plugin/dependency.py` | `PluginDependencyInstaller`, enabled-source dependency inspection and constrained per-plugin recovery owner; `async_install` has two completion-owned worker boundaries for request preparation and fallback planning, while package subprocess cancellation remains with `PluginRuntimeHealth` |