improvement(mothership): show continue options on abort#3746
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR aims to show "Continue" options after a user-aborted stream, consolidating the abort-handling logic into a new Key changes:
Critical issue: Secondary issue: Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant stopGeneration
participant resolveInterruptedToolCalls
participant finalize
participant persistPartialResponse
participant Messages
User->>stopGeneration: clicks Stop button
stopGeneration->>resolveInterruptedToolCalls: call (marks executing→cancelled,<br/>adds stopped+continue blocks)
resolveInterruptedToolCalls->>Messages: setMessages(...)
stopGeneration->>persistPartialResponse: await (saves partial content + blocks to backend)
persistPartialResponse-->>Messages: (backend persisted with continue options)
Note over finalize: Also called on normal stream end
finalize->>resolveInterruptedToolCalls: call (UNCONDITIONAL ⚠️)
resolveInterruptedToolCalls->>Messages: appends stopped+continue to last assistant msg<br/>even on successful completion
Reviews (1): Last reviewed commit: "Fix lint" | Re-trigger Greptile |
This reverts commit b9926df.
Summary
Show continue options on abort
Type of Change
Testing
Manual
Checklist