fix: preserve orchestrator task history metadata on resume#5942
Conversation
🦋 Changeset detectedLatest commit: cbb5f5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis PR fixes resumed agent runtime orchestrator tasks so that previous task history is preserved. The key change is in Highlights:
Files Reviewed (3 files)
|
Fixes #5933
Context
Fixes an orchestrator regression where resumed tasks could lose existing history metadata, causing follow-up lookups to fail with
Task with ID ... not found in history.Implementation
addHistoryItemForResumeinpackages/agent-runtime/src/host/ExtensionHost.tsto merge with an existing history item instead of replacing it.packages/agent-runtime/src/host/__tests__/ExtensionHost.addHistoryItemForResume.spec.tsthat verifies existing orchestration metadata is retained..changeset/quiet-camels-share.md.Screenshots
How to Test
packages/agent-runtime, run:pnpm test src/host/__tests__/ExtensionHost.addHistoryItemForResume.spec.tsGet in Touch
thomas07374