[PR #223] [MERGED] fix(deepagents): prevent write_file crash when model omits content #223

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/223
Author: @maahir30
Created: 2/12/2026
Status: Merged
Merged: 2/12/2026
Merged by: @maahir30

Base: mainHead: fix-write-file


📝 Commits (5)

  • bb2598b fix(deepagents): prevent write_file crash when model omits content
  • 3e041b3 update test
  • c966259 fix
  • 065f7cb Merge branch 'main' into fix-write-file
  • bfa843d Create happy-flowers-mix.md

📊 Changes

3 files changed (+28 additions, -1 deletions)

View changed files

.changeset/happy-flowers-mix.md (+6 -0)
📝 libs/deepagents/src/middleware/fs.test.ts (+18 -0)
📝 libs/deepagents/src/middleware/fs.ts (+4 -1)

📄 Description

Default the content parameter to an empty string so a missing argument doesn't crash the entire agent run via Zod validation failure.


🔄 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/223 **Author:** [@maahir30](https://github.com/maahir30) **Created:** 2/12/2026 **Status:** ✅ Merged **Merged:** 2/12/2026 **Merged by:** [@maahir30](https://github.com/maahir30) **Base:** `main` ← **Head:** `fix-write-file` --- ### 📝 Commits (5) - [`bb2598b`](https://github.com/langchain-ai/deepagentsjs/commit/bb2598b4faf2977e9cbc510ad904fc72c94742dd) fix(deepagents): prevent write_file crash when model omits content - [`3e041b3`](https://github.com/langchain-ai/deepagentsjs/commit/3e041b3bacc5a52f55d6ae37d796831baea33151) update test - [`c966259`](https://github.com/langchain-ai/deepagentsjs/commit/c966259da61c6fa6a73383491b5a2f9da4a8dca3) fix - [`065f7cb`](https://github.com/langchain-ai/deepagentsjs/commit/065f7cb5eeb7527c960ba55bea47582e1ac329b6) Merge branch 'main' into fix-write-file - [`bfa843d`](https://github.com/langchain-ai/deepagentsjs/commit/bfa843d4fe8df5f735307f18ab256098e518c929) Create happy-flowers-mix.md ### 📊 Changes **3 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/happy-flowers-mix.md` (+6 -0) 📝 `libs/deepagents/src/middleware/fs.test.ts` (+18 -0) 📝 `libs/deepagents/src/middleware/fs.ts` (+4 -1) </details> ### 📄 Description Default the `content` parameter to an empty string so a missing argument doesn't crash the entire agent run via Zod validation failure. --- <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-02-16 06:17:28 -05:00
yindo closed this issue 2026-02-16 06:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#223