refactor(prompt-callers): migrate shared and cli dispatch

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-17 17:09:04 +09:00
parent 989ab7171d
commit 1bbe065c60
4 changed files with 16 additions and 11 deletions
+3 -2
View File
@@ -3,7 +3,7 @@ import {
promptSyncWithModelSuggestionRetry,
promptWithModelSuggestionRetry,
} from "./model-suggestion-retry"
import { promptAsyncAfterSessionIdle } from "./prompt-async-gate"
import { dispatchInternalPrompt } from "./prompt-async-gate"
type OpencodeClient = PluginInput["client"]
@@ -59,7 +59,8 @@ export function promptAsyncInDirectory(
return Promise.reject(new Error("session id is required for routed promptAsync"))
}
return promptAsyncAfterSessionIdle({
return dispatchInternalPrompt({
mode: "async",
client,
sessionID,
input: routedArgs,