Skip to content

fix(model): restore session_id in _SDK_ONLY_PARAMS dropped by merge - #1020

Merged
hadi-aix merged 1 commit into
mainfrom
fix/session-id-sdk-only-params-main
Jul 31, 2026
Merged

fix(model): restore session_id in _SDK_ONLY_PARAMS dropped by merge#1020
hadi-aix merged 1 commit into
mainfrom
fix/session-id-sdk-only-params-main

Conversation

@aix-ahmet

Copy link
Copy Markdown
Collaborator

Summary

  • Restores "session_id" in Model._SDK_ONLY_PARAMS, which was accidentally dropped by a merge-conflict resolution, breaking pre-commit run --all-files on main (1 unit test failure).

Root cause

  • feat(run): propagate the run session as an x-session-id header (ENG-3473) #1013 (9acccf46, ENG-3473) added session_id to Model._SDK_ONLY_PARAMS so it is emitted only as the x-session-id header and never leaks into build_run_payload / build_run_url output.
  • The merge of test into development (dc8c4c2f) resolved the frozenset conflict in favor of the older one-line test-branch version, silently dropping the session_id entry while keeping the feature's tests and comments. A mechanical re-run of that merge confirms this was the only hunk resolved against the dev side — no other regressions.
  • The regressed state reached main via Merge to production 20260730 #1016.

Impact is limited to direct build_run_payload(...)/build_run_url(...) calls: the run() path still strips session_id via _RUN_CONTROL_KEYS.

Same fix, same commit cherry-picked: development already has it (9cba90d3), test PR opened separately.

Test plan

  • tests/unit/v2/test_model.py::TestModelSessionHeader::test_session_id_excluded_from_build_run_payload passes (was failing)
  • Full unit suite: 1422 passed, 4 skipped

🤖 Generated with Claude Code

Commit 9acccf4 (#1013) added session_id to Model._SDK_ONLY_PARAMS so it
never leaks into build_run_payload / build_run_url output, but the merge
of branch 'test' into development (dc8c4c2) resolved that hunk in favor
of the older frozenset, dropping the entry while keeping the feature's
tests and comments. Restore it to fix
test_session_id_excluded_from_build_run_payload on main and development.
@hadi-aix
hadi-aix merged commit 740250a into main Jul 31, 2026
1 check 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.

2 participants