Commit 0f8eabd
fix: hand TTY to tmux via syscall.Exec in session at (gt-cuo)
runSessionAttach was calling tmux via exec.Command(...).Run() with
buffered stdout/stderr, so tmux saw pipes instead of a TTY and failed
with "open terminal failed: not a terminal".
Use attachToTmuxSession() (already used by crew at, handoff, mayor,
witness, refinery, deacon), which syscall.Exec's tmux on Unix so it
inherits the parent shell's controlling terminal directly. Windows
path uses the existing stdio-passthrough wrapper.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 677877b commit 0f8eabd
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
341 | 351 | | |
342 | 352 | | |
343 | 353 | | |
| |||
0 commit comments