Skip to content

fix(agent): shrink anthropic-native image history - #51096

Merged
OutThisLife merged 1 commit into
mainfrom
bb/desktop-oversized-image-replay
Jun 22, 2026
Merged

OutThisLife merged 1 commit into
mainfrom
bb/desktop-oversized-image-replay

Conversation

@OutThisLife

Copy link
Copy Markdown

Summary

  • Extends image-too-large retry recovery to Anthropic-native image.source.base64 blocks, not only OpenAI-style image_url parts.
  • Preserves the existing shrink gates for byte and dimension limits, including the many-image 2000px provider cap.
  • Adds regression coverage for translated Anthropic base64 image history replay.

Test plan

  • scripts/run_tests.sh tests/run_agent/test_image_shrink_recovery.py tests/run_agent/test_image_rejection_fallback.py

Retry image-size rejections by rewriting Anthropic base64 image source blocks, not just OpenAI-style image_url parts.
@github-actions

Copy link
Copy Markdown

🔎 Lint report: bb/desktop-oversized-image-replay vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 11461 on HEAD, 11461 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 6038 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@OutThisLife
OutThisLife enabled auto-merge June 22, 2026 23:24
@OutThisLife
OutThisLife merged commit 9bacd7d into main Jun 22, 2026
26 checks passed
@OutThisLife
OutThisLife deleted the bb/desktop-oversized-image-replay branch June 22, 2026 23:30
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
…ersized-image-replay

fix(agent): shrink anthropic-native image history
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