Not sure what this change is but hey
This commit is contained in:
@@ -82,7 +82,13 @@ const bridge = async (ws: WebSocket, jobId: string) => {
|
|||||||
try {
|
try {
|
||||||
const container = await ensureTerminalContainer(jobId, workspace.workdir);
|
const container = await ensureTerminalContainer(jobId, workspace.workdir);
|
||||||
exec = await container.exec({
|
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,
|
AttachStdin: true,
|
||||||
AttachStdout: true,
|
AttachStdout: true,
|
||||||
AttachStderr: true,
|
AttachStderr: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user