Commit 433d9aa
authored
fix: align ET budget error strings with gh-aw detection patterns (#2770)
* Initial plan
* fix: use 'exceeded' in ET limit event type and message
Update the event type, JSON error body type, and error message in
proxy-request.js to use 'exceeded' terminology instead of 'reached'.
This aligns AWF log events and error responses with the detection
patterns in gh-aw's parse_mcp_gateway_log.cjs, which require 'exceeded'
after 'effective tokens'. The previous 'reached' wording caused all
three detection regexes to fail on AWF log lines:
Before: event=effective_tokens_limit_reached
type=effective_tokens_limit_reached
message='Maximum effective tokens reached (X / Y).'
After: event=effective_tokens_limit_exceeded
type=effective_tokens_limit_exceeded
message='Maximum effective tokens exceeded (X / Y).'
The updated strings satisfy the existing gh-aw pattern:
/effective[\s_-]*tokens?.*exceeded/i
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent bf10d9d commit 433d9aa
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
| 266 | + | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
0 commit comments