feat: tui: Add --prompt option (#3668)

This commit is contained in:
Haris Gušić
2025-11-01 16:18:31 +01:00
committed by GitHub
parent 7de6ea5922
commit 0170577743
4 changed files with 34 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ export function tui(input: {
sessionID?: string
model?: string
agent?: string
prompt?: string
onExit?: () => Promise<void>
}) {
// promise to prevent immediate exit
@@ -65,7 +66,7 @@ export function tui(input: {
<SDKProvider url={input.url}>
<SyncProvider>
<ThemeProvider>
<LocalProvider initialModel={input.model} initialAgent={input.agent}>
<LocalProvider initialModel={input.model} initialAgent={input.agent} initialPrompt={input.prompt}>
<KeybindProvider>
<DialogProvider>
<CommandProvider>