Not sure what this change is but hey

This commit is contained in:
Gabriel Brown
2026-06-24 08:38:23 -04:00
parent 24a516c2b5
commit fd48dcfc28
+7 -1
View File
@@ -82,7 +82,13 @@ const bridge = async (ws: WebSocket, jobId: string) => {
try {
const container = await ensureTerminalContainer(jobId, workspace.workdir);
exec = await container.exec({
Cmd: ['/bin/bash', '-l'],
// Reattach a persistent tmux session across reconnects when tmux is
// available; otherwise fall back to a plain login shell.
Cmd: [
'/bin/bash',
'-lc',
'exec tmux new-session -A -s spoon 2>/dev/null || exec bash -l',
],
AttachStdin: true,
AttachStdout: true,
AttachStderr: true,