Skip to content

The agent that grows with you

fix(tui): settle tmux clipboard load on child exit

Andrex Ibiza, MBA6d48fbed1bb3
diff --git a/ui-tui/packages/hermes-ink/src/ink/termio/osc.ts b/ui-tui/packages/hermes-ink/src/ink/termio/osc.ts
index bed407ed1a4..59f881b17d2 100644
--- a/ui-tui/packages/hermes-ink/src/ink/termio/osc.ts
+++ b/ui-tui/packages/hermes-ink/src/ink/termio/osc.ts
@@ -201,7 +201,10 @@ export async function tmuxLoadBuffer(text: string): Promise<boolean> {
const { code } = await execFileNoThrow('tmux', args, {
input: text,
useCwd: false,
- timeout: 2000
+ timeout: 2000,
+ // tmux may daemonize a server while retaining the inherited stdio pipes;
+ // only the child exit code is needed for this call site.
+ resolveOnExit: true
})
return code === 0