Label provider token estimates in Codex memory settings

This commit is contained in:
yilsem committed 2026-10-09 13:36:39 +03:00
1 parent 21aa3c2247
commit 0fa42332c1
4 files changed
+18 -6

No files matched your search

@@ -415,13 +415,19 @@ export function CodexLinkSettings() {
<p className="break-words text-sm text-muted-foreground">{view.current_model_label}</p>
<dl className="my-3 grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-2 text-sm">
<dt>{copy.current}</dt>
<dd className="break-words">{number(target?.input_tokens ?? null)}</dd>
<dd className="break-words">
{number(target?.input_tokens ?? null)}
{target?.count_method === 'provider_estimate' ? ` · ${copy.estimated}` : ''}
{target?.count_method === 'verified_upper_bound' ? ` · ${copy.upperBound}` : ''}
</dd>
<dt>{copy.limit}</dt>
<dd className="break-words">{number(limit)}</dd>
<dt>{copy.summaries}</dt>
<dd>
{view.active_summary_count} · {number(view.summary_tokens)}{' '}
{view.summary_tokens !== null ? copy.tokens : ''}
{view.summary_token_measurement?.count_method === 'provider_estimate' ? ` · ${copy.estimated}` : ''}
{view.summary_token_measurement?.count_method === 'verified_upper_bound' ? ` · ${copy.upperBound}` : ''}
</dd>
</dl>
{view.last_operation_state && (
+4
View File
@@ -32,6 +32,8 @@ const en = {
tokens: 'tokens',
unmeasured: 'Not measured yet',
current: 'Current input',
estimated: 'Estimate',
upperBound: 'Verified upper bound',
limit: 'Effective threshold',
restart: 'The next Codex launch will use the new runtime. Existing chats keep their current process.',
activation: {
@@ -90,6 +92,8 @@ const tr: typeof en = {
tokens: 'token',
unmeasured: 'Henüz ölçülmedi',
current: 'Mevcut giriş',
estimated: 'Tahmin',
upperBound: 'Doğrulanmış üst sınır',
limit: 'Etkin eşik',
restart: 'Yeni runtime sonraki Codex açılışında kullanılacak. Açık sohbetler mevcut süreçleriyle devam eder.',
activation: {