mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
perf(runtime): preserve ordinary prompt scheduling
This commit is contained in:
@@ -52,7 +52,9 @@ export class OrcaRuntimeWithWriteTerminalAgentPrompt extends OrcaRuntimeWithReso
|
||||
if (!this.ptyController?.write(ptyId, pastePayload)) {
|
||||
throw new Error('terminal_not_writable')
|
||||
}
|
||||
await options.afterWrite?.(ptyId)
|
||||
if (options.afterWrite) {
|
||||
await options.afterWrite(ptyId)
|
||||
}
|
||||
} catch (error) {
|
||||
renderGate?.dispose()
|
||||
throw error
|
||||
@@ -90,7 +92,9 @@ export class OrcaRuntimeWithWriteTerminalAgentPrompt extends OrcaRuntimeWithReso
|
||||
if (!this.ptyController?.write(ptyId, AGENT_PROMPT_SUBMIT)) {
|
||||
throw new Error(options.suffixFailureError ?? 'terminal_not_writable')
|
||||
}
|
||||
await options.afterWrite?.(ptyId)
|
||||
if (options.afterWrite) {
|
||||
await options.afterWrite(ptyId)
|
||||
}
|
||||
await verifyAgentPromptSubmission({
|
||||
baseline,
|
||||
readActivity: () => this.getAgentPromptActivity(handle, ptyId, waitTextCache),
|
||||
|
||||
Reference in New Issue
Block a user