Skip to content

terminal_view: Hide agent actions in embedded terminal menus#56256

Merged
bennetbo merged 1 commit into
zed-industries:mainfrom
terror:hide-embedded-agent-actions
May 20, 2026
Merged

terminal_view: Hide agent actions in embedded terminal menus#56256
bennetbo merged 1 commit into
zed-industries:mainfrom
terror:hide-embedded-agent-actions

Conversation

@terror

@terror terror commented May 9, 2026

Copy link
Copy Markdown
Contributor

Resolves #56138

This diff hides terminal agent actions from context menus shown by embedded terminal views, such as terminal tool output in agent threads. Those surfaces render through TerminalView, but they are not normal interactive terminal panes, and actions like Inline Assist and Add to Agent Thread do not currently resolve the embedded terminal as their target.

Previously, choosing Inline Assist from terminal tool output could target the workspace’s active editor instead of the terminal output. The context menu now limits these agent actions to non-embedded terminal views, so regular terminal panes keep their existing behavior while terminal tool output no longer offers actions that cannot resolve to it.

Add to Agent Thread could make sense for embedded terminal selections in the future, but it would need explicit target-resolution support for focused embedded terminals. This change keeps that as separate follow-up work instead of leaving a misleading menu item that does not reliably act on the selected tool output.

Release Notes:

  • Fixed embedded terminal context menus showing agent actions that could target the wrong item.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 9, 2026
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label May 9, 2026
@ChristopherBiscardi ChristopherBiscardi added area:integrations/terminal Feedback for terminal integration, shell commands, etc area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features labels May 10, 2026

@bennetbo bennetbo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bennetbo bennetbo enabled auto-merge May 20, 2026 15:51
@bennetbo bennetbo self-assigned this May 20, 2026
@bennetbo bennetbo added this pull request to the merge queue May 20, 2026
Merged via the queue into zed-industries:main with commit d2953a2 May 20, 2026
59 checks passed
@terror terror changed the title Hide agent actions in embedded terminal menus terminal_view: Hide agent actions in embedded terminal menus May 23, 2026
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
Resolves zed-industries#56138

This diff hides terminal agent actions from context menus shown by
embedded terminal views, such as terminal tool output in agent threads.
Those surfaces render through `TerminalView`, but they are not normal
interactive terminal panes, and actions like Inline Assist and Add to
Agent Thread do not currently resolve the embedded terminal as their
target.

Previously, choosing Inline Assist from terminal tool output could
target the workspace’s active editor instead of the terminal output. The
context menu now limits these agent actions to non-embedded terminal
views, so regular terminal panes keep their existing behavior while
terminal tool output no longer offers actions that cannot resolve to it.

Add to Agent Thread _could_ make sense for embedded terminal selections
in the future, but it would need explicit target-resolution support for
focused embedded terminals. This change keeps that as separate follow-up
work instead of leaving a misleading menu item that does not reliably
act on the selected tool output.

Release Notes:
- Fixed embedded terminal context menus showing agent actions that could
target the wrong item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Related to Agent Panel, Edit Prediction, Copilot, or other AI features area:integrations/terminal Feedback for terminal integration, shell commands, etc cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invoking inline assist in terminal tool output ends up in current editor buffer

4 participants