We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa3058 commit c21d8e4Copy full SHA for c21d8e4
src/lib/claude-client.ts
@@ -487,7 +487,7 @@ export function streamClaude(options: ClaudeStreamOptions): ReadableStream<strin
487
// Save non-image files to disk for Read tool access
488
let textPrompt = prompt;
489
if (nonImageFiles.length > 0) {
490
- const workDir = workingDirectory || process.cwd();
+ const workDir = workingDirectory || os.homedir();
491
const savedPaths = getUploadedFilePaths(nonImageFiles, workDir);
492
const fileReferences = savedPaths
493
.map((p, i) => `[User attached file: ${p} (${nonImageFiles[i].name})]`)
0 commit comments