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

Mark the write-only tmux load-buffer call as resolve-on-exit so a daemonized tmux server cannot retain inherited stdio and force a false timeout after the direct child has succeeded.

Completes the call-site acceptance item from #93134 as a companion to #93148.

Co-authored-by: JoaoMarcos44 <87440198+JoaoMarcos44@users.noreply.github.com>
This commit is contained in:
Andrex Ibiza, MBA
2026-08-23 16:12:20 -05:00
committed by Teknium
parent 27fb1179f8
commit 6d48fbed1b

View File

@@ -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