Skip to content

New PowerShell tool confuses agents #20527

@ShibuyaCyana

Description

@ShibuyaCyana

Description

After PR #16069, on Windows, my agent is still proactively using tail to filter the compile result, even with newly created sessions.

Image Image

It seems that the agent is at least somewhat aware of it's using PowerShell, not Bash, but still frequently forgets about it.

My hypotheses are:

  1. The tool is still called bash, the prompt is also saying "Executes a given bash command..." (in bash.txt);
  2. It sees command lines starting with $;
  3. It sees previous tail usage when continuing from a previous session.

Adding an environment variable mentioned here works, but it's undocumented.
Please optimize the prompts for PowerShell, or just revert to use git bash by default.

Plugins

Superpowers

OpenCode version

Desktop: 1.3.13

Steps to reproduce

As above.

Screenshot and/or share link

As above.

Operating System

Win11 24H2

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions