Prerequisites
Bug Description
When using oh-my-opencode with OpenCode on Windows, a new backup file named oh-my-openagent.json.bak.<timestamp> is created every time OpenCode starts.
This happens repeatedly even when I do not manually change the oh-my-openagent config file.
I expected the config file to remain unchanged unless a real migration or config update was needed.
Steps to Reproduce
- Install and configure
oh-my-opencode for OpenCode.
- Use OpenCode with the plugin enabled.
- Make sure
oh-my-openagent.json exists in the OpenCode config directory.
- Start OpenCode.
- Check the config directory.
- Notice that a new file like
oh-my-openagent.json.bak.<timestamp> is created.
- Close OpenCode and start it again.
- Another new backup file is created.
Expected Behavior
A backup file should only be created when the plugin actually migrates or modifies the config.
If no config change is needed, OpenCode startup should not generate a new .bak file every time.
Actual Behavior
A new backup file is created on every startup, for example:
oh-my-openagent.json.bak.2026-04-08T02-43-59-438Z
oh-my-openagent.json.bak.2026-04-08T03-31-51-331Z
This keeps accumulating backup files even when the config appears unchanged.
Doctor Output
oMoMoMoMo Doctor
⚠ 2 issues found:
1. Comment checker unavailable
Comment checker binary is not installed.
Fix: Install @code-yeongyu/comment-checker
Affects: comment-checker hook
2. GitHub CLI missing
gh CLI is not installed.
Fix: Install from https://cli.github.com/
Affects: GitHub automation
Error Logs
No fatal error is shown.
The main issue is that a new `oh-my-openagent.json.bak.*` file is generated on every startup.
Configuration
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
"agents": {
"sisyphus": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"hephaestus": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"oracle": {
"model": "openai/gpt-5.4",
"variant": "high"
},
"explore": {
"model": "opencode/gpt-5-nano",
"variant": "medium"
},
"multimodal-looker": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"prometheus": {
"model": "openai/gpt-5.4",
"variant": "high"
},
"metis": {
"model": "openai/gpt-5.4",
"variant": "high"
},
"momus": {
"model": "openai/gpt-5.4",
"variant": "xhigh"
},
"atlas": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"sisyphus-junior": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"librarian": {
"model": "openai/gpt-5.4",
"variant": "medium"
}
},
"categories": {
"visual-engineering": {
"model": "google/gemini-3.1-pro-preview",
"variant": "high"
},
"ultrabrain": {
"model": "openai/gpt-5.4",
"variant": "xhigh"
},
"deep": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"quick": {
"model": "openai/gpt-5.4-mini"
},
"unspecified-low": {
"model": "openai/gpt-5.3-codex",
"variant": "medium"
},
"unspecified-high": {
"model": "openai/gpt-5.3-codex",
"variant": "medium"
},
"writing": {
"model": "google/gemini-3-flash-preview",
"variant": "medium"
},
"artistry": {
"model": "google/gemini-3.1-pro-preview",
"variant": "high"
}
}
}
Additional Context
No response
Operating System
Windows
OpenCode Version
1.4.0
Prerequisites
Bug Description
When using oh-my-opencode with OpenCode on Windows, a new backup file named
oh-my-openagent.json.bak.<timestamp>is created every time OpenCode starts.This happens repeatedly even when I do not manually change the oh-my-openagent config file.
I expected the config file to remain unchanged unless a real migration or config update was needed.
Steps to Reproduce
oh-my-opencodefor OpenCode.oh-my-openagent.jsonexists in the OpenCode config directory.oh-my-openagent.json.bak.<timestamp>is created.Expected Behavior
A backup file should only be created when the plugin actually migrates or modifies the config.
If no config change is needed, OpenCode startup should not generate a new
.bakfile every time.Actual Behavior
A new backup file is created on every startup, for example:
oh-my-openagent.json.bak.2026-04-08T02-43-59-438Zoh-my-openagent.json.bak.2026-04-08T03-31-51-331ZThis keeps accumulating backup files even when the config appears unchanged.
Doctor Output
Error Logs
No fatal error is shown. The main issue is that a new `oh-my-openagent.json.bak.*` file is generated on every startup.Configuration
{ "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "agents": { "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, "explore": { "model": "opencode/gpt-5-nano", "variant": "medium" }, "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, "prometheus": { "model": "openai/gpt-5.4", "variant": "high" }, "metis": { "model": "openai/gpt-5.4", "variant": "high" }, "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "atlas": { "model": "openai/gpt-5.4", "variant": "medium" }, "sisyphus-junior": { "model": "openai/gpt-5.4", "variant": "medium" }, "librarian": { "model": "openai/gpt-5.4", "variant": "medium" } }, "categories": { "visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" }, "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, "quick": { "model": "openai/gpt-5.4-mini" }, "unspecified-low": { "model": "openai/gpt-5.3-codex", "variant": "medium" }, "unspecified-high": { "model": "openai/gpt-5.3-codex", "variant": "medium" }, "writing": { "model": "google/gemini-3-flash-preview", "variant": "medium" }, "artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" } } }Additional Context
No response
Operating System
Windows
OpenCode Version
1.4.0