Fixed a bug where CEL comprehension expressions could silently swallow evaluation errors
Claude Code uses CEL (Common Expression Language) internally to evaluate list and map comprehensions, the kind of expression used to loop over or filter a collection. Several checks that were supposed to detect evaluation errors were accidentally checking the wrong variable, a leftover from earlier code minification, instead of the value that had actually just been computed. This has been fixed so the error checks now test the right value.
Before this fix, an error occurring inside a for- or filter-style comprehension could go undetected and be treated as if evaluation had succeeded, potentially producing incorrect results (such as a type mismatch between an iterable and a non-iterable) without surfacing the underlying error.