anthropics / anthropics/claude-code

Expose Remote Control connection status in the statusLine JSON payload

Đang mở
#94,299 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:statusline enhancement
Ngôn ngữ chính
Python
Star
145k
Fork
23.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

**Feature request**

Custom `statusLine` scripts (configured via `settings.json` → `statusLine.command`) receive a JSON payload on stdin, documented at [statusline.md](https://code.claude.com/docs/en/statusline). The documented fields (`model`, `workspace`, `context_window`, `rate_limits`, `pr`, `vim.mode`, `agent.name`, etc.) do not include anything about Remote Control connection state.

Meanwhile, [remote-control.md](https://code.claude.com/docs/en/remote-control#check-connection-status) describes a native `/rc active` indicator that shows in the footer (or startup header, in fullscreen rendering) while a Remote Control connection is up — but this indicator is entirely separate from the custom statusline mechanism, and disappears from view once the conversation scrolls past the startup header (in fullscreen mode).

**Problem:** anyone running a custom statusline script has no way to reflect Remote Control's live connection status in it, since the data simply isn't passed to the script. The only options today are:
- a static/always-on hint in the custom statusline (misleading — doesn't reflect actual state), or
- rely on the native indicator, which is only reliably visible at session start in fullscreen mode.

**Proposed fix:** add a `remote_control` object to the statusline JSON payload, e.g.:

```json
"remote_control": {
"connected": true,
"url": "https://claude.ai/code/..."
}
```

This would let custom statusline scripts render an accurate, persistent, live RC status indicator alongside git branch, context usage, etc. — consistent with how `pr.number`/`pr.url` already mirror the footer's PR badge.

**Version:** Claude Code 2.1.270

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.