mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: use --add-dir flag for granting Claude read access to uploads
This commit is contained in:
@@ -9,6 +9,7 @@ import { getProjectPath } from "./utils/path";
|
||||
import { awaitFileExist } from "@/modules/watcher/awaitFileExist";
|
||||
import { systemPrompt } from "./utils/systemPrompt";
|
||||
import { PermissionResult } from "./sdk/types";
|
||||
import { getHapiBlobsDir } from "@/constants/uploadPaths";
|
||||
|
||||
export async function claudeRemote(opts: {
|
||||
|
||||
@@ -123,6 +124,7 @@ export async function claudeRemote(opts: {
|
||||
abort: opts.signal,
|
||||
pathToClaudeCodeExecutable: 'claude',
|
||||
settingsPath: opts.hookSettingsPath,
|
||||
additionalDirectories: [getHapiBlobsDir()],
|
||||
}
|
||||
|
||||
// Track thinking state
|
||||
|
||||
Reference in New Issue
Block a user