PowerShell / PowerShell/PowerShellEditorServices

DBG: Prompt Injection Necessary?

Open
#998 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Debugging Area-Extension Terminal Issue-Enhancement
Dominant language
C#
Stars
767
Forks
266
Avg merge
3d 16h
Merged PRs (30d)
1

Description

https://github.com/PowerShell/PowerShellEditorServices/blob/d156a73bc04f6c4061a324bd2f0a852995829d64/src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs#L744-L752

Is this function really necessary? The prompt function already has this DBG: detection in it, and if someone has customized the prompt (as I have), it adds an extra DBG: where it is unwanted. Perhaps a toggle feature flag via the API can be made available?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs#L744-L752 and compare this function with the prompt function's existing DBG: detection. Determine whether the duplicate prompt modification is still necessary and clarify whether the intended result is removal or an API feature flag; the issue is done when customized prompts no longer receive an unwanted extra DBG:.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.