Skip to content

fix: remove hardcoded Unix $ prompt prefix from terminal UI#11429

Open
shanevcantwell wants to merge 1 commit intocontinuedev:mainfrom
shanevcantwell:fix/terminal-prompt-prefix
Open

fix: remove hardcoded Unix $ prompt prefix from terminal UI#11429
shanevcantwell wants to merge 1 commit intocontinuedev:mainfrom
shanevcantwell:fix/terminal-prompt-prefix

Conversation

@shanevcantwell
Copy link
Contributor

@shanevcantwell shanevcantwell commented Mar 14, 2026

Summary

  • Removes the hardcoded $ prefix from terminal command display in the GUI
  • The $ is a Unix bash convention that has no meaning for Windows users (PowerShell uses PS>, cmd uses >)
  • It doesn't reflect the user's actual shell — Continue doesn't know which shell runs the command
  • The command is already visually distinct (styled text inside a labeled "Terminal" block), so the prefix adds no information and is misleading cross-platform

Test plan

  • Verify terminal commands render without $ prefix
  • Verify copy button copies command text without $ prefix
  • Run cd gui && npx vitest run UnifiedTerminal

Closes #11428

🤖 Generated with Claude Code


Summary by cubic

Removed the hardcoded $ prefix from terminal command display and copy-to-clipboard so commands are shell-agnostic and accurate across OSes. Closes #11428.

Written for commit 87de815. Summary will update on new commits.

The terminal command display hardcoded a `$ ` before every command.
This is a Unix shell convention with no meaning on Windows (PowerShell,
cmd) and doesn't reflect the user's actual shell. Since the command is
already visually distinct inside a labeled Terminal block, the prefix
adds no information and is misleading cross-platform.

Closes continuedev#11428

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shanevcantwell shanevcantwell requested a review from a team as a code owner March 14, 2026 15:51
@shanevcantwell shanevcantwell requested review from sestinj and removed request for a team March 14, 2026 15:51
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Mar 14, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Terminal UI shows Unix $ prompt prefix on all platforms

1 participant