mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-22 09:58:06 +00:00
问题:agent 长任务(159s)超过 15s ack 超时后,旧代码 return 导致 finally 清空 loading 并重置按钮,用户以为失败;SSE 回复虽到但 用户可能已离开/刷新页面。 修复(完全对齐 GUI renderer 的 sendChat 模式): - 超时后 r=null 不 return,流程继续 - finally 总是清 loading + 恢复按钮(loading 只是 UI 提示) - toast 明确提示「请求超时(可能已发送,请稍候勿重复发送)」 - r 有值则直接填充最终回复;r=null 则靠 SSE agent_output 流式渲染