Skip to content

Commit 2b5b01e

Browse files
committed
fix(tarko): fetch actual remote config instead of local file
1 parent 8e2d7bb commit 2b5b01e

File tree

1 file changed

+2
-1
lines changed
  • multimodal/tarko/agent-cli/src/config

1 file changed

+2
-1
lines changed

multimodal/tarko/agent-cli/src/config/loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ export async function loadAgentConfig(
131131
for (const path of configPaths) {
132132
let config: AgentAppConfig = {};
133133

134-
if (isUrl(path)) {
134+
if (isUrl(path) && !existsSync(path)) {
135135
// Load from URL
136+
// Note: a local file can be a valid URL, but we can not fetch it
136137
config = await loadRemoteConfig(path, isDebug);
137138
} else {
138139
// Load from file

0 commit comments

Comments
 (0)