Skip to content

[pull] main from github:main - #223

Merged
pull[bot] merged 4 commits into
Rashworld786:mainfrom
github:main
Aug 3, 2026
Merged

[pull] main from github:main#223
pull[bot] merged 4 commits into
Rashworld786:mainfrom
github:main

Conversation

@pull

@pull pull Bot commented Aug 3, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

rinceyuan and others added 4 commits August 3, 2026 13:56
…ts (#2225)

* fix(python): serialize Pydantic models with mode='json' in tool results

model_dump() defaults to mode='python', which leaves datetime, UUID,
Decimal, Enum and set as native Python objects. json.dumps then fails
on these, and the error is swallowed as a generic tool failure.

Use model_dump(mode='json') so Pydantic converts all fields to
JSON-safe types before serialization.

Closes #2203

* test(python): strengthen Pydantic result coverage

Assert the JSON representation of date and datetime fields, cover set serialization, and fix import ordering for Ruff.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: j-zhangyiyuan <j-zhangyiyuan@microsoft.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds per-session EnableExperimentalMode (enableExperimentalMode /
enable_experimental_mode) to all SDK languages. The flag controls whether
the session enables experimental features.

Semantics are mode-aware and consistent across languages:
- In "empty" mode the SDK sends false unless the caller explicitly sets
  true, so headless integrations are not silently opted into experimental
  behaviour.
- In "copilot-cli" mode the field is omitted from the wire when nil/null/
  None, letting the runtime decide (e.g. based on staff-user flags).

Wire field is isExperimentalMode on both session.create and session.resume.

Changes per language:
- Rust:  enable_experimental_mode on SessionConfig / ResumeSessionConfig,
         experimental_mode_for_mode helper in mode.rs, 6 new unit tests
- .NET:  EnableExperimentalMode on SessionOptions / SessionResumeOptions,
         mode-aware default in Client.CreateSessionAsync/ResumeSessionAsync
- Node:  enableExperimentalMode on SessionOptions / SessionResumeOptions
- Python: enable_experimental_mode param on create_session/resume_session,
          _enable_experimental_mode_default helper in _mode.py
- Go:    EnableExperimentalMode on SessionConfig / ResumeSessionConfig,
         empty-mode default in mode_empty.go
- Java:  enableExperimentalMode on SessionConfig / ResumeSessionConfig,
         experimentalModeForMode helper in SessionRequestBuilder

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bumps the npm_and_yarn group with 1 update in the /scripts/docs-validation directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 5.0.6 to 5.0.9
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v5.0.6...v5.0.9)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 5.0.9
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ete (#2212)

The Node.js extension-authoring docs listed a `toolName` field on the
`tool.execution_complete` session event, in two event-field reference
tables and three handler code-comments. That event has no `toolName`:
`ToolExecutionCompleteData` declares `required: ["toolCallId","success"]`
with `additionalProperties: false` and no `toolName` property, so reading
`event.data.toolName` in a completion handler is always undefined.
`toolName` is emitted on `tool.execution_start`, and a completion is
correlated to its start by `toolCallId`.

Remove the field from the two `tool.execution_complete` rows and the three
completion-handler comments. It stays on the `tool.execution_start` rows.
The repository's shared event reference in docs/features/streaming-events.md
already documents the event without it.

Co-authored-by: examon <examon@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Aug 3, 2026
@pull pull Bot added the ⤵️ pull label Aug 3, 2026
@pull
pull Bot merged commit 1b9ac07 into Rashworld786:main Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants