What happened?
When opening a remote VM session over SSH, Supacode fails before SSH starts with:
bash: line 0: exec: trap: not found
Regular ssh remote-host works. The issue appears to be in the Supacode/GhosttyKit launch command quoting, not in SSH, the remote host, shell startup files, or zmx.
The generated command appears to pass the script to bash -c incorrectly.
Bad observed pattern:
bash -c exec -l trap 'exit 130' INT; ssh ...
Expected pattern:
bash -c 'trap "exit 130" INT; exec ssh ...'
Settings/workarounds already tried:
remoteSessionPersistenceEnabled=false
terminalHibernationEnabled=false
terminateSessionsOnQuit=false
- stable and tip update channels
- clearing the lingering SSH ControlMaster mux/socket
The failure still occurs.
Steps to reproduce
- Configure a remote repository/session over SSH, e.g.
remote-host/home/user.
- Open the remote VM/session in Supacode.
- Supacode/GhosttyKit fails before the SSH session starts.
- Observe the error:
bash: line 0: exec: trap: not found
Minimal local reproduction of the bad quoting shape:
/bin/bash --noprofile --norc -c "exec -l trap 'exit 130' INT"
Output:
/bin/bash: line 0: exec: trap: not found
Supacode version and build
Version 0.10.6 (1784763905)
macOS version
macOS 26.5
System locale
en_US@rg=ruzzzz
Mac hardware
M3 Pro (Apple silicon / ARM)
Relevant logs or screenshots
Relevant launch-command excerpt shows `/bin/bash --noprofile --norc -c exec -l trap 'exit 130' INT; /usr/bin/ssh ...`, which makes `trap` become the command passed to `exec` instead of a shell builtin inside the `bash -c` script.
Are you planning to fix this yourself?
Before submitting
What happened?
When opening a remote VM session over SSH, Supacode fails before SSH starts with:
Regular
ssh remote-hostworks. The issue appears to be in the Supacode/GhosttyKit launch command quoting, not in SSH, the remote host, shell startup files, or zmx.The generated command appears to pass the script to
bash -cincorrectly.Bad observed pattern:
Expected pattern:
bash -c 'trap "exit 130" INT; exec ssh ...'Settings/workarounds already tried:
remoteSessionPersistenceEnabled=falseterminalHibernationEnabled=falseterminateSessionsOnQuit=falseThe failure still occurs.
Steps to reproduce
remote-host/home/user.Minimal local reproduction of the bad quoting shape:
/bin/bash --noprofile --norc -c "exec -l trap 'exit 130' INT"Output:
Supacode version and build
Version 0.10.6 (1784763905)
macOS version
macOS 26.5
System locale
en_US@rg=ruzzzz
Mac hardware
M3 Pro (Apple silicon / ARM)
Relevant logs or screenshots
Are you planning to fix this yourself?
ready.Before submitting
ready.