Skip to content

Commit bc20ae3

Browse files
committed
feat: detect oh-my-openagent config (renamed from oh-my-opencode)
Setup wizard now checks for both oh-my-openagent.json(c) and oh-my-opencode.json(c), preferring the current name.
1 parent 274d499 commit bc20ae3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ Create `magic-context.jsonc` in your project root, `.opencode/`, or `~/.config/o
9999

100100
That's it. Everything else has sensible defaults. Project config merges on top of user-wide settings.
101101

102-
### Oh-My-OpenCode Users
102+
### Oh-My-OpenCode / Oh-My-OpenAgent Users
103103

104-
If you use [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), disable the hooks that conflict with Magic Context in your `oh-my-opencode.json`:
104+
If you use [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) (formerly oh-my-opencode), disable the hooks that conflict with Magic Context in your `oh-my-openagent.json`:
105105

106106
```json
107107
{
@@ -113,7 +113,7 @@ If you use [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), dis
113113
}
114114
```
115115

116-
The setup wizard handles this automatically if it detects an oh-my-opencode config.
116+
The setup wizard handles this automatically if it detects an oh-my-openagent or oh-my-opencode config.
117117

118118
---
119119

src/cli/config-paths.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ function getConfigDir(): string {
3030

3131
function findOmoConfig(configDir: string): string | null {
3232
const locations = [
33+
// Current name: oh-my-openagent
34+
join(configDir, "oh-my-openagent.jsonc"),
35+
join(configDir, "oh-my-openagent.json"),
36+
// Legacy name: oh-my-opencode
3337
join(configDir, "oh-my-opencode.jsonc"),
3438
join(configDir, "oh-my-opencode.json"),
3539
];

0 commit comments

Comments
 (0)