Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions server/claude-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,10 @@ describe("a claude attach pane's job (#1645)", () => {
const dir = store();
job(dir, JOB, { sessionId: SESSION });
const behind = ["claude", "--model", "opus", "attach", JOB];
// the shell prints once it runs with the environment it was given, then waits on its input: no exec moves its environment
// a started user process stands for the client: macOS 27 hides a system binary's (/bin/sh's) environment.
// It prints once it runs with the environment it was given, then waits on its input
const client = async (env: Record<string, string>) => {
const child = Bun.spawn(["/bin/sh", "-c", "echo ready; read line"], { env: { PATH: process.env["PATH"] ?? "", ...env }, stdin: "pipe", stdout: "pipe" });
const child = Bun.spawn([process.execPath, "-e", "process.stdin.resume(); console.log('ready')"], { env: { PATH: process.env["PATH"] ?? "", ...env }, stdin: "pipe", stdout: "pipe" });
const reader = child.stdout.getReader();
await reader.read();
reader.releaseLock();
Expand Down
Loading