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 — config: instructions entries are still never loaded in v2.0.29 · Issue #55734 · anomalyco/opencode

config: instructions entries are still never loaded in v2.0.29 #55734

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
config: instructions entries are still never loaded in v2.0.29#55734
Copy link
Labels
pending closetriaging

Description

@Addin
Addin
opened on Oct 15, 2026
Issue body actions

Description

Instruction files listed in the instructions array of opencode.json(c) are still never injected into sessions in v2.0.29. The config is discovered and parsed — opencode debug config lists both documents with their instructions entries and reports no error — but nothing loads the files and no warning is emitted. Only AGENTS.md discovery works.

Same failure as #51341, #55345 and #54157 (all closed); the fix PR #51422 is closed without merging, so the field is still dead in the latest release.

Plugins

None.

OpenCode version

2.0.29 (release).

Steps to reproduce

  1. Create a scratch project with an opencode.jsonc covering every documented entry form, plus a control AGENTS.md:
{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["notes-a.md", "notes-*.md", "~/notes-b.md", "/tmp/.../notes-c.md"]
}

Each file holds one unique marker: ALFA-RELATIVO (relative), DELTA-GLOB (glob), BETA-TILDE (~/), GAMMA-ABSOLUTO (absolute). AGENTS.md holds AGENTS-MARKER-V2.

  1. opencode run --standalone --agent build "reply with the markers you have loaded"

  2. Only AGENTS-MARKER-V2 is reported. No configured entry loads — relative path, glob, ~/ path or absolute path. Reproduced from the scratch directory and from a git repo with a project opencode.jsonc.

Control: replacing AGENTS.md with a symlink to the marker file still injects the marker, so discovery works and only the config field is unwired.

Same on a normal setup: global ~/.config/opencode/opencode.jsonc with instructions: ["~/.config/opencode/pr-workflow.md"] and a project opencode.jsonc with instructions: ["~/.config/opencode/reviewer-notes-rolivencia.md"]. Both files exist, opencode debug config lists both documents with those arrays and error: null, and neither file shows up as an instruction source in a fresh session.

Expected Behavior

The listed files are injected as session instructions, as in v1 and as the V2 instructions page describes ("Entries from every config document are combined").

Actual Behavior

Nothing is loaded and no warning is emitted. The config validates and normalizes cleanly, so a migrating user only discovers the no-op when their rules never show up.

Screenshot and/or share link

n/a — CLI reproduction, the steps above are exact and self-contained.

Operating System

Linux (Pop!_OS, kernel 7.1.5-76070105)

Terminal

Ghostty (TERM=xterm-256color, TERM_PROGRAM=ghostty)

Additional Context

opencode debug config (trimmed) shows the documents are found and the field survives:

[
  { "type": "document", "path": "~/.config/opencode/opencode.jsonc",
    "info": { "instructions": ["~/.config/opencode/pr-workflow.md"] }, "error": null },
  { "type": "document", "path": "<repo>/opencode.jsonc",
    "info": { "instructions": ["~/.config/opencode/reviewer-notes-rolivencia.md"] }, "error": null }
]

Either honoring the field or warning at config load (the way compaction.prune warns) would remove the silent no-op. Workaround used locally: symlink the rule file as AGENTS.md so discovery picks it up.

Activity

  1. opencode-agent commented on Oct 15, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 15, 2026 – with OpenCode Agent
    Contributor
    More actions

    Thanks for the thorough, self-contained repro! I think this is a duplicate of #51341. You're right that 2.0.29 still doesn't load instructions entries. The fix, #55539 ("fix(core): load configured instructions", which replaces the unmerged #51422), was merged into dev on 2026-10-14, a few hours after v2.0.29 was tagged. So it isn't in 2.0.29 but should be in a later release.

    Possible duplicates and related issues, ordered from most to least likely:

    • config: instructions field does not load instruction files (v2.0.16) #51341: the same bug (config instructions parsed but never loaded in v2). Closed as completed by fix(core): load configured instructions #55539.
    • instructions array in opencode.json not injected in v2.0.28 — worked in v1.19.0 #55345: the same bug on v2.0.28, closed as a duplicate of config: instructions field does not load instruction files (v2.0.16) #51341.
    • config: instructions field is parsed but never loaded (v2 regression) #54157: the same bug, closed as a duplicate of config: instructions field does not load instruction files (v2.0.16) #51341. It also discusses the missing config-load warning.
    • The instructions config field is loaded, documented and recommended, but never read #52417: the same bug, withdrawn by its author as a duplicate of config: instructions field does not load instruction files (v2.0.16) #51341.
    • v2: config instructions entries are never loaded (only AGENTS.md scanned) #51262: the same bug on 2.0.14/2.0.16, withdrawn by its author in favour of the opencode-rules plugin.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. If it still happens on a release that includes #55539, please say so here.

  2. opencode-agent
    added
    pending close
    triaging
    on Oct 15, 2026
  3. opencode-agent
    closed this as duplicateon Oct 16, 2026
  4. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 16, 2026 – with OpenCode Agent
    Contributor
    More actions

    Closing this as a duplicate of #51341, since there's been no reply saying how it differs. Thanks again for the clear repro covering every entry form.

    The fix is #55539 ("fix(core): load configured instructions"). It was merged into dev after v2.0.29 was tagged, so it isn't in 2.0.29 and should be in a later release. If instructions entries still don't load on a release that includes #55539, please comment on #51341 or open a new issue with your version and repro.

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

    pending closetriaging

    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.