github / github/copilot-cli

statusLine.command is not executed or rendered when footer.showCustom=true

Đang mở
#3,192 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
area:configuration area:terminal-rendering
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

With `footer.showCustom=true` and `statusLine.command` set to a valid executable, Copilot CLI 1.0.43 on macOS reads `settings.json` for built-in footer items, but never executes the custom status line command and never renders custom output.

There is no visible error in the TUI.

### Affected version

GitHub Copilot CLI 1.0.43

### Steps to reproduce

1. Put this in `~/.copilot/settings.json`:

```json
{
"statusLine": {
"type": "command",
"command": "/bin/date",
"padding": 1
},
"footer": {
"showCustom": true,
"showBranch": true,
"showAgent": true
}
}
```

2. Start a fresh `copilot` session in a new terminal.
3. Verify that built-in footer settings are applied (for example, `showBranch` affects the footer, which shows `settings.json` is being read).
4. Run `/statusline` and verify that `custom` is enabled.
5. Observe that the custom output never appears in the status line.

### Additional verification

I also replaced `/bin/date` with a trivial local shell script that:
- writes a timestamp to a file
- reads stdin
- prints a short string to stdout

That script also never ran: no file was created and no custom output was rendered.

### Expected behavior

When `footer.showCustom=true`, the configured `statusLine.command` should execute, receive the current session status JSON on stdin, and render its stdout in the custom status line area.

### Actual behavior

Built-in footer/status line settings are applied, but the custom `statusLine.command` appears not to execute at all and nothing is rendered for the custom status line item.

### Environment

- OS: macOS
- Copilot CLI: 1.0.43

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với settings.json được nêu và lệnh /bin/date, sau đó kiểm tra đường dẫn /statusline và cách xử lý footer cho showCustom. Xác minh xem lệnh được cấu hình có được gọi với JSON trạng thái phiên trên stdin hay không. Hoàn tất khi lệnh chạy và stdout của lệnh xuất hiện trong dòng trạng thái tùy chỉnh khi footer.showCustom=true.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.