Skip to content
Merged
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
56 changes: 28 additions & 28 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 @@ -62,7 +62,7 @@
},
"dependencies": {
"@agentclientprotocol/sdk": "^0.21.0",
"@openai/codex": "^0.125.0",
"@openai/codex": "^0.128.0",
"diff": "^8.0.3",
"open": "^11.0.0",
"vscode-jsonrpc": "^8.2.1"
Expand Down
2 changes: 0 additions & 2 deletions src/AgentMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class AgentMode {
"on-request",
{
"type": "readOnly",
"access": {"type": "fullAccess"},
"networkAccess": false
},
"read-only"
Expand All @@ -38,7 +37,6 @@ export class AgentMode {
{
type: "workspaceWrite",
writableRoots: [],
readOnlyAccess: {"type": "fullAccess"},
networkAccess: false,
excludeTmpdirEnvVar: false,
excludeSlashTmp: false
Expand Down
9 changes: 0 additions & 9 deletions src/CodexAcpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,9 @@ export class CodexAcpClient {
config: this.createSessionConfig(request.cwd, request.mcpServers ?? []),
cwd: request.cwd,
developerInstructions: null,
history: null,
model: null,
modelProvider: this.getModelProvider(),
path: null,
personality: null,
persistExtendedHistory: false,
threadId: request.sessionId,
});
const codexModels = await this.fetchAvailableModels();
Expand All @@ -234,12 +231,9 @@ export class CodexAcpClient {
config: this.createSessionConfig(request.cwd, request.mcpServers ?? []),
cwd: request.cwd,
developerInstructions: null,
history: null,
model: null,
modelProvider: this.getModelProvider(),
path: null,
personality: null,
persistExtendedHistory: false,
threadId: request.sessionId,
});
const codexModels = await this.fetchAvailableModels();
Expand All @@ -266,8 +260,6 @@ export class CodexAcpClient {
developerInstructions: null,
personality: null,
ephemeral: null,
experimentalRawEvents: false,
persistExtendedHistory: false
});

const codexModels = await this.fetchAvailableModels();
Expand Down Expand Up @@ -393,7 +385,6 @@ export class CodexAcpClient {
sandboxPolicy: agentMode.sandboxPolicy,
summary: disableSummary ? "none" : null,
personality: null,
collaborationMode: null,
cwd: null,
effort: effort,
model: modelId.model,
Expand Down
53 changes: 27 additions & 26 deletions src/CodexEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,6 @@ export class CodexEventHandler {
return this.createUsageUpdate(notification.params);
case "item/commandExecution/outputDelta":
return this.createCommandOutputDeltaEvent(notification.params);
case "command/exec/outputDelta":
case "item/autoApprovalReview/started":
case "item/autoApprovalReview/completed":
case "hook/started":
case "hook/completed":
return null;
case "item/reasoning/summaryTextDelta": //TODO streaming reasoning?
case "item/reasoning/summaryPartAdded":
//skipped events
case "item/reasoning/textDelta": //for raw output
case "turn/diff/updated":
case "item/commandExecution/terminalInteraction":
case "item/fileChange/outputDelta":
case "item/fileChange/patchUpdated":
case "account/updated":
case "fs/changed":
case "mcpServer/startupStatus/updated":
case "serverRequest/resolved":
case "model/verification":
return null;
case "item/mcpToolCall/progress":
return this.createMcpToolProgressEvent(notification.params);
case "account/rateLimits/updated":
Expand All @@ -131,6 +111,30 @@ export class CodexEventHandler {
text: "*Context compacted to fit the model's context window.*\n\n"
}
};
case "model/rerouted":
return this.createModelReroutedEvent(notification.params);
case "fuzzyFileSearch/sessionUpdated":
return this.handleFuzzyFileSearchSessionUpdated(notification.params);
case "fuzzyFileSearch/sessionCompleted":
return this.handleFuzzyFileSearchSessionCompleted(notification.params);
// ignored events
case "command/exec/outputDelta":
case "item/autoApprovalReview/started":
case "item/autoApprovalReview/completed":
case "hook/started":
case "hook/completed":
case "item/reasoning/summaryTextDelta":
case "item/reasoning/summaryPartAdded":
case "item/reasoning/textDelta":
case "turn/diff/updated":
case "item/commandExecution/terminalInteraction":
case "item/fileChange/outputDelta":
case "item/fileChange/patchUpdated":
case "account/updated":
case "fs/changed":
case "mcpServer/startupStatus/updated":
case "serverRequest/resolved":
case "model/verification":
case "windows/worldWritableWarning":
case "thread/status/changed":
case "thread/archived":
Expand All @@ -154,14 +158,11 @@ export class CodexEventHandler {
case "thread/started":
case "thread/name/updated":
case "item/plan/delta":
case "thread/goal/updated":
case "thread/goal/cleared":
case "remoteControl/status/changed":
case "app/list/updated":
return null;
case "model/rerouted":
return this.createModelReroutedEvent(notification.params);
case "fuzzyFileSearch/sessionUpdated":
return this.handleFuzzyFileSearchSessionUpdated(notification.params);
case "fuzzyFileSearch/sessionCompleted":
return this.handleFuzzyFileSearchSessionCompleted(notification.params);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@
"sandboxPolicy": {
"type": "workspaceWrite",
"writableRoots": [],
"readOnlyAccess": "readOnlyAccess",
"networkAccess": false,
"excludeTmpdirEnvVar": false,
"excludeSlashTmp": false
},
"summary": null,
"personality": null,
"collaborationMode": null,
"cwd": "cwd",
"effort": "effort",
"model": "model"
Expand Down
Loading
Loading