Repository navigation
fix(dashboard): 显示本次启动未能恢复的会话 - #4131
Open
Han-wangyu wants to merge 1 commit into
Open
Han-wangyu wants to merge 1 commit into
Han-wangyu wants to merge 1 commit into
Conversation
Han-wangyu
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 30, 2026 18:44
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.
用户可见的变化
daemon 启动时,某个 active 会话可能在注册前恢复失败。例如,旧的排队记录仍带有未结算的 Codex App 派发。重新打开 Dashboard 已能读取磁盘上的这条记录,但它看起来仍是普通待办或休眠会话,已经打开的页面也收不到这次失败的提示。
现在,表格和默认看板会显示「本次启动未能恢复此会话」。同一标记随本机 IPC 列表、详情和 SSE 重连快照提供。重新恢复成功、注册到运行时或会话关闭后,提示会消失。
处理范围
失败信息是本次 daemon 启动的只读诊断。恢复抛错时先确认这个会话 ID 没有运行时 owner,再读取当前 Bot 的持久行验证它仍 active。诊断只驻留内存,没有写入会预留路由的 restoreQuarantinedAt,也没有触碰派发台账。相同话题的另一个健康会话仍可正常注册。原有待办池与手动放置的看板列继续生效。
#2874 还提到同锚点新建第二个会话的路由问题,该项独立保留。
验证
bun scripts/fenced-run.ts -- bun run test test/restore-zombie-close.test.ts test/session-task-status.test.ts,124 项通过。bun scripts/fenced-run.ts -- bun run test test/dashboard-ipc.test.ts -t 'same startup failure',1 项通过。bun scripts/fenced-run.ts -- bun run test:e2e test/dashboard-sessions-page-layout.e2e.ts,Chromium 10 项通过。bun run build通过。截图使用隔离测试数据和真实 Dashboard 组件。
Refs #2874