feat: add assistant mode, SSE streaming, and OpenCode server integration (#214)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-02 21:51:37 -04:00
1 parent 3cc24288a6
commit c3d6549f01
133 files changed
+7284 -6293

No files matched your search

+7 -4
View File
@@ -57,7 +57,7 @@ export function useCommandHandler({
onShowModelsDialog?.()
break
case 'themes':
case 'themes': {
await client.sendCommand(sessionID, {
command: command.name,
arguments: args,
@@ -65,6 +65,7 @@ export function useCommandHandler({
model: modelString || undefined
})
break
}
case 'help':
onShowHelpDialog?.()
@@ -130,7 +131,7 @@ export function useCommandHandler({
case 'undo':
case 'redo':
case 'editor':
case 'init':
case 'init': {
await client.sendCommand(sessionID, {
command: command.name,
arguments: args,
@@ -138,14 +139,16 @@ export function useCommandHandler({
model: modelString || undefined
})
break
}
default:
default: {
await client.sendCommand(sessionID, {
command: command.name,
arguments: args,
agent: currentAgent,
model: modelString || undefined
})
}
}
} catch (error) {
showToast.error(`Command failed: ${error instanceof Error ? error.message : 'Unknown error'}`)
@@ -159,4 +162,4 @@ export function useCommandHandler({
executeCommand,
loading
}
}
}