Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/ai-autopilot/src/runner/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class DockerRunner implements Runner {
const publish = this.opts.preview ? ['-p', `127.0.0.1:0:${this.opts.previewPort}`] : []
const run = await docker(['run', '-d', '--name', name, '-w', WORKSPACE, ...publish, this.image, 'tail', '-f', '/dev/null'])
if (run.exitCode !== 0) {
throw new RunnerError(`failed to boot container: ${(run.stderr.trim() || run.stdout.trim()) ?? ''}`)
throw new RunnerError(`failed to boot container: ${run.stderr.trim() || run.stdout.trim()}`)
}
try {
const session = new DockerRunnerSession(id, name, opts, this.opts)
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-autopilot/src/runner/webcontainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class WebContainerRunnerSession implements RunnerSession {
timer = setTimeout(() => {
timedOut = true
proc.kill()
res(137)
res(124) // discarded; the timedOut branch below sets the real code
}, timeoutMs)
})
: undefined
Expand Down
7 changes: 1 addition & 6 deletions packages/framework/src/driver/claude-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ let sessionCounter = 0
export class ClaudeCodeSession implements DriverSession {
readonly id: string
readonly cwd: string
private lastSessionId?: string

constructor(
private readonly config: ClaudeCodeDriverOptions,
Expand Down Expand Up @@ -102,9 +101,6 @@ export class ClaudeCodeSession implements DriverSession {
spawn: this.config.spawn ?? (nodeSpawn as unknown as SpawnLike),
emit,
signals,
}).then(turn => {
if (turn.sessionId) this.lastSessionId = turn.sessionId
return turn
})
}

Expand All @@ -114,8 +110,7 @@ export class ClaudeCodeSession implements DriverSession {

dispose(): Promise<void> {
// Each prompt spawns and reaps its own process, so there is nothing durable
// to tear down. The last session id is kept only for a UI link.
void this.lastSessionId
// to tear down. The session id reaches the UI via the emitted result event.
return Promise.resolve()
}

Expand Down
Loading