Commit bbe691e
committed
fix(claude-agent): raise error instead of silently returning empty messages
Returning 0 messages means the model was unreachable (VPN down, proxy
error, etc). Logging a warning and succeeding caused Temporal to mark
the activity as completed, the workflow to continue pointlessly, and
the root cause to be invisible.
Raising RuntimeError lets Temporal retry the activity or surface the
failure clearly in the workflow timeline.1 parent 321ca06 commit bbe691e
File tree
1 file changed
+3
-2
lines changed- src/agentex/lib/core/temporal/plugins/claude_agents
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
0 commit comments