fix(web): preserve queue on stop

This commit is contained in:
kingwl
2026-07-31 20:51:05 +08:00
parent e1c6fc3db4
commit 32a0e871b7
20 changed files with 241 additions and 50 deletions
@@ -38,7 +38,7 @@ export interface IConversation {
*/
updateQueue(itemId: QueueItemId, action: QueueAction): Promise<void>
/**
* Cancel the scoped session's in-flight turn.
* Cancel the scoped session's in-flight turn while preserving its pending Queue.
* @returns completion; failures reject as in send.
*/
cancel(): Promise<void>
@@ -86,7 +86,7 @@ export class ConversationService extends Service implements IConversation {
}
}
/** Cancel the scoped session's in-flight turn (failures land in promptError and reject, as in send). */
/** Cancel the scoped session's in-flight turn while preserving Queue (failures land in promptError and reject, as in send). */
async cancel(): Promise<void> {
const session = this.scopedSession('cancel')
const result = await session.cancel()