Repository navigation
Description
Problem
OpenRouter planning fails when the checked-out repository contains an OpenCode V2 configuration.
The runner reports this error:
Configuration is invalid at /home/ubuntu/repo/opencode.json
V2 permissions are not supported by OpenCode V1.
SuperPlane installs opencode-ai@1.18.31, which uses OpenCode V1 configuration rules.
The repository configuration uses V2 fields such as:
permissionsagents.triaging.permissions
SuperPlane writes a separate V1 configuration to $SUPERPLANE_TASK_DIR/opencode.json. It sets this path through OPENCODE_CONFIG.
However, OpenCode merges configuration files. It loads the SuperPlane configuration and then loads opencode.json from the project directory.
The project configuration fails validation before OpenCode sends a request to the OpenRouter model.
Codex does not have this problem. The Codex runner starts the Codex CLI directly and does not read opencode.json.
Goal
Prevent repository OpenCode configuration from breaking SuperPlane-managed OpenRouter planning.
The OpenRouter runner must use a predictable configuration for all repositories.
Scope
Review these files:
pkg/components/runner/openrouter/run.jspkg/components/runner/openrouter/run_test.gopkg/components/runner/codex/run.jsrelease/runner/Dockerfile
Determine how to isolate the SuperPlane configuration from incompatible project configuration.
Preserve repository instructions and skills that SuperPlane supports independently.
Do not change the Codex execution path.
Acceptance criteria
- OpenRouter planning succeeds when the repository contains a V2
opencode.json. - OpenRouter planning still succeeds when the repository contains no OpenCode configuration.
- SuperPlane continues to apply its generated permission and provider settings.
- The runner does not load incompatible project permission fields.
- Tests cover a repository with
permissionsandagents.<name>.permissions. - Tests confirm that
OPENCODE_CONFIGstill points to the SuperPlane-generated configuration. - The runner log identifies configuration failures clearly if the managed configuration is invalid.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity