Skip to content

fix: pass session_id via extra_body in agent.completions.create#147

Merged
spillai merged 1 commit intomainfrom
devin/1769447717-fix-session-id-extra-body
Jan 26, 2026
Merged

fix: pass session_id via extra_body in agent.completions.create#147
spillai merged 1 commit intomainfrom
devin/1769447717-fix-session-id-extra-body

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Updates all agent.completions.create calls in the chat CLI to pass session_id via extra_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

  • Verify the VLM Run API correctly receives session_id when passed via extra_body - I was unable to test this end-to-end
  • Test the chat CLI with --session-id flag in both streaming and non-streaming modes to confirm session tracking still works

Notes

Requested by @spillai

Link to Devin run: https://app.devin.ai/sessions/6b75a6b24f9e41efa81962afa82be60b

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

- 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>
@spillai spillai force-pushed the devin/1769447717-fix-session-id-extra-body branch from 7b7f84a to 20053ac Compare January 26, 2026 18:47
@spillai spillai merged commit d0a7945 into main Jan 26, 2026
4 checks passed
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