Permission-gate/tool-approval preview truncates full Windows paths
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the bug
When the CLI displays a permission-gate/tool-approval confirmation prompt before running a tool call (e.g., a PowerShell command referencing a file path), the rendered preview shows a truncated version of the path — dropping the leading drive letter and/or earlier path segments (e.g., showing \Users\UserName\ instead of the full C:\Users\UserName\Folder\SubFolder\...) — even though the actual command text passed to the tool contains the complete, correct absolute path.
Affected version
GitHub Copilot CLI 1.0.82
Steps to reproduce the behavior
- Start an interactive session with GitHub Copilot CLI on Windows.
- Ask the agent to run a PowerShell command that references a full absolute path, e.g.:
Get-ChildItem "C:\Users\Username\Folder\SubFolder" -Force - When the permission-gate confirmation dialog appears (asking to approve the tool call), observe the path as rendered in that preview.
- Compare against the actual command string — the underlying command is correct and full, but the displayed preview text is partial/truncated.
Expected behavior
The permission-gate preview should render the full, untruncated absolute path exactly as it appears in the command being executed, with no segments dropped.
Additional context
- CLI version: 1.0.82
- OS: Windows
- This is purely a display/rendering issue in the confirmation UI — the command itself executes against the correct full path when approved. Reproduced consistently across multiple tool-call approvals across multiple sessions.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Starte eine interaktive Windows-Sitzung in GitHub Copilot CLI und reproduziere die Bestätigungsaufforderung für permission-gate/tool-approval mit dem in der Issue gezeigten PowerShell-Befehl. Vergleiche die gerenderte Vorschau mit dem vollständigen Befehlstext und konzentriere dich darauf, wie der absolute Pfad angezeigt wird. Erledigt ist es, wenn die Vorschau den vollständigen Laufwerksbuchstaben und alle Pfadsegmente ohne Kürzung beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100