Repository navigation
feat(sessions): send pasted and attached images, drop tool screenshots - #683
Merged
Merged
Conversation
Base Code now imports the images a user pasted (base44-dev/apper#35805). Before uploading, sessions import drops images the agent's tools produced (they are most of a big session's size and the server never imports them) and adds an image the user attached as a file path, as apps that wrap Claude Code or Codex do, once the agent opened it. The size limit goes from 25 to 50 MB to match the server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.2.5-pr.683.39ac9acPrefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.2.5-pr.683.39ac9ac"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.2.5-pr.683.39ac9ac"
}
}
Preview published to npm registry — try new features instantly! |
netanelgilad
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Description
base44 sessions importnow sends the images a person actually put into a session and strips the ones the agent's own tools produced. Screenshots andReads of PNGs are dropped before upload — Base Code never imports them and they account for most of a large session's size — while an image attached as a file path (the way wrappers around Claude Code and Codex pass them) is inlined into the user's message as if it had been pasted, but only once a tool actually opened that path. The pre-upload size ceiling moves from 25 MB to 50 MB now that tool-produced image data no longer inflates the payload.Related Issue
None
Type of Change
Changes Made
Testing
Checklist
Additional Notes
Two integration tests cover the new behaviour in `packages/cli/tests/cli/sessions_import.spec.ts`: one asserts a pasted image survives upload while a `Read`-produced image is gone (and the `tool_result` block itself is kept), the other asserts a Codex rollout inlines the attached PNG that `view_image` opened and leaves the merely-listed one out. The existing size-limit test was updated to the new 50 MB threshold. The test suite was not executed in this environment.
🤖 Generated by Claude | 2026-10-29 09:59 UTC | ac5c3c2