Skip to content

agent: Add terminal output head and tail options - #58257

Merged
rtfeldman merged 1 commit into
mainfrom
richard/ai-36-improve-terminal-tool-to-prevent-output-buffering-with-tail
Jun 1, 2026
Merged

agent: Add terminal output head and tail options#58257
rtfeldman merged 1 commit into
mainfrom
richard/ai-36-improve-terminal-tool-to-prevent-output-buffering-with-tail

Conversation

@rtfeldman

@rtfeldman rtfeldman commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Adds optional terminal tool parameters that let agents receive only the first lines, last lines, or both from a command's final output while leaving the live terminal output visible to users. This updates the tool descriptions to steer agents away from piping through head, tail, or similar filters.

Closes AI-36

Release Notes:

  • Added terminal output controls for agents to inspect command output without hiding live terminal progress

@rtfeldman rtfeldman self-assigned this Jun 1, 2026
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 1, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 1, 2026
@rtfeldman
rtfeldman requested a review from benbrandt June 1, 2026 20:24
@rtfeldman
rtfeldman marked this pull request as ready for review June 1, 2026 20:24
@rtfeldman
rtfeldman added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit c0db923 Jun 1, 2026
46 checks passed
@rtfeldman
rtfeldman deleted the richard/ai-36-improve-terminal-tool-to-prevent-output-buffering-with-tail branch June 1, 2026 20:27
@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label Jun 1, 2026
@benbrandt

Copy link
Copy Markdown
Member

@zed-industries/approved

@zed-zippy zed-zippy Bot removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label Jun 2, 2026
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
Adds optional terminal tool parameters that let agents receive only the
first lines, last lines, or both from a command's final output while
leaving the live terminal output visible to users. This is gated by the
terminal-tail feature flag and updates the tool descriptions to steer
agents away from piping through head, tail, or similar filters.

Closes AI-36

Release Notes:

- Let agents use the terminal tool with builtin "head/tail" so they
don't have to pipe to head/tail and lose incremental output
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Adds optional terminal tool parameters that let agents receive only the
first lines, last lines, or both from a command's final output while
leaving the live terminal output visible to users. This is gated by the
terminal-tail feature flag and updates the tool descriptions to steer
agents away from piping through head, tail, or similar filters.

Closes AI-36

Release Notes:

- Let agents use the terminal tool with builtin "head/tail" so they
don't have to pipe to head/tail and lose incremental output
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Adds optional terminal tool parameters that let agents receive only the
first lines, last lines, or both from a command's final output while
leaving the live terminal output visible to users. This is gated by the
terminal-tail feature flag and updates the tool descriptions to steer
agents away from piping through head, tail, or similar filters.

Closes AI-36

Release Notes:

- Let agents use the terminal tool with builtin "head/tail" so they
don't have to pipe to head/tail and lose incremental output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants