Commit 012f981
Regenerate clearContext bindings for the tightened runtime contract
Mirrors github/copilot-agent-runtime#14002 after review:
- `HistoryClearContextRequest.prompt` is now required. A cleared window
holding only system and developer messages is not a conversation a model
can answer, so every clear seeds the window it creates.
- `HistoryClearContextResult` loses the `cleared` discriminator. The RPC now
rejects the cases it was meant to describe - a remote session, or a call
made while no tool call is in flight - so there is one error channel
instead of a success flag plus an error channel.
- `ContextClearedData.prependMessages` is gone. It had no producer, and it
was a permanent commitment on a durable event for a code path nothing
exercised.
Regenerated with `scripts/codegen`; only the clear-context hunks are taken,
so unrelated schema drift stays out of this PR.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1ca9787 commit 012f981
4 files changed
Lines changed: 2 additions & 101 deletions
File tree
- dotnet/src/Generated
- java/src/generated/java/com/github/copilot/generated
- nodejs/src/generated
- rust/src/generated
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
262 | | - | |
263 | 261 | | |
264 | 262 | | |
265 | 263 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
632 | 630 | | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
636 | | - | |
637 | 633 | | |
638 | 634 | | |
639 | 635 | | |
| |||
5022 | 5018 | | |
5023 | 5019 | | |
5024 | 5020 | | |
5025 | | - | |
5026 | | - | |
5027 | | - | |
5028 | | - | |
5029 | | - | |
5030 | | - | |
5031 | | - | |
5032 | | - | |
5033 | | - | |
5034 | | - | |
5035 | | - | |
5036 | | - | |
5037 | | - | |
5038 | | - | |
5039 | 5021 | | |
5040 | 5022 | | |
5041 | 5023 | | |
| |||
0 commit comments