Feature Flag Testing

Dan Mosora · Friday Demos · October 9, 2026 · 1:42

Apps with hard-coded Base64 images or large strings now replace them with opaque spans in the AI's context window, keeping a 1MB PNG from consuming tokens while preserving the content for…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Hi everyone, just wanted to quickly share something that was recently released under the feature flag. Um, sometimes we come across applications that contain hard-coded information: either base64 blocks, or large styles, or other massive strings that don't necessarily need to be changed often. So I created this test app, and the special thing is that this image is hardcoded as base64.

  2. So if I go here and check the trace, we'll see a call where the HTML of the application is displayed. Where there would normally be a bunch of tokens of hardcoded base64 text, there is now what I call an "opaque block". It has small Unicode delimiters to avoid conflicts. It has an ID, a hash, and all that stuff.

  3. And yes, that huge image is no longer loading into context. So we're left with just our base 66k tokens, along with any other context I added here. This is usually the context of the model or the definition of tools and so on. Not an almost megabyte PNG image. Well, that's all.