Repository navigation
Commit c75d167
fix(opencode): treat a spent Claude plan as a usage limit with its reset time
OpenCode 2's claude-agent ends a run whose Claude subscription limit is spent
with a provider.unknown failure carrying Claude's "You've hit your … limit"
text, so T3 showed it as a provider error and could not snooze or resume at
reset. Recognise that wording as a usage limit and take the reset only from
the explicit "Resets at <ISO>" tail.
Fixes #29289
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d00e8cd commit c75d167
2 files changed
Lines changed: 27 additions & 1 deletion
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-opencode/src/server/v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
566 | 582 | | |
567 | 583 | | |
568 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
527 | 533 | | |
528 | 534 | | |
529 | 535 | | |
| |||
2152 | 2158 | | |
2153 | 2159 | | |
2154 | 2160 | | |
| 2161 | + | |
2155 | 2162 | | |
2156 | | - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
2157 | 2166 | | |
2158 | 2167 | | |
2159 | 2168 | | |
2160 | 2169 | | |
2161 | 2170 | | |
2162 | 2171 | | |
| 2172 | + | |
2163 | 2173 | | |
2164 | 2174 | | |
2165 | 2175 | | |
| |||
0 commit comments