makecindy / makecindy/cindy

Codex 订阅会话缺少剩余用量显示,希望与 Claude 侧对齐

Open
#1,415 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**客户端版本**: 0.1.18
**反馈类型**: feature

---

## 使用场景
同时使用 Claude 和 Codex(ChatGPT 订阅登录)时,Claude 侧界面会显示订阅的剩余用量,而 Codex 会话没有任何用量/额度显示,无法知道当前 5 小时窗口和周窗口还剩多少。只能手动切到 Codex 里敲 `/status` 才能查到,两边体验不一致。

## 诉求
Codex 订阅会话也展示剩余用量,与 Claude 侧的显示方式保持一致。

## 建议方案
数据本身是可获取的:Codex 协议的 `TokenCount` 事件中带有 `rate_limits` 字段,包含 5 小时窗口与周窗口的用量百分比(Codex TUI 自己的用量条和 `/status` 就是消费这份数据)。宿主端监听并解析该事件即可拿到,无需额外接口。

注:API key 登录模式下本来就没有订阅额度概念,可以不展示;本诉求只针对订阅(OAuth)登录的场景。
---
**OS**: win32 x64 (10.0.26100)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing Claude subscription usage display and the Codex session event-handling path. Trace TokenCount events and their rate_limits data for OAuth sessions, then verify that the five-hour and weekly remaining usage appear consistently while API-key sessions remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.