Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Re-enable SDK image forwarding test (#5934)

pakrym-oaibf35105af684
diff --git a/sdk/typescript/samples/helpers.ts b/sdk/typescript/samples/helpers.ts
index c9d851c8ae..c4643091c7 100644
--- a/sdk/typescript/samples/helpers.ts
+++ b/sdk/typescript/samples/helpers.ts
@@ -1,6 +1,8 @@
import path from "node:path";
export function codexPathOverride() {
- return process.env.CODEX_EXECUTABLE ??
- path.join(process.cwd(), "..", "..", "codex-rs", "target", "debug", "codex");
+ return (
+ process.env.CODEX_EXECUTABLE ??
+ path.join(process.cwd(), "..", "..", "codex-rs", "target", "debug", "codex")
+ );
}
diff --git a/sdk/typescript/src/items.ts b/sdk/typescript/src/items.ts
index df82893480..182878f55b 100644
--- a/sdk/typescript/src/items.ts
+++ b/sdk/typescript/src/items.ts
@@ -115,7 +115,6 @@ export type TodoListItem = {
items: TodoItem[];
};
-
/** Canonical union of thread items and their type-specific payloads. */
export type ThreadItem =
| AgentMessageItem
diff --git a/sdk/typescript/src/outputSchemaFile.ts b/sdk/typescript/src/outputSchemaFile.ts
index 55d2c41526..13adb4c721 100644
--- a/sdk/typescript/src/outputSchemaFile.ts
+++ b/sdk/typescript/src/outputSchemaFile.ts
@@ -21,8 +21,7 @@ export async function createOutputSchemaFile(schema: unknown): Promise<OutputSch
const cleanup = async () => {
try {
await fs.rm(schemaDir, { recursive: true, force: true });
- }
- catch {
+ } catch {
// suppress
}
};
diff --git a/sdk/typescript/tests/run.test.ts b/sdk/typescript/tests/run.test.ts
index a8a9c7fbe8..f495b1e6ec 100644
--- a/sdk/typescript/tests/run.test.ts
+++ b/sdk/typescript/tests/run.test.ts
@@ -3,7 +3,7 @@ import os from "node:os";
import path from "node:path";
import { codexExecSpy } from "./codexExecSpy";
-import { describe, expect, it, xit } from "@jest/globals";
+import { describe, expect, it } from "@jest/globals";
import { Codex } from "../src/codex";
@@ -308,8 +308,7 @@ describe("Codex", () => {
await close();
}
});
- // TODO(pakrym): unskip the test
- xit("forwards images to exec", async () => {
+ it("forwards images to exec", async () => {
const { url, close } = await startResponsesTestProxy({
statusCode: 200,
responseBodies: [