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
7 changes: 5 additions & 2 deletions examples/rsc-agent-runtime/src/runtime/state-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ export const createFileRuntimeKernel = (options: FileRuntimeKernelOptions): Runt
{ host: input.host, path: input.path, sessionId: input.sessionId, toolName: input.toolName },
{ idempotencyKey: input.idempotencyKey, signal: mutationOptions?.signal },
);
return snapshotAt(store, committed.revision, undefined, mutationOptions?.signal);
// Idempotent replays return the current head, exactly like the retired
// JSONL kernel: a rerun after a later reset must surface the reset
// state, not the durable prefix at the original commit.
return snapshotAt(store, committed.replayed ? undefined : committed.revision, undefined, mutationOptions?.signal);
});
},

Expand All @@ -169,7 +172,7 @@ export const createFileRuntimeKernel = (options: FileRuntimeKernelOptions): Runt
...(input.seed === undefined ? {} : { seed: { edits: [], seed: input.seed } }),
signal: mutationOptions?.signal,
});
return snapshotAt(store, committed.revision, undefined, mutationOptions?.signal);
return snapshotAt(store, committed.replayed ? undefined : committed.revision, undefined, mutationOptions?.signal);
});
},

Expand Down
1 change: 0 additions & 1 deletion packages/agent-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"yaml": "2.9.0"
},
"devDependencies": {
"@agent-bundle/runtime": "workspace:*",
"@modelcontextprotocol/server": "2.0.0",
"@types/react": "19.2.18",
"@types/ws": "8.18.1",
Expand Down
9 changes: 6 additions & 3 deletions pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ packages:
- packages/*
- packages/workbench/src/inspector
- examples/*
# The published agent-bundle manifest must never carry a `workspace:` range
# (npm refuses to install such a tarball, and the release audit forbids it),
# so its optional @agent-bundle/runtime peer is satisfied from the workspace
# here instead of through a devDependency in the shipped package.json.
overrides:
'@agent-bundle/runtime': workspace:*
allowBuilds:
'@google/genai': false
msgpackr-extract: false
Expand Down
10 changes: 8 additions & 2 deletions scripts/run-examples-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ if (pnpmEntrypoint === undefined || pnpmEntrypoint.length === 0) {
throw new Error('run-examples-check.mjs must be launched through a pnpm package script.');
}

const child = spawn(process.execPath, [
pnpmEntrypoint,
// npm_execpath is a JavaScript entrypoint under corepack and pnpm's own
// installer, but a native shim (or a bare command name) under standalone
// setups such as pnpm/setup on hosted CI. Only JavaScript files can be
// launched through the current Node executable.
const isJavaScriptEntrypoint = /\.[cm]?js$/u.test(pnpmEntrypoint);
const command = isJavaScriptEntrypoint ? process.execPath : pnpmEntrypoint;
const child = spawn(command, [
...(isJavaScriptEntrypoint ? [pnpmEntrypoint] : []),
'--filter',
'./examples/*',
'--workspace-concurrency=3',
Expand Down
Loading