Commit a9e5f4b
committed
fix(cli): gracefully handle model API errors instead of crashing
When the model provider returns 503/429/5xx, the error was re-thrown
from the agent loop hook, causing the Ink process to crash and exit.
Now the error is caught and displayed as an assistant message so the
user can retry without restarting the session.1 parent 0fca927 commit a9e5f4b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
0 commit comments