Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/codex-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ jobs:
npm run generate-types
git add package.json package-lock.json src/app-server
git commit -m "Update codex to ${{ env.VERSION }}"

- name: Finalize update with Codex Action (placeholder prompt)
uses: openai/codex-action@v1
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
codex-version: ${{ env.VERSION }}
allow-bots: true
prompt: "Finalize the update using codex-update-compat skill. Commit the changes."

- name: Push branch updates
run: |
git push origin "${{ env.BRANCH }}"

- name: Generate GitHub App token
Expand Down
65 changes: 30 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"license": "ISC",
"type": "module",
"devDependencies": {
"@openai/codex": "^0.111.0",
"@openai/codex": "^0.114.0",
"@types/node": "^24.10.1",
"mcp-hello-world": "^1.1.2",
"tsx": "^4.20.6",
Expand Down
3 changes: 3 additions & 0 deletions src/CodexEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ export class CodexEventHandler {
//skipped events
case "item/reasoning/textDelta": //for raw output
case "turn/diff/updated":
case "command/exec/outputDelta":
case "item/commandExecution/terminalInteraction":
case "item/fileChange/outputDelta":
case "item/mcpToolCall/progress":
case "hook/started":
case "hook/completed":
case "serverRequest/resolved":
case "account/updated":
return null;
Expand Down
14 changes: 7 additions & 7 deletions src/__tests__/CodexACPAgent/CodexAcpClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,16 @@ describe('ACP server test', { timeout: 40_000 }, () => {
await expect(transportDump).toMatchFileSnapshot("data/start-conversation.json");
});

it('should throw error without authentication', async () => {
it('should throw auth required when server requires authentication', async () => {
const codexAcpAgent = fixture.getCodexAcpAgent();
const codexAcpClient = fixture.getCodexAcpClient();

await codexAcpAgent.initialize({protocolVersion: 1});
await fixture.getCodexAcpClient().logout();
fixture.clearCodexConnectionDump();
vi.spyOn(codexAcpClient, "authRequired").mockResolvedValue(true);

await expect(
codexAcpAgent.newSession({cwd: "", mcpServers: []})
).rejects.toThrow("Authentication required");

const transportDump = fixture.getCodexConnectionDump(ignoredFields);
await expect(transportDump).toMatchFileSnapshot("data/auth-failed.json");
});

it('should authenticate with key', async () => {
Expand All @@ -92,7 +89,10 @@ describe('ACP server test', { timeout: 40_000 }, () => {
const newSessionResponse = await codexAcpAgent.newSession({cwd: "", mcpServers: []});
expect(newSessionResponse.sessionId).toBeDefined()

const transportDump = keyFixture.getCodexConnectionDump([...ignoredFields, "upgrade"]);
const transportDump = keyFixture.getCodexConnectionDump(
[...ignoredFields, "upgrade"],
{placeholderResponseMethods: ["model/list"]}
);
await expect(transportDump).toMatchFileSnapshot("data/auth-with-key.json");

const authenticatedResponse = await keyFixture.getCodexAcpAgent().extMethod("authentication/status", {});
Expand Down
114 changes: 1 addition & 113 deletions src/__tests__/CodexACPAgent/data/auth-with-key.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,119 +77,7 @@
}
{
"eventType": "response",
"data": [
{
"id": "id",
"model": "model",
"upgrade": "upgrade",
"upgradeInfo": null,
"availabilityNux": null,
"displayName": "gpt-5.3-codex",
"description": "Latest frontier agentic coding model.",
"hidden": false,
"supportedReasoningEfforts": "supportedReasoningEfforts",
"defaultReasoningEffort": "medium",
"inputModalities": [
"text",
"image"
],
"supportsPersonality": true,
"isDefault": true
},
{
"id": "id",
"model": "model",
"upgrade": "upgrade",
"upgradeInfo": {
"model": "model",
"upgradeCopy": null,
"modelLink": null,
"migrationMarkdown": "**Codex just got an upgrade. Introducing {model_to}.**\n\nCodex is now powered by {model_to}, our most capable agentic coding model yet. It's built for long-running, project-scale work, with mid-turn steering + frequent progress updates so you can collaborate while it runs (and it's faster too).\n\nLearn more: https://openai.com/index/introducing-gpt-5-3-codex/\n\nYou can keep using {model_from} if you prefer.\n"
},
"availabilityNux": null,
"displayName": "gpt-5.2-codex",
"description": "Frontier agentic coding model.",
"hidden": false,
"supportedReasoningEfforts": "supportedReasoningEfforts",
"defaultReasoningEffort": "medium",
"inputModalities": [
"text",
"image"
],
"supportsPersonality": true,
"isDefault": false
},
{
"id": "id",
"model": "model",
"upgrade": "upgrade",
"upgradeInfo": {
"model": "model",
"upgradeCopy": null,
"modelLink": null,
"migrationMarkdown": "**Codex just got an upgrade. Introducing {model_to}.**\n\nCodex is now powered by {model_to}, our most capable agentic coding model yet. It's built for long-running, project-scale work, with mid-turn steering + frequent progress updates so you can collaborate while it runs (and it's faster too).\n\nLearn more: https://openai.com/index/introducing-gpt-5-3-codex/\n\nYou can keep using {model_from} if you prefer.\n"
},
"availabilityNux": null,
"displayName": "gpt-5.1-codex-max",
"description": "Codex-optimized flagship for deep and fast reasoning.",
"hidden": false,
"supportedReasoningEfforts": "supportedReasoningEfforts",
"defaultReasoningEffort": "medium",
"inputModalities": [
"text",
"image"
],
"supportsPersonality": false,
"isDefault": false
},
{
"id": "id",
"model": "model",
"upgrade": "upgrade",
"upgradeInfo": {
"model": "model",
"upgradeCopy": null,
"modelLink": null,
"migrationMarkdown": "**Codex just got an upgrade. Introducing {model_to}.**\n\nCodex is now powered by {model_to}, our most capable agentic coding model yet. It's built for long-running, project-scale work, with mid-turn steering + frequent progress updates so you can collaborate while it runs (and it's faster too).\n\nLearn more: https://openai.com/index/introducing-gpt-5-3-codex/\n\nYou can keep using {model_from} if you prefer.\n"
},
"availabilityNux": null,
"displayName": "gpt-5.2",
"description": "Latest frontier model with improvements across knowledge, reasoning and coding",
"hidden": false,
"supportedReasoningEfforts": "supportedReasoningEfforts",
"defaultReasoningEffort": "medium",
"inputModalities": [
"text",
"image"
],
"supportsPersonality": false,
"isDefault": false
},
{
"id": "id",
"model": "model",
"upgrade": "upgrade",
"upgradeInfo": {
"model": "model",
"upgradeCopy": null,
"modelLink": null,
"migrationMarkdown": "**Codex just got an upgrade. Introducing {model_to}.**\n\nCodex is now powered by {model_to}, our most capable agentic coding model yet. It's built for long-running, project-scale work, with mid-turn steering + frequent progress updates so you can collaborate while it runs (and it's faster too).\n\nLearn more: https://openai.com/index/introducing-gpt-5-3-codex/\n\nYou can keep using {model_from} if you prefer.\n"
},
"availabilityNux": null,
"displayName": "gpt-5.1-codex-mini",
"description": "Optimized for codex. Cheaper, faster, but less capable.",
"hidden": false,
"supportedReasoningEfforts": "supportedReasoningEfforts",
"defaultReasoningEffort": "medium",
"inputModalities": [
"text",
"image"
],
"supportsPersonality": false,
"isDefault": false
}
],
"nextCursor": null
"placeholder": "model/list"
}
{
"eventType": "request",
Expand Down
Loading
Loading