mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 22:15:33 +00:00
feat(hooks): skip image analyzer for Claude Sub accounts
- Add CCS_IMAGE_ANALYSIS_SKIP=1 for account and default profile types - Matches WebSearch behavior: native Claude has native vision support
This commit is contained in:
1 parent
a8ddf8bd56
commit
26f4021770
1 file changed
+4
@@ -667,18 +667,22 @@ async function main(): Promise<void> {
|
|||||||
|
|
||||||
// Execute Claude with instance isolation
|
// Execute Claude with instance isolation
|
||||||
// Skip WebSearch hook - account profiles use native server-side WebSearch
|
// Skip WebSearch hook - account profiles use native server-side WebSearch
|
||||||
|
// Skip Image Analyzer hook - account profiles have native vision support
|
||||||
const envVars: NodeJS.ProcessEnv = {
|
const envVars: NodeJS.ProcessEnv = {
|
||||||
CLAUDE_CONFIG_DIR: instancePath,
|
CLAUDE_CONFIG_DIR: instancePath,
|
||||||
CCS_PROFILE_TYPE: 'account',
|
CCS_PROFILE_TYPE: 'account',
|
||||||
CCS_WEBSEARCH_SKIP: '1',
|
CCS_WEBSEARCH_SKIP: '1',
|
||||||
|
CCS_IMAGE_ANALYSIS_SKIP: '1',
|
||||||
};
|
};
|
||||||
execClaude(claudeCli, remainingArgs, envVars);
|
execClaude(claudeCli, remainingArgs, envVars);
|
||||||
} else {
|
} else {
|
||||||
// DEFAULT: No profile configured, use Claude's own defaults
|
// DEFAULT: No profile configured, use Claude's own defaults
|
||||||
// Skip WebSearch hook - native Claude has server-side WebSearch
|
// Skip WebSearch hook - native Claude has server-side WebSearch
|
||||||
|
// Skip Image Analyzer hook - native Claude has native vision support
|
||||||
const envVars: NodeJS.ProcessEnv = {
|
const envVars: NodeJS.ProcessEnv = {
|
||||||
CCS_PROFILE_TYPE: 'default',
|
CCS_PROFILE_TYPE: 'default',
|
||||||
CCS_WEBSEARCH_SKIP: '1',
|
CCS_WEBSEARCH_SKIP: '1',
|
||||||
|
CCS_IMAGE_ANALYSIS_SKIP: '1',
|
||||||
};
|
};
|
||||||
execClaude(claudeCli, remainingArgs, envVars);
|
execClaude(claudeCli, remainingArgs, envVars);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user