mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-11-03 06:32:38 +08:00
When API errors like token limit exceeded errors are passed as strings to error checking methods, the 'in' operator would throw a TypeError. This fix adds a type guard to check that the input is an object before attempting to access its properties, allowing proper error classification even when encountering unexpected error formats from providers.