-
Notifications
You must be signed in to change notification settings - Fork 8
fix: persist user input items to state.messages across callModel invocations #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
39b07b1
fix: persist user input items to state.messages across callModel invo…
devin-ai-integration[bot] d1e4831
chore: remove changeset for user input persistence fix
Cybourgeoisie b6ab887
fix: defer user input persistence to after successful API response
Cybourgeoisie 996cbc9
style: fix biome formatting
Cybourgeoisie c930772
chore: update @openrouter/sdk lockfile to 0.12.79, rename OutputInput…
Cybourgeoisie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[blocker]
OutputInputImageremoved from public re-exports without a backward-compat alias or changeset — this is a silent breaking change for consumers.Details
Why:
OutputInputImagewas deliberately added as a public re-export in PR #20 so consumers could use it without a direct SDK dependency (CHANGELOG: "Re-exportEasyInputMessageContentInputImage,OutputInputImage, andOpenAIResponsesToolChoiceUnionfrom the SDK models so consumers can use these types without a direct SDK dependency."). This PR removes it (replaced byOutputImage) with no backward-compat shim and no changeset. Any downstream package doingimport type { OutputInputImage } from 'the agent package'now gets a compile error. The changeset initially added to this PR was removed in commit d1e4831 without justification.Fix (preferred — zero version bump):
Alternative: restore a changeset with a minor bump and document the removal as a breaking change.
Prompt for agents
In
packages/agent/src/index.ts, addOutputImage as OutputInputImageto the re-export list alongsideOutputImageto preserve the previously-announced public type alias, then verifybun run buildandbun testpass.Reviewed at
c930772