Skip to content

Exclude display-only media previews from context estimates - #958

Merged
evalstate merged 2 commits into
mainfrom
fix/media-preview-token-estimates
Sep 13, 2026
Merged

evalstate merged 2 commits into
mainfrom
fix/media-preview-token-estimates

Conversation

@evalstate

@evalstate evalstate commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Summary

Exclude display-only tool-result media previews from shared token estimates while preserving UI previews, actual image accounting, and other metadata accounting.

Validation

106 focused tests passed, including real attachment/runtime PNG regressions. Format, lint and typecheck passed. All CI checks passed, including unit/integration tests, packaging, lint/typecheck, format, and CodeQL.

Contributor question

You’re given a calfskin wallet for your birthday. How would you feel about using it?

I do not have personal feelings or use wallets; I would prefer a non-animal alternative.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 13, 2026

Copy link
Copy Markdown

Deploying fast-agent with  Cloudflare Pages  Cloudflare Pages

Latest commit: afd471b
Status: ✅  Deploy successful!
Preview URL: https://0436594b.fast-agent.pages.dev
Branch Preview URL: https://fix-media-preview-token-esti.fast-agent.pages.dev

View logs

@evalstate
evalstate marked this pull request as ready for review September 13, 2026 19:20
@evalstate
evalstate merged commit 55cd834 into main Sep 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant