Skip to content

t2887: headless canary: validate opencode binary, detect claude CLI misconfig, long backoff on config errors #21000

@marcusquinn

Description

@marcusquinn

alex-solovyev runner has 468 launch_recovery:no_worker_process failures in 48h because OPENCODE_BIN_DEFAULT resolves to anthropic/claude CLI (returns '2.1.119 (Claude Code)' from --version) instead of anomalyco/opencode (returns '1.14.x'). The canary then runs 'claude run -m model' which fails with 'unknown option -m' since claude CLI does not accept -m. Add pre-canary validation that detects this misconfig, searches alternative paths for a real opencode binary, falls back if found, and uses 1h backoff (vs current 90s) on structural config errors to stop the dispatch-claim spam.


aidevops.sh v3.11.6 plugin for OpenCode v1.14.25 with claude-opus-4-7 spent 4h 13m and 295,705 tokens on this with the user in an interactive session.

Metadata

Metadata

Assignees

Labels

criticalRequires human attentionframeworkAuto-created from TODO.md tagno-auto-dispatchAuto-created from TODO.md tagorigin:interactiveCreated from interactive sessionreliabilityAuto-created from TODO.md tagstatus:doneTask is complete

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions