From e284b72fd90e9ab93765b1c2b95b445b3ed212bd Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 27 Apr 2026 20:35:40 -0400 Subject: [PATCH] fix(orchestration): submit push-on-idle messages with split Enter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deliverPendingMessages was writing banner text to the PTY without submitting it — the message sat in the agent's input field unprocessed. Add the same 500ms delayed Enter used by dispatch --inject so the agent actually receives and acts on delivered messages. Co-authored-by: Orca --- src/main/runtime/orca-runtime.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/runtime/orca-runtime.ts b/src/main/runtime/orca-runtime.ts index f3872ddfb..b7f3fc989 100644 --- a/src/main/runtime/orca-runtime.ts +++ b/src/main/runtime/orca-runtime.ts @@ -1925,6 +1925,12 @@ export class OrcaRuntimeService { const wrote = this.ptyController?.write(leaf.ptyId, payload) ?? false if (wrote) { this._orchestrationDb.markAsRead(unread.map((m) => m.id)) + // Why: Claude Code treats large single PTY writes as paste events and + // swallows a \r included in the same write. Send Enter separately after + // a delay so the agent processes the pasted message first. + setTimeout(() => { + this.ptyController?.write(leaf.ptyId, '\r') + }, 500) } }