Skip to content

Commit c21d8e4

Browse files
7418claude
andcommitted
fix: remove last process.cwd() fallback in file upload path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3fa3058 commit c21d8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/claude-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export function streamClaude(options: ClaudeStreamOptions): ReadableStream<strin
487487
// Save non-image files to disk for Read tool access
488488
let textPrompt = prompt;
489489
if (nonImageFiles.length > 0) {
490-
const workDir = workingDirectory || process.cwd();
490+
const workDir = workingDirectory || os.homedir();
491491
const savedPaths = getUploadedFilePaths(nonImageFiles, workDir);
492492
const fileReferences = savedPaths
493493
.map((p, i) => `[User attached file: ${p} (${nonImageFiles[i].name})]`)

0 commit comments

Comments
 (0)