Skip to content

v0.8.2 — read through the helper

Latest

Choose a tag to compare

@anfreire anfreire released this 01 Dec 19:36
· 2 commits to main since this release

Claude Code 2.1.333 moved the settings layers that the per-model effort cap reads into a helper function, because a second reader, a side-query precheck that asks whether any cap below max is set, now reads them too. Custom models followed a value through names, ternaries and returns but stopped at a call, so its effort-cap step found the reader's loop and both setting names but no list of layers. The whole patch stopped applying, endpoint routing included, and doctor failed on 2.1.333 (#11). This release reads through a helper the same way it already read through a name.

The fix

A call that passes no arguments now stands for whatever its function can return, and a function declaration counts as a place a name is written, the same as a variable declaration. A call that passes arguments is still a value of its own, because two patches identify a call by its arguments. The fix is in the shared value reader rather than in effort-cap, so every patch now reads through an extracted helper. The baked layer is added where the list is built, so the precheck sees it too.

Compatibility

Transparent. Upgrade and re-apply (patch-cc apply, or the menu); the saved selection replays unchanged. On 2.1.333, custom models, their routing and the /effort cap apply again. doctor reports every earlier build exactly as 0.8.1 did.

Validated

  • GitHub CI passes on Python 3.11, 3.12, 3.13 and 3.14 for the release commit.
  • patch-cc doctor over all 76 held builds, 2.1.246 → 2.1.333: every patch matches and every baked binary boots. Diffed against a sweep of 0.8.1, only 2.1.333 moves: custom-models goes from broken at 13/13 to applied at 14/14, and doctor passes where it failed.
  • On a rewrite of 2.1.332 with its layer list moved into a helper, the way 2.1.333 did it, 0.8.1 breaks the effort cap, goes partial on the Task tool's model enum, and loses the registry table, an effortLevel schema and the Explore agent without a red mark. 0.8.2 reads all five as on the unmodified build.
  • Executed under Node, the patched 2.1.333 cap reader caps a custom model at its declared top level, leaves native models uncapped, and lets a lower user cap win. The precheck sees the cap.
  • The 0.8.2 wheel and sdist build, pass Twine metadata checks, and install from PyPI; the installed doctor passes on 2.1.333.
uvx --no-cache patch-cc        # or: uv tool install patch-cc && patch-cc