Skip to content

Commit bd5e2be

Browse files
update codex version to 0.128.0 (#131)
1 parent 9bb12c2 commit bd5e2be

50 files changed

Lines changed: 302 additions & 252 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"dependencies": {
6464
"@agentclientprotocol/sdk": "^0.21.0",
65-
"@openai/codex": "^0.125.0",
65+
"@openai/codex": "^0.128.0",
6666
"diff": "^8.0.3",
6767
"open": "^11.0.0",
6868
"vscode-jsonrpc": "^8.2.1"

src/AgentMode.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class AgentMode {
2525
"on-request",
2626
{
2727
"type": "readOnly",
28-
"access": {"type": "fullAccess"},
2928
"networkAccess": false
3029
},
3130
"read-only"
@@ -38,7 +37,6 @@ export class AgentMode {
3837
{
3938
type: "workspaceWrite",
4039
writableRoots: [],
41-
readOnlyAccess: {"type": "fullAccess"},
4240
networkAccess: false,
4341
excludeTmpdirEnvVar: false,
4442
excludeSlashTmp: false

src/CodexAcpClient.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,9 @@ export class CodexAcpClient {
209209
config: this.createSessionConfig(request.cwd, request.mcpServers ?? []),
210210
cwd: request.cwd,
211211
developerInstructions: null,
212-
history: null,
213212
model: null,
214213
modelProvider: this.getModelProvider(),
215-
path: null,
216214
personality: null,
217-
persistExtendedHistory: false,
218215
threadId: request.sessionId,
219216
});
220217
const codexModels = await this.fetchAvailableModels();
@@ -234,12 +231,9 @@ export class CodexAcpClient {
234231
config: this.createSessionConfig(request.cwd, request.mcpServers ?? []),
235232
cwd: request.cwd,
236233
developerInstructions: null,
237-
history: null,
238234
model: null,
239235
modelProvider: this.getModelProvider(),
240-
path: null,
241236
personality: null,
242-
persistExtendedHistory: false,
243237
threadId: request.sessionId,
244238
});
245239
const codexModels = await this.fetchAvailableModels();
@@ -266,8 +260,6 @@ export class CodexAcpClient {
266260
developerInstructions: null,
267261
personality: null,
268262
ephemeral: null,
269-
experimentalRawEvents: false,
270-
persistExtendedHistory: false
271263
});
272264

273265
const codexModels = await this.fetchAvailableModels();
@@ -393,7 +385,6 @@ export class CodexAcpClient {
393385
sandboxPolicy: agentMode.sandboxPolicy,
394386
summary: disableSummary ? "none" : null,
395387
personality: null,
396-
collaborationMode: null,
397388
cwd: null,
398389
effort: effort,
399390
model: modelId.model,

src/CodexEventHandler.ts

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,6 @@ export class CodexEventHandler {
9292
return this.createUsageUpdate(notification.params);
9393
case "item/commandExecution/outputDelta":
9494
return this.createCommandOutputDeltaEvent(notification.params);
95-
case "command/exec/outputDelta":
96-
case "item/autoApprovalReview/started":
97-
case "item/autoApprovalReview/completed":
98-
case "hook/started":
99-
case "hook/completed":
100-
return null;
101-
case "item/reasoning/summaryTextDelta": //TODO streaming reasoning?
102-
case "item/reasoning/summaryPartAdded":
103-
//skipped events
104-
case "item/reasoning/textDelta": //for raw output
105-
case "turn/diff/updated":
106-
case "item/commandExecution/terminalInteraction":
107-
case "item/fileChange/outputDelta":
108-
case "item/fileChange/patchUpdated":
109-
case "account/updated":
110-
case "fs/changed":
111-
case "mcpServer/startupStatus/updated":
112-
case "serverRequest/resolved":
113-
case "model/verification":
114-
return null;
11595
case "item/mcpToolCall/progress":
11696
return this.createMcpToolProgressEvent(notification.params);
11797
case "account/rateLimits/updated":
@@ -131,6 +111,30 @@ export class CodexEventHandler {
131111
text: "*Context compacted to fit the model's context window.*\n\n"
132112
}
133113
};
114+
case "model/rerouted":
115+
return this.createModelReroutedEvent(notification.params);
116+
case "fuzzyFileSearch/sessionUpdated":
117+
return this.handleFuzzyFileSearchSessionUpdated(notification.params);
118+
case "fuzzyFileSearch/sessionCompleted":
119+
return this.handleFuzzyFileSearchSessionCompleted(notification.params);
120+
// ignored events
121+
case "command/exec/outputDelta":
122+
case "item/autoApprovalReview/started":
123+
case "item/autoApprovalReview/completed":
124+
case "hook/started":
125+
case "hook/completed":
126+
case "item/reasoning/summaryTextDelta":
127+
case "item/reasoning/summaryPartAdded":
128+
case "item/reasoning/textDelta":
129+
case "turn/diff/updated":
130+
case "item/commandExecution/terminalInteraction":
131+
case "item/fileChange/outputDelta":
132+
case "item/fileChange/patchUpdated":
133+
case "account/updated":
134+
case "fs/changed":
135+
case "mcpServer/startupStatus/updated":
136+
case "serverRequest/resolved":
137+
case "model/verification":
134138
case "windows/worldWritableWarning":
135139
case "thread/status/changed":
136140
case "thread/archived":
@@ -154,14 +158,11 @@ export class CodexEventHandler {
154158
case "thread/started":
155159
case "thread/name/updated":
156160
case "item/plan/delta":
161+
case "thread/goal/updated":
162+
case "thread/goal/cleared":
163+
case "remoteControl/status/changed":
157164
case "app/list/updated":
158165
return null;
159-
case "model/rerouted":
160-
return this.createModelReroutedEvent(notification.params);
161-
case "fuzzyFileSearch/sessionUpdated":
162-
return this.handleFuzzyFileSearchSessionUpdated(notification.params);
163-
case "fuzzyFileSearch/sessionCompleted":
164-
return this.handleFuzzyFileSearchSessionCompleted(notification.params);
165166
}
166167
}
167168

src/__tests__/CodexACPAgent/data/send-attachments-turn-start.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@
4848
"sandboxPolicy": {
4949
"type": "workspaceWrite",
5050
"writableRoots": [],
51-
"readOnlyAccess": "readOnlyAccess",
5251
"networkAccess": false,
5352
"excludeTmpdirEnvVar": false,
5453
"excludeSlashTmp": false
5554
},
5655
"summary": null,
5756
"personality": null,
58-
"collaborationMode": null,
5957
"cwd": "cwd",
6058
"effort": "effort",
6159
"model": "model"

0 commit comments

Comments
 (0)