Add token count option for the new /statusline context window item
- 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 feature or problem you'd like to solve
/statusline was added in 1.0.30, and it lets us show the context window in the status bar. Right now, that item appears to show percentage only.
### Proposed solution
Add a built-in option for the context window item to show token count too, for example 52k/128k, or support modes like percentage | tokens | both.
statusLine.command already exists, but that is a custom-script workaround. This request is for a built-in option in the new /statusline feature.
### Example prompts or workflows
I want /statusline to support a context window display that shows a concrete token value instead of only a percentage.
### Additional context
Related:
- #2052 persistent token/context usage indicator
- #2342 customizable statusline / context % and usage
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by tracing the /statusline implementation and how the existing statusLine.command workaround exposes context usage. Define the built-in display modes requested—percentage, tokens, or both—and verify that the context window can show a concrete value such as 52k/128k without relying on a custom command.
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
- Tính năng
- Độ 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