[PR #441] [MERGED] fix(cli): correct task approval display to match actual tool signature #664

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagents/pull/441
Author: @rlancemartin
Created: 11/20/2025
Status: Merged
Merged: 11/20/2025
Merged by: @eyurtsev

Base: rlm/project-level-skills-onlyHead: rlm/fix-task-format


📝 Commits (2)

  • 8feca82 fix(cli): correct task approval display to match actual tool signature
  • 01277cd test(cli): update task description tests to match new format

📊 Changes

2 files changed (+26 additions, -22 deletions)

View changed files

📝 libs/deepagents-cli/deepagents_cli/agent.py (+13 -9)
📝 libs/deepagents-cli/tests/unit_tests/test_agent.py (+13 -13)

📄 Description

Summary

Fixes the blank "Instructions to subagent" section in task approval display.

Problem

When approving task tool calls (spawning subagents), the HITL display showed:

Instructions to subagent:
────────────────────────────────────────

────────────────────────────────────────

The formatter was looking for a non-existent prompt parameter.

Root Cause

The task tool signature is:

task(description: str, subagent_type: str)

ALL instructions go in the description parameter, which becomes the HumanMessage sent to the subagent. There is NO separate prompt parameter. The formatter incorrectly assumed a two-parameter design (description + prompt).


🔄 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/441 **Author:** [@rlancemartin](https://github.com/rlancemartin) **Created:** 11/20/2025 **Status:** ✅ Merged **Merged:** 11/20/2025 **Merged by:** [@eyurtsev](https://github.com/eyurtsev) **Base:** `rlm/project-level-skills-only` ← **Head:** `rlm/fix-task-format` --- ### 📝 Commits (2) - [`8feca82`](https://github.com/langchain-ai/deepagents/commit/8feca822ba9e3252668986d727a2f22f05d4b2d8) fix(cli): correct task approval display to match actual tool signature - [`01277cd`](https://github.com/langchain-ai/deepagents/commit/01277cdfacd8257b285d719d4b8bddf89238ba03) test(cli): update task description tests to match new format ### 📊 Changes **2 files changed** (+26 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents-cli/deepagents_cli/agent.py` (+13 -9) 📝 `libs/deepagents-cli/tests/unit_tests/test_agent.py` (+13 -13) </details> ### 📄 Description ## Summary Fixes the blank "Instructions to subagent" section in task approval display. ## Problem When approving task tool calls (spawning subagents), the HITL display showed: ``` Instructions to subagent: ──────────────────────────────────────── ──────────────────────────────────────── ``` The formatter was looking for a non-existent `prompt` parameter. ## Root Cause The task tool signature is: ```python task(description: str, subagent_type: str) ``` ALL instructions go in the `description` parameter, which becomes the HumanMessage sent to the subagent. There is NO separate `prompt` parameter. The formatter incorrectly assumed a two-parameter design (description + prompt). --- <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:16:45 -05:00
yindo closed this issue 2026-02-16 09:16:45 -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#664