GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

acp: session/new fails with "Location plugins did not finish activating" on cold start (5s hard-coded wait) #64853

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
acp: session/new fails with "Location plugins did not finish activating" on cold start (5s hard-coded wait)#64853
Copy link
Labels
area/ide-acpEditor integrations and ACPplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x

Description

@your-personafolio
your-personafolio
opened on Nov 19, 2026
Issue body actions

Description

A cold location cannot be started over ACP: session/new fails with -32603 Internal error ... ServiceUnavailableError after 13-16s, and the server logs:

level=ERROR message="ACP request failed" cause="ServiceUnavailableError: Location plugins did not finish activating"

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: GET /api/model and GET /api/model/default answer 503 when a location is still activating.

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:

run initialize session/new result
1 +1.5s +16.4s ServiceUnavailableError
2 +1.9s +14.9s ServiceUnavailableError
3 +1.3s +13.2s ServiceUnavailableError
4 +1.8s +13.3s ServiceUnavailableError

Server log for one run (plugin load -> failure):

10:53:34.101 loading plugin [email protected]
10:53:39.780 watcher subscribe path=.../.config/opencode/AGENTS.md      (+5.7s)
10:53:44.671 watcher subscribe path=~/.agents/skills                     (+4.9s)
10:53:46.401 ERROR "ACP request failed" ... did not finish activating

The plugin's own setup is not the bottleneck: slim logs health check passed 3s in, then nothing more before the process is torn down. The remaining time goes to the instruction/skill scan that follows plugin setup.

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

  • [email protected] (npm package plugin, heavy: 8 tools, 6-9 agents, 11 bundled skills)
  • one local plugin file (session status bridge for the editor host)
  • one local stdio MCP server (19 tools), enabled in global config

OpenCode version

2.3.2 (latest channel)

Steps to reproduce

  1. In a directory that has at least one plugin configured, start opencode acp with stdio.
  2. Send initialize.
  3. Send session/new with {"cwd": "<project dir>", "mcpServers": []}.
  4. Observe the error after 13-16s.

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 System

macOS 15.6 (Darwin 24.6.0, x86_64), 8 GB RAM, Intel Core i5-5250U

Terminal

Orca's built-in terminal (Electron), but the probe above reproduces it from plain node with no terminal involved.

Activity

  1. opencodejr commented on Nov 19, 2026

    @opencodejr
    opencodejrBot
    on Nov 19, 2026
    Contributor
    More actions

    Thanks for the detailed report, the timings and the probe script are very helpful.

    I think this is a duplicate of #57204. There, ACP requests sent right after initialize fail with -32603 / ServiceUnavailableError: Location plugins did not finish activating because the location's plugin activation takes longer than the wait. That issue has been reproduced, the reproduction notes that session/new goes through the same path, and a later comment there describes your case: the first session/new on a fresh opencode acp process fails when skill discovery is slow, and resending it works.

    Possible duplicates and closely related issues, ordered by likelihood:

    • session/resume fails right after initialize with "Location plugins did not finish activating" #57204: the same ACP startup race and error, also covering session/new
    • cli: api model.list --standalone returns 503 "Location plugins did not finish activating" #63273: the same 5-second activation limit, hit by opencode api model.list --standalone (also with oh-my-opencode-slim)
    • fix(server): make plugin activation timeout configurable #64408: an open PR that makes the plugin activation timeout configurable
    • fix(server): stop waiting for plugins in the model, provider, generate, voice and websearch handlers #63814: stops waiting for plugins in the model and provider handlers (I haven't checked whether it changes the ACP session/new path)
    • Plugin activation never completes when the global skills folder resolves to a slow drive — /api/model 503 forever #63130 and core: global location watcher subscribes to all of $HOME — 2M+ file home dirs starve the event loop (~900% CPU, multi-GB memory), /api/model 503 #55937: slow skill discovery or a $HOME-wide watcher causing the same 503

    I'm closing this issue now as a duplicate of #57204. Please add your 2.3.2 macOS measurements and the log excerpt there, since they help show how often this happens. If you think this is a different problem, reply here and the issue will be reopened.

  2. opencodejr
    closed this as a duplicateof session/resume fails right after initialize with "Location plugins did not finish activating" #57204 on Nov 19, 2026
  3. opencodejr
    added
    area/ide-acpEditor integrations and ACP
    platform/macosmacOS
    type/bugSomething is broken
    version/v2OpenCode 2.x
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ide-acpEditor integrations and ACPplatform/macosmacOStype/bugSomething is brokenversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue 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.