Skip to content

enhancement(core): add config resolve and doctor commands #17164

Closed as not planned

Description

@LeonardBode

Problem

OpenCode config can be composed from multiple sources, but there is no first-class CLI flow that shows the fully resolved runtime config or explains why a value won, was ignored, or is still unresolved. Downstream integrations end up building custom sync and debugging layers around config merge behavior.

Impact

This makes enterprise and generated-config setups harder to operate, especially when users mix global, project, inline, and generated config. It also turns troubleshooting into trial-and-error because there is no single source of truth for the effective config.

Fix

Add opencode config resolve and opencode config doctor.

  • resolve should print the effective merged config in a machine-readable form.
  • doctor should report source precedence, unknown keys, deprecated keys, unresolved {env:...} and {file:...} refs, and ignored sections.
  • Both commands should work with custom config paths and eventually support selected profiles once profiles land.

File

docs/config/ L1

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 12, 2026
  2. github-actions commented on Mar 12, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature requests must use the [FEATURE]: prefix in the title (e.g. [FEATURE]: add config resolve and doctor commands)
    • The feature request template requires checking the verification checkbox confirming the feature hasn't been suggested before
    • The issue appears to be AI-generated (highly structured sections, formal language, and a ## File field with placeholder content docs/config/ L1). AI-generated walls of text are not acceptable per our guidelines — please rewrite this in your own words describing what you actually need

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. github-actions commented on Mar 12, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions