github / github/copilot-cli

Support Interactive TTY Mode for `!` Shell Command Execution

オープン
#907 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る
area:tools
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the feature or problem you'd like to solve

When using `!` to directly execute bash commands in Copilot CLI, interactive commands (like git log, less, vim) dump all output at once instead of allowing user interaction. Users cannot scroll, navigate, or interact with pagers/editors as they would in a normal terminal.

### Proposed solution

Enable TTY pass-through for commands executed via the `!` prefix, allowing interactive programs to function normally. This would:

- Allow pagers (less, more, git log) to be navigated with keyboard controls
- Support interactive editors (vim, nano) when invoked
- Preserve the same terminal experience users expect from their shell

### Example prompts or workflows

- `!git log` - Navigate commit history with j/k keys, search with /, quit with q
- `!less README.md` - Scroll through file contents interactively
- `!git diff` - Page through diffs instead of having them dumped to screen
- `!top` or `!htop` - View live-updating system monitors
- `!man git` - Read man pages with normal pager navigation

### Additional context

Currently, running `!git log` outputs the entire log history at once, making it difficult to read and navigate. Users must exit the CLI to run interactive commands normally, breaking their workflow.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。