Skip to content

Commit cb3c273

Browse files
Fix SDK CI regressions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5842c74 commit cb3c273

7 files changed

Lines changed: 14 additions & 151 deletions

File tree

docs/features/image-input.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ public static class ImageInputExample
178178
await session.SendAsync(new MessageOptions
179179
{
180180
Prompt = "Describe what you see in this image",
181-
Attachments = new List<UserMessageDataAttachmentsItem>
181+
Attachments = new List<UserMessageAttachment>
182182
{
183-
new UserMessageDataAttachmentsItemFile
183+
new UserMessageAttachmentFile
184184
{
185185
Path = "/absolute/path/to/screenshot.png",
186186
DisplayName = "screenshot.png",
@@ -206,9 +206,9 @@ await using var session = await client.CreateSessionAsync(new SessionConfig
206206
await session.SendAsync(new MessageOptions
207207
{
208208
Prompt = "Describe what you see in this image",
209-
Attachments = new List<UserMessageDataAttachmentsItem>
209+
Attachments = new List<UserMessageAttachment>
210210
{
211-
new UserMessageDataAttachmentsItemFile
211+
new UserMessageAttachmentFile
212212
{
213213
Path = "/absolute/path/to/screenshot.png",
214214
DisplayName = "screenshot.png",
@@ -396,9 +396,9 @@ public static class BlobAttachmentExample
396396
await session.SendAsync(new MessageOptions
397397
{
398398
Prompt = "Describe what you see in this image",
399-
Attachments = new List<UserMessageDataAttachmentsItem>
399+
Attachments = new List<UserMessageAttachment>
400400
{
401-
new UserMessageDataAttachmentsItemBlob
401+
new UserMessageAttachmentBlob
402402
{
403403
Data = base64ImageData,
404404
MimeType = "image/png",
@@ -415,9 +415,9 @@ public static class BlobAttachmentExample
415415
await session.SendAsync(new MessageOptions
416416
{
417417
Prompt = "Describe what you see in this image",
418-
Attachments = new List<UserMessageDataAttachmentsItem>
418+
Attachments = new List<UserMessageAttachment>
419419
{
420-
new UserMessageDataAttachmentsItemBlob
420+
new UserMessageAttachmentBlob
421421
{
422422
Data = base64ImageData,
423423
MimeType = "image/png",

go/session.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,9 +1224,9 @@ func (s *Session) SetModel(ctx context.Context, model string, opts *SetModelOpti
12241224

12251225
// LogOptions configures optional parameters for [Session.Log].
12261226
type LogOptions struct {
1227-
// Level sets the log severity. Valid values are [rpc.SessionLogLevelInfo] (default),
1228-
// [rpc.SessionLogLevelWarning], and [rpc.SessionLogLevelError].
1229-
Level rpc.SessionLogLevel
1227+
// Level sets the log severity. Valid values are [rpc.SessionLogLevelInfo] (default),
1228+
// [rpc.SessionLogLevelWarning], and [rpc.SessionLogLevelError].
1229+
Level rpc.SessionLogLevel
12301230
// Ephemeral marks the message as transient so it is not persisted
12311231
// to the session event log on disk. When nil the server decides the
12321232
// default; set to a non-nil value to explicitly control persistence.

nodejs/src/types.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,7 @@ export interface PermissionRequest {
651651

652652
import type { PermissionDecisionRequest } from "./generated/rpc.js";
653653

654-
export type PermissionRequestResult =
655-
| PermissionDecisionRequest["result"]
656-
| { kind: "no-result" };
654+
export type PermissionRequestResult = PermissionDecisionRequest["result"] | { kind: "no-result" };
657655

658656
export type PermissionHandler = (
659657
request: PermissionRequest,

python/copilot/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
PermissionDecision,
3232
PermissionDecisionRequest,
3333
RequestedSchemaType,
34-
SessionLogLevel,
3534
SessionFsHandler,
35+
SessionLogLevel,
3636
SessionRpc,
3737
ToolCallResult,
3838
ToolsHandlePendingToolCallRequest,

test/scenarios/prompts/attachments/csharp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
Prompt = "What languages are listed in the attached file?",
2525
Attachments =
2626
[
27-
new UserMessageDataAttachmentsItemFile { Path = sampleFile, DisplayName = "sample-data.txt" },
27+
new UserMessageAttachmentFile { Path = sampleFile, DisplayName = "sample-data.txt" },
2828
],
2929
});
3030

test/snapshots/agent_and_compact_rpc/should_compact_session_history_after_messages.yaml

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -8,73 +8,3 @@ conversations:
88
content: What is 2+2?
99
- role: assistant
1010
content: 2+2 = 4
11-
- role: user
12-
content: ${compaction_prompt}
13-
- role: assistant
14-
content: >-
15-
<overview>
16-
17-
The user asked a simple arithmetic question ("What is 2+2?") which was answered directly (4). No technical
18-
work, code changes, or file modifications were requested or performed. This appears to be a minimal test or
19-
verification exchange before any substantive work begins.
20-
21-
</overview>
22-
23-
24-
<history>
25-
26-
1. The user asked "What is 2+2?"
27-
- Provided the answer: 4
28-
- No follow-up actions were needed
29-
</history>
30-
31-
32-
<work_done>
33-
34-
No work has been performed. No files were created, modified, or deleted. This was purely an informational
35-
exchange with no code changes or system modifications.
36-
37-
38-
Current state:
39-
40-
- Working directory: ${workdir}
41-
42-
- Not a git repository
43-
44-
- No files have been accessed or modified
45-
46-
- No todos or plan have been created
47-
48-
</work_done>
49-
50-
51-
<technical_details>
52-
53-
- Environment is Windows (Windows_NT), requiring backslash path separators
54-
55-
- Session workspace available for artifacts (e.g., plan.md)
56-
57-
- SQL database available but not yet initialized (no tables created)
58-
59-
- Available tools: git, curl, gh
60-
61-
- No technical work has been performed yet, so no technical details have been discovered
62-
63-
</technical_details>
64-
65-
66-
<important_files>
67-
68-
No files have been accessed or modified during this conversation.
69-
70-
</important_files>
71-
72-
73-
<next_steps>
74-
75-
No work is currently in progress. Awaiting user's next request for any substantive task.
76-
77-
</next_steps>
78-
79-
80-
<checkpoint_title>Simple arithmetic question answered</checkpoint_title>

test/snapshots/session_fs/should_succeed_with_compaction_while_using_sessionfs.yaml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,3 @@ conversations:
88
content: What is 2+2?
99
- role: assistant
1010
content: 2 + 2 = 4
11-
- role: user
12-
content: ${compaction_prompt}
13-
- role: assistant
14-
content: >-
15-
<overview>
16-
17-
The user asked a simple arithmetic question ("What is 2+2?"). This was a minimal interaction with no technical
18-
work, coding tasks, or file modifications requested or performed. The conversation consisted solely of
19-
providing a basic mathematical answer.
20-
21-
</overview>
22-
23-
24-
<history>
25-
26-
1. The user asked "What is 2+2?"
27-
- Provided the answer: 4
28-
- No further requests or actions were needed
29-
30-
2. The user requested a checkpoint summary
31-
- Creating this summary to preserve conversation context before history compaction
32-
</history>
33-
34-
35-
<work_done>
36-
37-
No files were created, modified, or deleted. No technical work was performed. The conversation consisted only
38-
of answering a simple arithmetic question.
39-
40-
41-
Current state:
42-
43-
- No active tasks
44-
45-
- No code changes
46-
47-
- No systems or processes started
48-
49-
</work_done>
50-
51-
52-
<technical_details>
53-
54-
No technical work was performed during this conversation. No technical decisions, issues, or discoveries were
55-
made.
56-
57-
</technical_details>
58-
59-
60-
<important_files>
61-
62-
No files are relevant to this conversation, as no technical work was performed.
63-
64-
</important_files>
65-
66-
67-
<next_steps>
68-
69-
No pending work or next steps. The user's request (answering "2+2") has been completed. Awaiting further
70-
instructions from the user.
71-
72-
</next_steps>
73-
74-
75-
<checkpoint_title>Simple arithmetic question answered</checkpoint_title>

0 commit comments

Comments
 (0)