mirror of
https://github.com/usestrix/strix.git
synced 2026-10-12 03:47:56 +00:00
ContextWindowExceededError carries status_code=400, which matched the _INPUT_REJECTION_CODES guard and triggered image-strip retry logic. Image stripping cannot reduce token count, so the agent wasted up to 3 retry cycles before parking as failed. Add an explicit isinstance check before the status-code guard to detect context-window overflow and park the agent as 'failed' immediately.
0 lines
Python
0 lines
Python