[PR #784] [MERGED] fix(deepagents): truncate lines on read #888

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagents/pull/784
Author: @ccurme
Created: 1/15/2026
Status: Merged
Merged: 1/16/2026
Merged by: @ccurme

Base: masterHead: cc/truncate_lines


📝 Commits (6)

📊 Changes

3 files changed (+380 additions, -2 deletions)

View changed files

📝 libs/deepagents/deepagents/middleware/filesystem.py (+50 -2)
libs/deepagents/tests/unit_tests/middleware/test_filesystem.py (+89 -0)
📝 libs/deepagents/tests/unit_tests/test_end_to_end.py (+241 -0)

📄 Description

The description for the read tool includes

  • Any lines longer than 2000 characters will be truncated

and there is a constant MAX_LINE_LENGTH = 2000 in the module, but this constant is unused and the logic is not implemented.

Here we implement the truncation as described.


🔄 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/deepagents/pull/784 **Author:** [@ccurme](https://github.com/ccurme) **Created:** 1/15/2026 **Status:** ✅ Merged **Merged:** 1/16/2026 **Merged by:** [@ccurme](https://github.com/ccurme) **Base:** `master` ← **Head:** `cc/truncate_lines` --- ### 📝 Commits (6) - [`7350641`](https://github.com/langchain-ai/deepagents/commit/735064197c9b7e437addb7445e280e0ff0398c98) truncate lines on read - [`04c7a4b`](https://github.com/langchain-ai/deepagents/commit/04c7a4b241184e14df45f87276494ba9d430c1c8) lint - [`3aef311`](https://github.com/langchain-ai/deepagents/commit/3aef311553001298e2875bfcadf444e0dca15468) move to end-to-end tests - [`bae0d54`](https://github.com/langchain-ai/deepagents/commit/bae0d546e34edf8a6f32ef867113ba0dff13dbf7) parametrize backends - [`ecace20`](https://github.com/langchain-ai/deepagents/commit/ecace20dbbe50329b851789c2e26d0e2343118c7) cr - [`98584a3`](https://github.com/langchain-ai/deepagents/commit/98584a3dce0ecbb57f43267667420a0e155bf236) add unit tests ### 📊 Changes **3 files changed** (+380 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/deepagents/middleware/filesystem.py` (+50 -2) ➕ `libs/deepagents/tests/unit_tests/middleware/test_filesystem.py` (+89 -0) 📝 `libs/deepagents/tests/unit_tests/test_end_to_end.py` (+241 -0) </details> ### 📄 Description The description for the read tool includes > - Any lines longer than 2000 characters will be truncated and there is a constant `MAX_LINE_LENGTH = 2000` in the module, but this constant is unused and the logic is not implemented. Here we implement the truncation as described. --- <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 09:17:32 -05:00
yindo closed this issue 2026-02-16 09:17:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagents#888