Files
vscode/build/agent-sdk/agents/codex/package.json
Tyler James Leonhardt 0631fed7dd agentHost: fix subagent transcript replay + bump Claude/Codex SDKs (#322865)
* 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>
2026-06-25 04:08:35 +00:00

9 lines
359 B
JSON

{
"name": "agent-sdk-codex",
"private": true,
"comment": "Pinned dependency set for the build/agent-sdk codex tarball. The package-lock.json alongside is the source of truth for transitive deps — produce.ts runs `npm ci` against this directory to get byte-deterministic output across pipeline runs.",
"dependencies": {
"@openai/codex": "0.142.0"
}
}