fix(chat): make context meter strictly backend-reported

Remove misleading local/cumulative token fallback in ContextDetailSheet and hide 0% badge when context used is unknown.
This commit is contained in:
M57 committed 2026-09-21 10:59:47 +03:00
1 parent 107701077d
commit 6fe62f9646
5 files changed
+23 -13

No files matched your search

+1
View File
@@ -1310,6 +1310,7 @@
<string name="context_prompt_input">المطالبة (المدخلات)</string>
<string name="context_tokens_note">تعكس رموز المطالبة إجمالي السياق المستخدم في هذه الجلسة حتى الآن.</string>
<string name="context_window">نافذة السياق</string>
<string name="context_window_usage_unavailable">استخدام نافذة السياق غير متوفر</string>
<string name="gif_play">تشغيل GIF</string>
<string name="kanban_filter_placeholder">تصفية المهام حسب العنوان أو الحالة أو المسؤول...</string>
<string name="logs_clipboard_label">سجلات Hermes</string>
+1
View File
@@ -1277,6 +1277,7 @@
<string name="context_prompt_input">提示词(输入)</string>
<string name="context_tokens_note">提示词 token 反映此会话迄今使用的总上下文。</string>
<string name="context_window">上下文窗口</string>
<string name="context_window_usage_unavailable">上下文窗口使用量不可用</string>
<string name="gif_play">播放 GIF</string>
<string name="kanban_filter_placeholder">按标题、状态或负责人筛选任务…</string>
<string name="logs_clipboard_label">Hermes 日志</string>
+1
View File
@@ -1437,6 +1437,7 @@
<string name="context_prompt_input">Prompt (input)</string>
<string name="context_tokens_note">Prompt tokens reflect total context used by this session so far.</string>
<string name="context_window">Context window</string>
<string name="context_window_usage_unavailable">Context window usage unavailable</string>
<string name="gif_play">Play GIF</string>
<string name="kanban_filter_placeholder">Filter tasks by title, status, or assignee...</string>
<string name="logs_clipboard_label">Hermes Logs</string>