Add extension mode context
This commit is contained in:
@@ -1508,6 +1508,7 @@ export class InteractiveMode {
|
||||
const uiContext = this.createExtensionUIContext();
|
||||
await this.session.bindExtensions({
|
||||
uiContext,
|
||||
mode: "tui",
|
||||
abortHandler: () => {
|
||||
this.restoreQueuedMessagesToEditor({ abort: true });
|
||||
},
|
||||
@@ -1654,6 +1655,7 @@ export class InteractiveMode {
|
||||
// Create a context for shortcut handlers
|
||||
const createContext = (): ExtensionContext => ({
|
||||
ui: this.createExtensionUIContext(),
|
||||
mode: "tui",
|
||||
hasUI: true,
|
||||
cwd: this.sessionManager.getCwd(),
|
||||
sessionManager: this.sessionManager,
|
||||
|
||||
Reference in New Issue
Block a user