mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 19:11:28 -05:00
* agentHost: reconstruct prompt-less subagent transcripts on session reopen The Claude replay mapper only opened a turn on a `user-text` message and dropped any assistant message that arrived with no active turn. Subagent transcripts returned by `getSubagentMessages` carry a `parent_tool_use_id` on every envelope and have no synthetic spawning prompt, so they open directly with an assistant message — which meant every inner assistant message (including the subagent's final reply) was dropped and the transcript reconstructed as zero turns on reopen. Thread an `isInner` flag (set when `parent_tool_use_id !== null`) through the parsed assistant message and, when there is no active turn, synthesize an empty-prompt turn for inner messages instead of dropping them. Top-level assistant-before-user envelopes remain anomalous and are still dropped, so the change is scoped strictly to subagent transcripts. Adds unit fixtures covering the prompt-less subagent transcript shape and the unchanged top-level drop behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * agentHost: enable Codex provider in real-SDK test server `startRealServer` forwarded `--codex-sdk-root` but never set the Codex enable flag, and the Codex agent defaults to disabled, so the provider was never registered and every Codex real-SDK test failed with "No agent provider registered for: codex". Set `VSCODE_AGENT_HOST_CODEX_AGENT_ENABLED` on the forked server when a codex SDK root is supplied so the provider registers for the real-SDK suite. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * agentHost: bump Claude (0.3.187) and Codex (0.142.0) SDKs Update the @anthropic-ai/claude-agent-sdk and @openai/codex devDependencies (and the build/agent-sdk tarball pins) to 0.3.187 / 0.142.0. The new Claude SDK adds `setMcpPermissionModeOverride` to the `Query` interface, so the test doubles that implement `Query` are updated to satisfy it: `ImmediatelyDoneQuery` (and the `RecordingQuery` that extends it), `FakeQuery`, and `RoundTripQuery`. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
136 lines
3.7 KiB
JSON
136 lines
3.7 KiB
JSON
{
|
|
"name": "agent-sdk-codex",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "agent-sdk-codex",
|
|
"dependencies": {
|
|
"@openai/codex": "0.142.0"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex": {
|
|
"version": "0.142.0",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0.tgz",
|
|
"integrity": "sha512-c7WftbRyE4zOLJV5p73mcGn4jVK3FmK84Q65hrZrXboZzLPDWRfbFedCbsIjU4PJS/kvgyMPhv7dH4/nhXzUyg==",
|
|
"license": "Apache-2.0",
|
|
"bin": {
|
|
"codex": "bin/codex.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=16"
|
|
},
|
|
"optionalDependencies": {
|
|
"@openai/codex-darwin-arm64": "npm:@openai/codex@0.142.0-darwin-arm64",
|
|
"@openai/codex-darwin-x64": "npm:@openai/codex@0.142.0-darwin-x64",
|
|
"@openai/codex-linux-arm64": "npm:@openai/codex@0.142.0-linux-arm64",
|
|
"@openai/codex-linux-x64": "npm:@openai/codex@0.142.0-linux-x64",
|
|
"@openai/codex-win32-arm64": "npm:@openai/codex@0.142.0-win32-arm64",
|
|
"@openai/codex-win32-x64": "npm:@openai/codex@0.142.0-win32-x64"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-darwin-arm64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-darwin-arm64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-darwin-arm64.tgz",
|
|
"integrity": "sha512-jwbriCRTSNfqoGov5bNnnYAKarnNv4QfGkut8psKAajebL6VPI2ZjCxCJ1OFA5HhUQsN8GQgEjKlj6WhYcMmUA==",
|
|
"cpu": [
|
|
"arm64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"darwin"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-darwin-x64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-darwin-x64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-darwin-x64.tgz",
|
|
"integrity": "sha512-qwdPfW8sOBEfWw1Rt7baveUsOjrudrM7qfKNnJvHPRrwtt4jemTd22VtZ6r02kUQdLwt6Ddvs0Pwzk6QJW6PqA==",
|
|
"cpu": [
|
|
"x64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"darwin"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-linux-arm64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-linux-arm64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-linux-arm64.tgz",
|
|
"integrity": "sha512-gX9hCK59bE0Itnous1MCrKiXTYuoGVE6oJUE0kyRSzaBD267sh9TNR3DXKbY7TsP7iAs19n8YXDJNdHZJtakSQ==",
|
|
"cpu": [
|
|
"arm64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"linux"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-linux-x64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-linux-x64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-linux-x64.tgz",
|
|
"integrity": "sha512-nywS+ogFPRhZnQnKL+jzWKzFhmjTQbYPh6n8dtQ/E+sJ3FoZVcb9a6kvHL5yjgtlCiDkP0jPDYY5AK3tDShYyw==",
|
|
"cpu": [
|
|
"x64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"linux"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-win32-arm64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-win32-arm64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-win32-arm64.tgz",
|
|
"integrity": "sha512-Lz8xEn7uNn0XTi8k0jApKM5P9BD7QvAH3ZbtlGi1zfSOgh1kmgpfXxaTlJF503mozdHaA2r6UA7hfTi+bI0CvQ==",
|
|
"cpu": [
|
|
"arm64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"win32"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
},
|
|
"node_modules/@openai/codex-win32-x64": {
|
|
"name": "@openai/codex",
|
|
"version": "0.142.0-win32-x64",
|
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.142.0-win32-x64.tgz",
|
|
"integrity": "sha512-LkARkXh3NM0XA8R8hFAgjx017fadfb9RgmqLzdhO1Qt/bDVSJnmDf4cwJ2h+FWZcm9/rRk3JC/IuqBvwg/TN+Q==",
|
|
"cpu": [
|
|
"x64"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"optional": true,
|
|
"os": [
|
|
"win32"
|
|
],
|
|
"engines": {
|
|
"node": ">=16"
|
|
}
|
|
}
|
|
}
|
|
}
|