Skip to content

Ctrl+C on claude in tab closes tab instead of returning to shell (pane with browser tabs) #26

@mvbmir

Description

@mvbmir

Repro

  1. Pane with at least one browser tab + at least one terminal tab
  2. In terminal tab, run `claude`
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions