mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-31 17:35:30 +08:00
refactor: update session status only if not stopped by user after stream completion
This commit is contained in:
@@ -125,6 +125,7 @@ export abstract class BaseSdkProvider extends AbstractProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// after stream completion, only update status if not already stopped by user
|
||||||
if (session.status === 'running') {
|
if (session.status === 'running') {
|
||||||
this.updateSessionStatus(session, 'completed');
|
this.updateSessionStatus(session, 'completed');
|
||||||
this.appendEvent(session, {
|
this.appendEvent(session, {
|
||||||
|
|||||||
Reference in New Issue
Block a user