Skip to content

v2.4.2 — /dream cache injection workaround & Bun SEA code signing

Choose a tag to compare

@github-actions github-actions released this 11 Apr 08:51
· 369 commits to main since this release

What's New

Documents why binary patching fails and provides a working cache injection workaround for force-activating /dream.

scripts/patch-dream.sh

New utility that injects tengu_kairos_dream=true into the local GrowthBook cache with a 30-second filesystem watcher that survives the SDK's cache writeback during startup.

bash scripts/patch-dream.sh        # inject + start watcher, then launch claude
bash scripts/patch-dream.sh --check
bash scripts/patch-dream.sh --restore

L62 — Lazy isEnabled dispatch

  • Commands are always registered; isEnabled is checked at dispatch time via Ve(), not at startup
  • Flag changes take effect immediately without restart

L68 — GrowthBook deep mechanics

  • Bun SEA code signing: macOS SIGKILLs modified binaries — binary patching is not viable
  • Lazy SDK init: wrapped in memoized thunk, fires on first flag access
  • Destructive cache writeback: yQq() replaces entire cachedGrowthBookFeatures with Object.fromEntries(Nb), wiping non-server keys
  • Flag absence vs explicit false: tengu_kairos_dream is absent (not false) from server response — Nb never contains it, cache fallback IS consulted but gets wiped by writeback
  • Cache injection workaround: inject + poll to survive the single writeback event

Install

claude plugin marketplace add https://github.com/yaniv-golan/claude-code-internals
claude plugin install claude-code-internals@claude-code-internals-marketplace

Full Changelog: v2.4.1...v2.4.2