fix: preserve advancing pages across resumed task runs

This commit is contained in:
Agent Workbench Dev
2026-10-30 04:15:08 +08:00
parent 700244d2a8
commit 4d06618f62
4 changed files with 95 additions and 12 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ export class Runtime {
else if (tool === 'read_artifact') {
const artifact = this.store.owned('artifact', args.artifact_id, session.id), text = this.store.artifactStore.read(artifact);
result = artifactPage(artifact, text, args, { callId: call.id, maximumMessageBytes: run.readMessageBytes ?? 16000 });
recordArtifactRead(this.store.core.task.get(run.taskId), artifact, result, event.invocationId);
recordArtifactRead(this.store.core.task.get(run.taskId), artifact, result, event.invocationId, run.id);
}
else if (tool === 'prepare_change_set') {
const set = await this.changeSetManager().prepare(session, args.change_ids, { source: 'agent' });