Make curl virtual command use configured corsProxy instead of hardcoded

This commit is contained in:
Alex Gleason committed 2025-11-12 11:10:30 -06:00
1 parent 0b66f81bfc
commit dbf5cfe0a3
6 files changed
+20 -11

No files matched your search

+2 -2
View File
@@ -166,7 +166,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
nostr_read_nips_index: new NostrReadNipsIndexTool(),
nostr_generate_kind: new NostrGenerateKindTool(),
nostr_publish_events: new NostrPublishEventsTool(),
shell: new ShellTool(fs, cwd, git, projectsPath, user?.signer),
shell: new ShellTool(fs, cwd, git, projectsPath, config.corsProxy, user?.signer),
read_console_messages: new ReadConsoleMessagesTool(),
skill: new SkillTool(fs, pluginsPath),
};
@@ -180,7 +180,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
}
return baseTools;
}, [fs, git, cwd, user, projectId, projectsPath, tmpPath, pluginsPath, handleFileChanged]);
}, [fs, git, cwd, user, projectId, projectsPath, tmpPath, pluginsPath, config.corsProxy, handleFileChanged]);
// Convert tools to OpenAI format
const tools = useMemo(() => {