Skip to content

Commit bff3b59

Browse files
committed
docs: add terminal output workaround example
1 parent 9d8169a commit bff3b59

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ Purpose: give an AI coding agent the minimal, repo-specific knowledge needed to
7373

7474
- **Quick pointers for the agent**:
7575
- Prefer editing/adding small focused changes under `src/` and run `dotnet test` on the affected test project(s).
76+
- Terminal reliability tip (for `gh` and other interactive CLI tools): if foreground terminal output is truncated or switches to an alternate buffer, run the command with `isBackground=true` and then read full output with `get_terminal_output`. Also set `GH_PAGER=cat` and `GH_FORCE_TTY=0` for `gh` commands to reduce pager/TTY issues.
77+
78+
Example workflow:
79+
80+
```text
81+
1) run_in_terminal(
82+
command: "GH_PAGER=cat GH_FORCE_TTY=0 gh pr view 4840 --json number,title,url",
83+
isBackground: true
84+
)
85+
2) get_terminal_output(<terminal_id>)
86+
```
7687
- Use the `dotnet` CLI to validate packaging and cross-project integration, for example:
7788

7889
```bash

0 commit comments

Comments
 (0)