Repository navigation
Description
English
Problem
A turn that fails before producing any assistant timeline has no visible recovery action.
The turn still contains the user message and a terminal failed state, but ChatTurn mounts the assistant message only when the timeline is non-empty or the turn is currently streaming. As a result, the failed banner and the footer containing Regenerate are both absent.
The fallback journey is also a dead end: editing the unchanged user message is rejected with “Use Regenerate if you only want a new answer,” even though Regenerate is not rendered for this turn shape.
This was observed after a model stream timed out without producing any text, thinking, or tool event.
Expected boundary
Provide one discoverable, actionable retry path for a terminal turn with zero assistant output:
- render the terminal failed presentation and Regenerate action even when the assistant timeline is empty;
- ensure edit-and-resend with unchanged text does not direct the user to a missing control;
- preserve the distinction between Regenerate and a genuinely edited revision.
This issue is limited to Desktop/UI recovery presentation and dispatch. It does not change model deadlines, context compaction, or Runtime Host transport semantics.
Related issues
- fix(runtime): bound a single oversized prior turn before the next model request #2371 owns the oversized single-turn context failure that produced the empty failed turn.
- fix(runtime-host): separate request latency deadlines from connection liveness #2373 and fix(desktop): preserve Session copy idempotency across ambiguous IPC outcomes #2374 own the Runtime Host failures exposed by using edit-and-resend as a workaround.
Acceptance criteria
- A failed turn with no assistant timeline displays its failure state.
- Regenerate is visible and actionable for that turn.
- Submitting an unchanged edit cannot end in an informational toast with no available next action.
- Running turns still do not expose actionable Regenerate or Branch controls.
- Behavior coverage exercises a user message followed only by
runningandfailedturn states.
Environment
- Maka source tree:
main@7af0a7dc - OS: Windows
- Surface: Desktop (development build)
- Runtime owner:
runtime-host
简体中文
问题
当一个 turn 在产生任何 assistant timeline 之前失败时,界面没有可见的恢复操作。
该 turn 仍然包含 user message 和终态 failed state,但 ChatTurn 只有在 timeline 非空或 turn 正在 streaming 时才挂载 assistant message。因此 failed banner 和包含“重新生成”的 footer 都不会渲染。
备用路径同样会进入死胡同:编辑这条 user message 但不修改内容时,界面提示“如需重新回答,请使用重新生成”,然而当前 turn 形态根本没有渲染“重新生成”。
该问题在 model stream 未产生任何 text、thinking 或 tool event 就超时时被观察到。
预期边界
为 assistant 输出为空的终态 failed turn 提供一个可发现且可操作的重试路径:
- 即使 assistant timeline 为空,也渲染终态失败信息和“重新生成”操作;
- 确保未修改内容的“编辑并重发”不会把用户引向不存在的控件;
- 保持“重新生成”和真正修改过内容的 revision 之间的语义区别。
本 issue 仅涉及 Desktop/UI 的恢复呈现与 dispatch,不修改模型 deadline、context compaction 或 Runtime Host transport 语义。
相关问题
- fix(runtime): bound a single oversized prior turn before the next model request #2371 负责产生该空 failed turn 的单-turn context 超限问题。
- fix(runtime-host): separate request latency deadlines from connection liveness #2373 和 fix(desktop): preserve Session copy idempotency across ambiguous IPC outcomes #2374 负责把“编辑并重发”作为绕行路径时暴露出的 Runtime Host 故障。
验收条件
- 没有 assistant timeline 的 failed turn 会显示失败状态。
- 该 turn 的“重新生成”可见且可操作。
- 提交未修改的 edit 不会只显示一个没有后续可执行动作的信息 toast。
- running turn 仍然不能提供可操作的“重新生成”或“分支”。
- 行为测试覆盖一条 user message 后仅有
running和failedturn states 的情况。
环境
- Maka source tree:
main@7af0a7dc - OS:Windows
- Surface:Desktop development build
- Runtime owner:
runtime-host
Activity