Skip to content

Feat: 新增停止 agent 回應的按鈕 #36

Description

@MrOrz

問題

訊息送出後無法中止 agent 的回應,只能等它說完,無法像 Gemini 一樣手動停止再重送指令。

現況

src/hooks/useChat.ts 已有 stopGeneration()(呼叫 abortControllers.get(sessionId)?.abort()),但 UI 上沒有對應的按鈕。

修法方向

修改 src/components/ChatInput.tsx,接收 isStreamingonStop prop:

  • isStreaming === true 時,將右下角的 send button 改為 stop button
  • 點擊 stop button 時呼叫 stopGeneration()

來源

20260428 會議記錄(點 2,Phase 1 blocker)

Metadata

Metadata

Assignees

Labels

julesInclude this to trigger Jules

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions