diff --git a/packages/core/test/process/process.test.ts b/packages/core/test/process/process.test.ts index 49409ff9dd..f6a52b7a68 100644 --- a/packages/core/test/process/process.test.ts +++ b/packages/core/test/process/process.test.ts @@ -101,10 +101,7 @@ describe("AppProcess", () => { "truncates stderr when maxErrorBytes is set", Effect.gen(function* () { const svc = yield* AppProcess.Service - const result = yield* svc.run( - cmd("-e", "process.stderr.write('0123456789')"), - { maxErrorBytes: 5 }, - ) + const result = yield* svc.run(cmd("-e", "process.stderr.write('0123456789')"), { maxErrorBytes: 5 }) expect(result.exitCode).toBe(0) expect(result.stdoutTruncated).toBe(false) expect(result.stderrTruncated).toBe(true) diff --git a/packages/opencode/src/patch/index.ts b/packages/opencode/src/patch/index.ts index 48c616d9b9..42b26fe963 100644 --- a/packages/opencode/src/patch/index.ts +++ b/packages/opencode/src/patch/index.ts @@ -633,11 +633,13 @@ export const maybeParseApplyPatchVerified = Effect.fn("Patch.maybeParseApplyPatc case "update": { const updatePath = path.resolve(effectiveCwd, hunk.path) - const originalText = yield* fs.readFileString(updatePath).pipe( - Effect.catch((cause) => - Effect.succeed(new Error(`Failed to read file ${updatePath}: ${cause}`, { cause })), - ), - ) + const originalText = yield* fs + .readFileString(updatePath) + .pipe( + Effect.catch((cause) => + Effect.succeed(new Error(`Failed to read file ${updatePath}: ${cause}`, { cause })), + ), + ) if (originalText instanceof Error) { return { type: MaybeApplyPatchVerified.CorrectnessError, diff --git a/packages/opencode/src/tool/apply_patch.ts b/packages/opencode/src/tool/apply_patch.ts index c5d9c57dda..84e84cc396 100644 --- a/packages/opencode/src/tool/apply_patch.ts +++ b/packages/opencode/src/tool/apply_patch.ts @@ -119,7 +119,11 @@ export const ApplyPatchTool = Tool.define( // Apply the update chunks to get new content try { - const fileUpdate = Patch.deriveNewContentsFromChunks(filePath, hunk.chunks, Bom.join(source.text, source.bom)) + const fileUpdate = Patch.deriveNewContentsFromChunks( + filePath, + hunk.chunks, + Bom.join(source.text, source.bom), + ) newContent = fileUpdate.content bom = fileUpdate.bom } catch (error) {