[PR #400] [MERGED] fix(sdk): AsyncTask updatedAt field doesn't update on task status changes #426

Closed
opened 2026-06-05 17:23:02 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/400
Author: @colifran
Created: 3/31/2026
Status: Merged
Merged: 3/31/2026
Merged by: @colifran

Base: alphaHead: colifran/updated-at


📝 Commits (2)

  • 84f8720 update updatedAt field to change on any task update
  • c81fa93 added changeset

📊 Changes

3 files changed (+19 additions, -8 deletions)

View changed files

.changeset/upset-ways-win.md (+5 -0)
📝 libs/deepagents/src/middleware/async_subagents.test.ts (+6 -4)
📝 libs/deepagents/src/middleware/async_subagents.ts (+8 -4)

📄 Description

Description

Currently, the updatedAt field associated with an AsyncTask is only updated when the agent uses the update_async_task tool. This is a bit misleading since the expectation of updatedAt is that it is updated anytime the async task state updates (status changes, etc.).

This PR updates the logic associated with the updatedAt field so that it is updated on:

  • update_async_task tool calls
  • Async task status changes
  • Async task cancellation

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/400 **Author:** [@colifran](https://github.com/colifran) **Created:** 3/31/2026 **Status:** ✅ Merged **Merged:** 3/31/2026 **Merged by:** [@colifran](https://github.com/colifran) **Base:** `alpha` ← **Head:** `colifran/updated-at` --- ### 📝 Commits (2) - [`84f8720`](https://github.com/langchain-ai/deepagentsjs/commit/84f8720987301f564faea7e36c63c61467a6cc07) update updatedAt field to change on any task update - [`c81fa93`](https://github.com/langchain-ai/deepagentsjs/commit/c81fa93c484df03abb27ced3d5241a25600ba435) added changeset ### 📊 Changes **3 files changed** (+19 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/upset-ways-win.md` (+5 -0) 📝 `libs/deepagents/src/middleware/async_subagents.test.ts` (+6 -4) 📝 `libs/deepagents/src/middleware/async_subagents.ts` (+8 -4) </details> ### 📄 Description ### Description Currently, the `updatedAt` field associated with an `AsyncTask` is only updated when the agent uses the `update_async_task` tool. This is a bit misleading since the expectation of `updatedAt` is that it is updated anytime the async task state updates (status changes, etc.). This PR updates the logic associated with the `updatedAt` field so that it is updated on: - `update_async_task` tool calls - Async task status changes - Async task cancellation --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:02 -04:00
yindo closed this issue 2026-06-05 17:23:02 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#426