Skip to content

Commit e85ad90

Browse files
Drop the hand-written changelog entry
The changelog is generated at release time, so an entry added by hand in a feature PR does not fit the file's convention. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5ece6b29-8b10-47aa-ab17-b64c47f5fdcd
1 parent 343aadd commit e85ad90

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,6 @@ var session = await client.CreateSessionAsync(new SessionConfig
4242
});
4343
```
4444

45-
### Fix: Agent Factories types and behavior now match the wire contract
46-
47-
The `@experimental` Agent Factories surface described several things the runtime does not do, and the TypeScript generator was the root cause. The schema marks an opaque value that travels as JSON with `x-opaque-json`, and one that never serializes with `x-opaque-in-process`. The generator read neither marker, so both kinds of value rendered as an object index signature.
48-
49-
`FactoryRunResult.result` and factory arguments are now `JsonValue`, so an array, a string, a number, or `null` fits the type the runtime already sent. `ctx.agent()` gains `agent`, `reasoningEffort`, and `contextTier`, which the SDK previously dropped before sending.
50-
51-
`FactoryResumeErrorCode` now names the eight codes the runtime raises before a resumed run starts. `reapproval_declined` and `no_approval_provider` are removed, because no runtime path raises them. `factory_already_running`, `factory_limits_invalid`, `factory_session_disposed`, `factory_storage_unavailable`, and `factory_storage_corrupt` are added.
52-
53-
A factory body can no longer start a second top-level run. `factory.run` and `factory.resume` are refused while a factory body runs on the same call path, through any session reference the body reaches. A run started elsewhere in the extension is unaffected. A background progress-flush error no longer turns a completed run into an errored run.
54-
55-
```ts
56-
const run = await session.factory.run("collect-findings");
57-
if (run.status === "completed" && Array.isArray(run.result)) {
58-
for (const finding of run.result) {
59-
console.log(finding);
60-
}
61-
}
62-
```
63-
64-
Correcting the two markers also retypes declarations outside the factory surface. `CanvasJsonSchema`, `CanvasActionInvokeResult`, `ElicitationCompletedContent`, and `CustomNotificationPayload` change from interfaces to type aliases, and `ElicitationCompletedContent` becomes optional. `ToolTelemetry` narrows its inner record to `Record<string, JsonValue>`, which is what the wire accepts.
65-
6645
## [v1.0.7](https://github.com/github/copilot-sdk/releases/tag/v1.0.7) (2026-07-16)
6746

6847
### Feature: in-process (FFI) transport

0 commit comments

Comments
 (0)