Skip to content

Commit 5fa5d87

Browse files
chore: generate
1 parent 805af01 commit 5fa5d87

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/opencode/test/server/session-diff-missing-patch.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ describe("session diff with missing patch (#26574)", () => {
4545
directory: tmp.path,
4646
fn: async () => {
4747
const session = await Effect.runPromise(
48-
Effect.provide(Session.Service.use((s) => s.create({ title: "missing-patch" })), Session.defaultLayer),
48+
Effect.provide(
49+
Session.Service.use((s) => s.create({ title: "missing-patch" })),
50+
Session.defaultLayer,
51+
),
4952
)
5053

5154
// Mimic legacy/imported on-disk shape: a diff entry with no
@@ -61,10 +64,9 @@ describe("session diff with missing patch (#26574)", () => {
6164
)
6265

6366
const headers = { "x-opencode-directory": tmp.path }
64-
const response = await Server.Default().app.request(
65-
pathFor(SessionPaths.diff, { sessionID: session.id }),
66-
{ headers },
67-
)
67+
const response = await Server.Default().app.request(pathFor(SessionPaths.diff, { sessionID: session.id }), {
68+
headers,
69+
})
6870
expect(response.status).toBe(200)
6971
const body = (await response.json()) as Array<{ file: string; patch?: string; additions: number }>
7072
expect(body).toHaveLength(1)

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ export type VcsFileStatus = {
15201520

15211521
export type VcsFileDiff = {
15221522
file: string
1523-
patch: string
1523+
patch?: string
15241524
additions: number
15251525
deletions: number
15261526
status?: "added" | "deleted" | "modified"

packages/sdk/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13039,7 +13039,7 @@
1303913039
"enum": ["added", "deleted", "modified"]
1304013040
}
1304113041
},
13042-
"required": ["file", "patch", "additions", "deletions"],
13042+
"required": ["file", "additions", "deletions"],
1304313043
"additionalProperties": false
1304413044
},
1304513045
"VcsApplyError": {

0 commit comments

Comments
 (0)