Skip to content

刷新或重新进入对话页面可以终止运行中的应用对话 #250

@reeeborn33

Description

@reeeborn33

功能摘要 / Feature Summary

刷新或重新进入对话页面可以终止运行中的应用对话

功能类型 / Feature Type

全新功能 / New Feature

优先级 / Priority

高 - 非常需要这个功能 / High - Really need this feature

问题描述 / Problem Description

在退出或刷新应用对话页面后,用户无法感知当前对话没有结束,只能观察到应用没有回复的现象。此时,没有结束的应用对话结果不会展示在聊天对话中,并且无法终止。

建议的解决方案 / Proposed Solution

实现上述功能可以考虑以下几步

  1. 需要在应用没有结束的时候就对其流式输出进行持久化
  2. 需要实现在重新进入应用对话页面时,可以根据当前会话最新实例状态判断应用是否还在运行中,并且显示当前已经生成的内容
  3. 对于运行中的应用,需要调用继续生成聊天结果的sse接口,让前端可以继续流式输出应用回复内容,并且可以终止对话

替代方案 / Alternative Solutions

No response

确认事项 / Confirmations

  • 我已经搜索了现有的 issues 和讨论,确认这不是重复建议
    I have searched existing issues and discussions, confirming this is not a duplicate suggestion

  • 这个功能符合项目的目标和范围
    This feature aligns with the project's goals and scope

  • 我理解这个功能可能需要时间来实现
    I understand this feature may take time to implement

  • 我愿意协助实现这个功能 (可选)
    I'm willing to help implement this feature (optional)

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions