Add ability to stop an in-progress chat response
- 主要语言
- TypeScript
- 星标
- 683
- 派生
- 79
- 平均合并
- 11 小时 39 分钟
- 30 天内合并 PR
- 2
描述
When a chat request is running, there is currently no way to stop it. If I notice a mistake in my prompt after submitting it, I have to wait for the response to finish before I can correct and resend it.
Add a Stop action while a response is being generated so the user can cancel the current request, update their prompt, and submit it again.
Expected behavior:
While a chat response is in progress, the send button should change to a stop/cancel button. Clicking it should immediately cancel the active request and allow the user to enter and submit a new prompt.
贡献指南
调研方向
Look for the chat component that handles sending prompts and receiving streaming responses. Identify the button that changes state during a request. The stop action should cancel the active fetch or stream, reset the UI, and allow a new prompt. Check for existing API calls and state management for chat requests.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 活跃
- 描述清晰度
- 描述清楚
- 新手友好度
- 75/100