GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — acp: session/new fails with "Location plugins did not finish activating" on cold start (5s hard-coded wait) · Issue #64853 · anomalyco/opencode Closed as duplicate Closed as duplicate Copy link Labels area/ide-acpEditor integrations and ACPplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x DescriptionDescriptionA cold location cannot be started over ACP: The wait for location plugins is hard-coded to 5 seconds. Found in the bundled 2.3.2 binary: var Ko = SE.pipe(da({ duration: "5 seconds", orElse: () => d(new Fr({ message: "Location plugins did not finish activating", service: "plugin" })) })) The same deadline shows up elsewhere: On this machine a cold location needs 13-16s before plugins are reported active, so the first request of every new ACP chat fails deterministically. The same request sent seconds later succeeds, because activation finishes in the background. Measured with a minimal ACP probe, 4 runs, cold server each time:
Server log for one run (plugin load -> failure): The plugin's own setup is not the bottleneck: slim logs Shrinking the load does not close the gap. Moving the largest auto-discovered skill packs out of the scan path (324 files, 7.7 MB) only saved 1.7s: 14.9s -> 13.2s, still a failure. A local stdio MCP server adds ~1.5s on top. No config field or environment variable raises the 5s wait, and 2.3.2 is the current latest release, so there is no workaround besides resending the request. Plugins
OpenCode version2.3.2 (latest channel) Steps to reproduce
Probe used (node, no ACP client library): import { spawn } from "node:child_process"; const cwd = process.argv[2]; const t0 = Date.now(); const child = spawn("opencode", ["acp"], { stdio: ["pipe", "pipe", "pipe"], cwd }); let buf = ""; child.stdout.on("data", (d) => { buf += d; let i; while ((i = buf.indexOf("\n")) >= 0) { const line = buf.slice(0, i); buf = buf.slice(i + 1); if (!line.trim()) continue; const msg = JSON.parse(line); if (msg.id === 1) { console.log(`initialize -> +${Date.now() - t0}ms ok=${!msg.error}`); child.stdin.write(JSON.stringify({ jsonrpc: "2.0", id: 2, method: "session/new", params: { cwd, mcpServers: [] } }) + "\n"); } if (msg.id === 2) { console.log(`session/new -> +${Date.now() - t0}ms`, msg.error ?? msg.result); child.kill(); process.exit(0); } } }); child.stdin.write(JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { protocolVersion: 1, clientCapabilities: { fs: { readTextFile: false, writeTextFile: false }, terminal: false } } }) + "\n"); setTimeout(() => { child.kill(); process.exit(2); }, 60000); Operating SystemmacOS 15.6 (Darwin 24.6.0, x86_64), 8 GB RAM, Intel Core i5-5250U TerminalOrca's built-in terminal (Electron), but the probe above reproduces it from plain Activity
MetadataMetadataAssigneesLabelsarea/ide-acpEditor integrations and ACPplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |