-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Bug
When OpenCode can't find the specified model (e.g., wrong model ID via Ohm), it throws ProviderModelNotFoundError but exits with code 0. This makes agentctl think the session completed successfully.
Repro
opencode run --model ohm/minimax/MiniMax-M2.5 -- 'test'
# Throws ProviderModelNotFoundError internally
echo $? # 0Impact
- agentctl records the session as
stopped(success) instead offailed - No error surfaces to the daemon or webhook pipeline
- The error is only visible in the launch log file, not in any API output
- In a matrix launch, one agent silently fails while the other succeeds, with no indication which
Expected
Non-zero exit code (e.g., 1) when OpenCode fails due to model resolution errors. This would let agentctl distinguish success from failure and surface the error.
Note
This may be an upstream OpenCode issue rather than agentctl, but agentctl should ideally also check for 1-second exits as suspicious regardless.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels