diff --git a/plugins/provider-acp/src/bridge/bridge.ts b/plugins/provider-acp/src/bridge/bridge.ts index ff235775d..9458f0db3 100644 --- a/plugins/provider-acp/src/bridge/bridge.ts +++ b/plugins/provider-acp/src/bridge/bridge.ts @@ -326,10 +326,9 @@ function emitSessionError(session: AcpThreadSession, message: string): void { } function resolveBridgeProcessArgsForMcpServer(): string[] { - const entryPoint = process.argv[1] - ? resolve(process.argv[1]) - : fileURLToPath(import.meta.url); - return [...process.execArgv, entryPoint, "--mcp-stdio"]; + // process.argv[1] is the provider-bridge worker bootstrap, not this module: + // the bootstrap imports this artifact, so only import.meta.url names it. + return [...process.execArgv, fileURLToPath(import.meta.url), "--mcp-stdio"]; } function resolveBridgeProcessEnvForMcpServer(): AcpMcpServerConfig["env"] {