Skip to content

Add no-heredoc instructions to prevent terminal file corruption#662

Merged
aaronpowell merged 3 commits intogithub:mainfrom
garrettsiegel:add-no-heredoc-instructions
Feb 5, 2026
Merged

Add no-heredoc instructions to prevent terminal file corruption#662
aaronpowell merged 3 commits intogithub:mainfrom
garrettsiegel:add-no-heredoc-instructions

Conversation

@garrettsiegel
Copy link
Contributor

Adds instructions to prevent file corruption caused by terminal heredoc operations in VS Code Copilot.

Problem

Heredoc syntax (cat << EOF) in VS Code's integrated terminal causes file corruption due to:

  • Tab completion interference
  • Quote/backtick escaping failures
  • Exit code 130 interruptions

Solution

This instruction file tells Copilot to always use file editing tools instead of terminal redirections for any file creation or modification.

Applies to all files (**) since the issue affects any agent writing files via terminal.

Copilot AI review requested due to automatic review settings February 3, 2026 17:33
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 adds a new instruction file to prevent file corruption caused by heredoc operations in VS Code's integrated terminal when using Copilot.

Changes:

  • Adds no-heredoc.instructions.md instruction file that enforces the use of file editing tools instead of terminal heredoc operations (cat << EOF, etc.)

@aaronpowell aaronpowell merged commit 19c6ea5 into github:main Feb 5, 2026
3 checks passed
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.

2 participants