@@ -1478,6 +1478,9 @@ export class InteractiveMode {
|
||||
const uiContext = this.createExtensionUIContext();
|
||||
await this.session.bindExtensions({
|
||||
uiContext,
|
||||
abortHandler: () => {
|
||||
this.restoreQueuedMessagesToEditor({ abort: true });
|
||||
},
|
||||
commandContextActions: {
|
||||
waitForIdle: () => this.session.agent.waitForIdle(),
|
||||
newSession: async (options) => {
|
||||
@@ -1627,7 +1630,9 @@ export class InteractiveMode {
|
||||
model: this.session.model,
|
||||
isIdle: () => !this.session.isStreaming,
|
||||
signal: this.session.agent.signal,
|
||||
abort: () => this.session.abort(),
|
||||
abort: () => {
|
||||
this.restoreQueuedMessagesToEditor({ abort: true });
|
||||
},
|
||||
hasPendingMessages: () => this.session.pendingMessageCount > 0,
|
||||
shutdown: () => {
|
||||
this.shutdownRequested = true;
|
||||
|
||||
Reference in New Issue
Block a user