Skip to content

fix(install,doctor): strip model: for opencode agents; dedup doctor settingsFiles - #10

Merged
0p9b merged 1 commit into
mainfrom
fix/opencode-model-strip-doctor-dedup
Jul 15, 2026
Merged

fix(install,doctor): strip model: for opencode agents; dedup doctor settingsFiles#10
0p9b merged 1 commit into
mainfrom
fix/opencode-model-strip-doctor-dedup

Conversation

@0p9b

@0p9b 0p9b commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Two runtime bugs found deep-testing eapcrew across all 9 agents.

1. opencode crew subagents can't spawn (model: haiku) — investigator/reviewer pin model: haiku; when opencode has no Anthropic provider authed they fail with Model not found: haiku/. (only builder agents, which carry no model:, spawn). Re-applies the model: strip that #9 removed — #9 assumed keeping it was safe (opencode accepts it as a field, config loads), but at spawn time the unresolved Anthropic alias errors. installNativeAssets now strips model: alongside the tools array for opencode; the agents inherit opencode's default model. Claude keeps both.

2. eap_doctor duplicate settingsFiles — listed ~/.claude/settings.json twice when cwd==home (home + cwd candidates collided, no dedup). Deduped. Cosmetic.

Verified: 223/223 tests; opencode eapcrew emit no tools:/model:; eap_doctor returns one settingsFiles entry from cwd=home.

…ettingsFiles

Two runtime bugs found while deep-testing eapcrew across hosts.

1. opencode crew subagents that pin `model: haiku` fail to spawn with
   "Model not found: haiku/." when opencode has no Anthropic provider authed
   (only the builder agents, which carry no `model:`, spawn). This re-applies
   the `model:` strip that #9 removed: #9 assumed keeping `model:` was safe
   (opencode accepts it as a field and its config loads) — but at spawn time the
   unresolved Anthropic alias errors. installNativeAssets now strips `model:` in
   addition to the tools array when writing eapcrew agents into opencode, so they
   inherit opencode's default model. Claude Code still keeps both fields.

2. eap_doctor listed ~/.claude/settings.json twice when cwd == home (the home
   and cwd candidate paths collided with no dedup). Dedup the candidate list.
   Cosmetic — events/ok were already correct.

223/223 tests pass. Verified: opencode eapcrew agents emit no `tools:`/`model:`;
eap_doctor returns a single settingsFiles entry from cwd=home.
@0p9b
0p9b merged commit 7f4dd98 into main Jul 15, 2026
2 checks passed
@0p9b
0p9b deleted the fix/opencode-model-strip-doctor-dedup branch July 15, 2026 01:13
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