Skip to content

Opusplan[1m] and Clear screen patches fail to find their patterns on Claude Code 2.1.227 (tweakcc 4.3.2) #942

Description

@rpickmans

Environment

  • tweakcc 4.3.2 (npm, npx tweakcc@4.3.2 --apply --yes)
  • Claude Code 2.1.227 (@anthropic-ai/claude-code via npm, native binary, macOS arm64 / Darwin 25.6)

Both patches applied cleanly on CC 2.1.226 with this same tweakcc 4.3.2. They broke after upgrading to CC 2.1.227 (released 2026-08-10).

Failing patches + verbatim errors

Opusplan[1m] support:

patch: opusplan1m: patchModelSelectorOptions: failed to find model selector pattern
patch: opusplan1m: failed to apply model selector options patch

Clear screen command:

patch: findSlashCommandListEndPosition: failed to find arrayStartPattern
patch: writeSlashCommandDefinition: failed to find slash command array end position

Likely cause (correlating with the CC 2.1.227 changelog)

  • "Improved slash-command menu: blue now marks only the selected row, matched characters are bolded instead of recolored, and emoji or accented names keep their glyphs" — plausibly restructured the slash-command array that findSlashCommandListEndPosition anchors to.
  • "Fixed feature flags being evaluated without the user's subscription tier when a session started with an expired login token" — a change in model-gating/selection logic, near where patchModelSelectorOptions matches.

Notes

  • Long-standing pattern misses on my setup (toolsets: computeToolsFilter, mcpStartup: MCP_SERVER_CONNECTION_BATCH_SIZE, agentsMd: fs expression) predate 2.1.227 and are not part of this report.
  • All other patches, including all system-prompt patches, apply fine on 2.1.227 and the patched binary runs cleanly (claude --version reports both 2.1.227 (Claude Code) and 4.3.2 (tweakcc)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions