Skip to content

Instruction initialization blocked by unavailable sources: core/instructions #52290

Closed as duplicate

Description

@RomanCharnashei

Description

I have got this error:
timestamp=2026-09-30T12:34:04.600Z level=ERROR run=832fe376 message="Failed to drain Session" cause="Instructions.InitializationBlocked: Instruction initialization blocked by unavailable sources: core/instructions\n at PE (B:/~BUN/root/chunk-8q8zmjz7.js:30:43130)\n at <anonymous> (B:/~BUN/root/chunk-8q8zmjz7.js:32:2899)\n at InstructionState.observe (B:/~BUN/root/chunk-8q8zmjz7.js:32:1283)\n at InstructionState.observe (definition) (B:/~BUN/root/chunk-8q8zmjz7.js:32:421)\n at InstructionState.prepare (B:/~BUN/root/chunk-k5d05r05.js:382:2611)\n at InstructionState.prepare (definition) (B:/~BUN/root/chunk-8q8zmjz7.js:32:1212)\n at SessionRunner.prepareContext (B:/~BUN/root/chunk-k5d05r05.js:382:2186)\n at SessionRunner.prepareContext (definition) (B:/~BUN/root/chunk-k5d05r05.js:382:2526)\n at SessionRunner.advanceToStep (B:/~BUN/root/chunk-k5d05r05.js:382:2448)\n at SessionRunner.advanceToStep (definition) (B:/~BUN/root/chunk-k5d05r05.js:382:728)\n at SessionRunner.drain (B:/~BUN/root/chunk-gw30emge.js:24:2279)\n at SessionRunner.drain (definition) (B:/~BUN/root/chunk-k5d05r05.js:382:352)" role=server sessionID=ses_f0db137d6ffeQVjzTQQ7swqruP

Enviorment:
Windows 10 21h1
Version: 2.0.19 - 2.0.20
Installation: npm install -g @opencode/cli

Note: I do not have any kind of disc B. This error occurs when I run the first promt in the context of the old project in plan mode. The empty folder works fine.

Plugins

No response

OpenCode version

2.0.20

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 10 21H1

Terminal

wt

Activity

  1. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • #50296: Reports the same Instruction initialization blocked by unavailable sources: core/instructions error on Windows.
    • #51441: Reports the same initialization error when opening an older project in OpenCode 2.x.
    • #50857: Reports the same failure on Windows when a workspace path uses a lowercase drive letter.
    • #47839: Reports the same instruction initialization failure for case-variant Windows project paths.
  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the report! I think this is a duplicate of #52874. On Windows, if a git project is opened with a drive letter cased differently from the one git reports (e.g. c:\project vs C:\project), the search for AGENTS.md overflowed the stack. Instructions then became unavailable and every prompt failed with this exact error. That fits what you saw: only git projects are affected, so your old project fails and an empty folder works.

    This was fixed in #53349, which first shipped in v2.0.24. You're on 2.0.20, so please upgrade (npm install -g @opencode/cli@latest) and try again.

    Possible duplicates and related issues, ordered by likelihood:

    By the way, the B:/~BUN/... paths in the stack trace are Bun's internal paths for the bundled binary, not a real drive, so you can ignore them.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different, for example if it still happens on the latest version.

  3. opencodejr commented on Oct 29, 2026

    @opencodejr
    Contributor

    Closing this as a duplicate of #52874, since there hasn't been a reply in the last day. The core/instructions initialization error on Windows git projects comes from a drive-letter case mismatch. It was fixed in #53349, which first shipped in v2.0.24. Please upgrade with npm install -g @opencode/cli@latest.

    If it still happens on the latest version, please comment here with your version and the log output and we can reopen it. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions