Skip to content

fix(config): prefer canonical plugin config filenames#2805

Merged
code-yeongyu merged 1 commit intodevfrom
fix/b3-config-filename-precedence
Mar 24, 2026
Merged

fix(config): prefer canonical plugin config filenames#2805
code-yeongyu merged 1 commit intodevfrom
fix/b3-config-filename-precedence

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

@code-yeongyu code-yeongyu commented Mar 24, 2026

Problem

detectPluginConfigFile() preferred oh-my-openagent.json over oh-my-opencode.jsonc (name before extension), while writers/installers canonicalize to oh-my-opencode. Users with both files got unpredictable behavior.

Fix

  • Ensure oh-my-opencode filenames always take precedence over legacy oh-my-openagent filenames regardless of extension ordering
  • Added regression tests for canonical-vs-legacy mixed-extension precedence

Review

All 5 review-work lanes passed (goal, QA, code quality, security, context mining).
Tests passed, typecheck passed, build passed.


Summary by cubic

Prefer canonical oh-my-opencode plugin config files over legacy oh-my-openagent, regardless of .json vs .jsonc. This aligns readers with the writer/installer and removes confusion when both files exist.

  • Bug Fixes
    • Reordered detection so oh-my-opencode always wins for both extensions.
    • Updated default fallbacks to oh-my-opencode.json for user and project configs.
    • Added regression tests for mixed-extension precedence.

Written for commit 32035d1. Summary will update on new commits.

Ensure oh-my-opencode filenames always win over legacy oh-my-openagent files so readers match canonical writer behavior.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Ensures consistent config detection by preferring canonical names while maintaining backward compatibility for legacy files. Minimal logic change with verifying tests.

@code-yeongyu code-yeongyu merged commit a1786f4 into dev Mar 24, 2026
8 checks passed
@code-yeongyu code-yeongyu deleted the fix/b3-config-filename-precedence branch March 24, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant