Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(aui): update slash command source to use direct property access

Steven Enamakel06f31d3d17e5
diff --git a/app/src/features/conversations/aui/useSlashCommandSource.ts b/app/src/features/conversations/aui/useSlashCommandSource.ts
index 2de5052637..ae49f5d84e 100644
--- a/app/src/features/conversations/aui/useSlashCommandSource.ts
+++ b/app/src/features/conversations/aui/useSlashCommandSource.ts
@@ -183,7 +183,7 @@ export function useSlashCommandSource(threadId: string | null) {
return;
case 'stop':
try {
- aui.thread().cancelRun();
+ aui.thread.cancelRun();
} catch (error) {
log('cancel failed: %o', error);
}
@@ -197,8 +197,8 @@ export function useSlashCommandSource(threadId: string | null) {
return { id, description: t(key, fallback), icon: id, execute: () => runBuiltin(id) };
});
const insert = (text: string) => {
- const current = aui.composer().getState().text;
- aui.composer().setText(`${text}${current}`);
+ const current = aui.composer.getState().text;
+ aui.composer.setText(`${text}${current}`);
};
return mergeSlashCommands({ builtins, core, registry: registryCommands, insert });
}, [aui, core, registryCommands, setMode, t]);