Repository navigation
Commit 8eb2f13
pi-workspace
fix(opencode): OpenCode Go quota stops show as usage limits
OpenCode types its own execution failures: an exhausted subscription is
`provider.quota` and a 429 is `provider.rate-limit`. The OpenCode 2 adapter
forwarded that code but hardcoded the T3 failure class to `provider_error`,
so a Go usage limit failed the thread as a generic provider error instead of
showing Limited.
Map those two types to `usage_limit`; every other type stays `provider_error`.
No reset time is set, since OpenCode does not report one.
Refs #163661 parent 5047ee7 commit 8eb2f13
2 files changed
Lines changed: 48 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 | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
535 | 573 | | |
536 | 574 | | |
537 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
652 | 661 | | |
653 | 662 | | |
654 | 663 | | |
| |||
2366 | 2375 | | |
2367 | 2376 | | |
2368 | 2377 | | |
2369 | | - | |
| 2378 | + | |
2370 | 2379 | | |
2371 | 2380 | | |
2372 | 2381 | | |
| |||
0 commit comments