fix: pass session_id via extra_body in agent.completions.create#147
Merged
fix: pass session_id via extra_body in agent.completions.create#147
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
spillai
approved these changes
Jan 26, 2026
- Update all agent.completions.create calls to use extra_body={'session_id': session_id}
instead of passing session_id as a direct kwarg
- Bump version to 0.5.2
Co-Authored-By: Sudeep Pillai <sudeep.pillai@gmail.com>
7b7f84a to
20053ac
Compare
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.
Summary
Updates all
agent.completions.createcalls in the chat CLI to passsession_idviaextra_body={"session_id": session_id}instead of as a direct kwarg. This change affects 3 call sites: non-streaming with status, non-streaming JSON output, and streaming mode.Also bumps version to 0.5.2.
Review & Testing Checklist for Human
session_idwhen passed viaextra_body- I was unable to test this end-to-end--session-idflag in both streaming and non-streaming modes to confirm session tracking still worksNotes
Requested by @spillai
Link to Devin run: https://app.devin.ai/sessions/6b75a6b24f9e41efa81962afa82be60b