Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
This looks correct. I ran the #64687 ACP stdio reproduction from source against both the base and this branch, using a mock model endpoint. On the base, a blob without mimeType was silently dropped. With this change, the model receives data:application/pdf;base64,…: Core detects the type from the bytes, so the application/octet-stream placeholder never reaches the provider. test/acp/prompt.test.ts passes (14), the new test fails on the base, and tsc -b passes.
Public API is unchanged: this only changes the internal ACP content conversion.
No blocking concerns.
3 of 6 tasks
This branch has not been deployed
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.
Issue for this PR
Closes #64687
Type of change
What does this PR do?
Keep ACP embedded blobs when their optional
mimeTypeis omitted. Useapplication/octet-streamwhen constructing the data URL; Core already detects the actual MIME from the bytes. Existing data URLs and explicit MIME types are preserved.This is a bug fix and needs no feature flag.
How did you verify your code works?
packages/cli:bun test test/acp/prompt.test.ts --timeout 30000(14 pass),bun typecheck, andbun run typecheck:tscpass. Rootbun run checkpasses (35 typecheck tasks).service.test.ts→unresponsive managed port occupancy reports a bounded conflict(expected a PID diagnostic, received “another process”). The identical test fails on unmodifieda61f5ea834on this macOS host. Tests were run with proxy variables unset.Screenshots / recordings
ACP content conversion only; no visual change.
Checklist