[PR #1158] [MERGED] feat(cli): add per-command timeout override to execute tool #1172

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagents/pull/1158
Author: @mdrxy
Created: 2/6/2026
Status: Merged
Merged: 2/6/2026
Merged by: @mdrxy

Base: masterHead: mdrxy/cli-timeout


📝 Commits (2)

  • c372ea2 feat(cli): add per-command timeout override to execute tool
  • 1e82943 cr

📊 Changes

4 files changed (+428 additions, -9 deletions)

View changed files

📝 libs/cli/deepagents_cli/agent.py (+12 -5)
libs/cli/deepagents_cli/backends.py (+327 -0)
📝 libs/cli/deepagents_cli/ui.py (+5 -4)
libs/cli/tests/unit_tests/test_backend_timeout.py (+84 -0)

📄 Description

This functionality was lost in #1107

Warning

This is a temporary CLI-side implementation until #1154 lands the feature natively in the SDK. Once merged, these subclasses and the monkey-patch can be removed in favor of the SDK's built-in support.


Adds per-command timeout support to the CLI's execute tool so the LLM can override the default 120s timeout for long-running commands.


🔄 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/1158 **Author:** [@mdrxy](https://github.com/mdrxy) **Created:** 2/6/2026 **Status:** ✅ Merged **Merged:** 2/6/2026 **Merged by:** [@mdrxy](https://github.com/mdrxy) **Base:** `master` ← **Head:** `mdrxy/cli-timeout` --- ### 📝 Commits (2) - [`c372ea2`](https://github.com/langchain-ai/deepagents/commit/c372ea287e2e5feb8bed296ebc388151e1ba7b08) feat(cli): add per-command `timeout` override to `execute` tool - [`1e82943`](https://github.com/langchain-ai/deepagents/commit/1e82943be7b8d7d619edde39027fedfb90e9481e) cr ### 📊 Changes **4 files changed** (+428 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `libs/cli/deepagents_cli/agent.py` (+12 -5) ➕ `libs/cli/deepagents_cli/backends.py` (+327 -0) 📝 `libs/cli/deepagents_cli/ui.py` (+5 -4) ➕ `libs/cli/tests/unit_tests/test_backend_timeout.py` (+84 -0) </details> ### 📄 Description This functionality was lost in #1107 > [!WARNING] > This is a temporary CLI-side implementation until #1154 lands the feature natively in the SDK. Once merged, these subclasses and the monkey-patch can be removed in favor of the SDK's built-in support. --- Adds per-command timeout support to the CLI's execute tool so the LLM can override the default 120s timeout for long-running commands. --- <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:18:20 -05:00
yindo closed this issue 2026-02-16 09:18:20 -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#1172