Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Nov 5, 2025

This is no longer needed since the shell is described correctly in the run_in_terminal tool now

Fixes microsoft/vscode#275638

@Tyriar Tyriar added this to the November 2025 milestone Nov 5, 2025
@Tyriar Tyriar self-assigned this Nov 5, 2025
This is no longer needed since the shell is described correctly in the
run_in_terminal tool now

Fixes microsoft/vscode#275638
@Tyriar Tyriar marked this pull request as ready for review November 11, 2025 13:25
Copilot AI review requested due to automatic review settings November 11, 2025 13:25
Copilot finished reviewing on behalf of Tyriar November 11, 2025 13:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the user shell prompt information from the agent's context. The shell description is now handled by the run_in_terminal tool, eliminating the need for this global prompt. This addresses issue microsoft/vscode#275638.

Key changes:

  • Removed the UserShellPrompt component class that provided shell-specific instructions (zsh, PowerShell, fish)
  • Removed the corresponding JSX usage from the environment_info section
  • Updated test snapshots to reflect the removed shell prompt text

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

File Description
src/extension/prompts/node/agent/agentPrompt.tsx Removed UserShellPrompt component class and its usage in the GlobalAgentContext render method; removed basename import
src/extension/prompts/node/agent/test/snapshots/*.snap Updated test snapshots to remove the shell prompt line from environment_info sections

@Tyriar Tyriar added this pull request to the merge queue Nov 11, 2025
Merged via the queue into main with commit d14b470 Nov 11, 2025
22 checks passed
@Tyriar Tyriar deleted the tyriar/275638 branch November 11, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run_in_terminal tool still tries to execute powershell command with a custom profile of git bash

3 participants