Repro
- Pane with at least one browser tab + at least one terminal tab
- In terminal tab, run `claude`
- Ctrl+C to exit claude
Expected
Tab stays open, shell returns to normal prompt
Actual
Tab closes entirely. Terminal process appears to exit/crash rather than returning control to shell.
Notes
- Only observed in right pane so far (split layout)
- Unclear if terminal process is crashing or Ghostty is closing the surface
- Need to check if this repros with other long-running TTY apps (vim, htop) or is claude-specific
- May be related to `wait-after-command` behavior of Ghostty when `command` config is set — if our wrapper exec chains confuse Ghostty into treating claude's exit as command-complete
Investigation starting points
- `rust/limux-host-linux/src/terminal.rs` — on_close callback handling
- `rust/limux-host-linux/src/pane.rs` — tab close triggered by terminal surface close signal
- Check if `config.@"wait-after-command" = true` is being set on plain shell spawns (should only be true when `command` is set explicitly)
Repro
Expected
Tab stays open, shell returns to normal prompt
Actual
Tab closes entirely. Terminal process appears to exit/crash rather than returning control to shell.
Notes
Investigation starting points