Skip to content

Share reusable terminal auto-approval helpers across workbench and Agent Host #329028

Open

Description

Context

Recent terminal auto-approval changes have moved reusable logic out of the workbench layer so both workbench and Agent Host can consume it:

There is an existing note associated with:

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.ts

// Bump the layer and rename TerminalCommandhelper?
// double if we track expanding terminal thinking block.

Debt

Audit runInTerminalHelpers.ts and related terminal auto-approval helpers for logic that should live in a lower shared terminal layer rather than workbench.

Potential work:

  • Identify pure helpers that are useful to both workbench and Agent Host.
  • Move shared terminal auto-approval semantics to vs/platform/terminal/common/autoApprove without moving workbench policy, services, localization, or UI.
  • Rename ambiguous helper types/functions such as the referenced TerminalCommandhelper where appropriate.
  • Avoid duplicate implementations as Agent Host and workbench terminal behavior converge.
  • Consider how the helper boundary should support expanded terminal thinking-block tracking.

This should be an organizational cleanup unless a separately reviewed behavior change is required.

Activity

  1. added
    debt
    terminal-auto-approve
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtterminal-auto-approve

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions