Commit 2854774
fix(cli): escape Rich markup in BudgetExceededError and use stderr
Fixes critical issues in budget error handler:
- Escape exception message to prevent Rich MarkupError when str(BudgetExceededError) contains [budget] tags
- Print error to stderr to avoid corrupting JSON/JSONL structured output
- Apply budget handling to missing _run_inline_workflow call site
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent 4222121 commit 2854774
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4027 | 4027 | | |
4028 | 4028 | | |
4029 | 4029 | | |
4030 | | - | |
| 4030 | + | |
4031 | 4031 | | |
4032 | 4032 | | |
4033 | 4033 | | |
| |||
4083 | 4083 | | |
4084 | 4084 | | |
4085 | 4085 | | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
4086 | 4089 | | |
4087 | | - | |
| 4090 | + | |
4088 | 4091 | | |
4089 | | - | |
| 4092 | + | |
| 4093 | + | |
4090 | 4094 | | |
4091 | 4095 | | |
4092 | 4096 | | |
| |||
0 commit comments