Skip to content

fix(runtime): recover hydrated image context overflow - #3412

Open
Sun-GLiang wants to merge 9 commits into
apache:mainfrom
Sun-GLiang:fix/3372-hydrated-image-budget
Open

fix(runtime): recover hydrated image context overflow#3412
Sun-GLiang wants to merge 9 commits into
apache:mainfrom
Sun-GLiang:fix/3372-hydrated-image-budget

Conversation

@Sun-GLiang

@Sun-GLiang Sun-GLiang commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • omit hydrated historical image tool results only after a provider context overflow, then preserve the exact omission across later requests
  • keep the recovery to one shared retry and prevent the generic retry path from looping context overflow
  • show dedicated Desktop guidance when the shortened request still exceeds the context window

Fixes #3372

Verification

  • npm test
  • npm run lint
  • npm run format:check
  • npm run build
  • npm run typecheck
  • npx knip --workspace apps/desktop
  • npx knip --workspace packages/ui
  • git diff --check

Visual evidence

Before — generic direct-retry guidance:

Context overflow before: generic direct-retry guidance

After — dedicated context-overflow guidance:

Context overflow after: reduce attachments or start a new task

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex implemented the Runtime recovery, Desktop presentation, tests, documentation, and review fixes.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@Sun-GLiang
Sun-GLiang marked this pull request as ready for review August 21, 2026 10:03
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.

fix(runtime): context budget measures stored events, so hydrated image payloads count as zero

1 participant