feat(status): restore model and context in gateway status
PROBLEM: The old public /status PR drifted out of the current Amy patch stack, leaving /status without the model/provider, context window, or explicit cumulative token label that Wolfram uses to monitor context pressure from chat. SOLUTION: Re-port the feature onto the current gateway status handler. Prefer live/cached agent runtime metadata, fall back to SessionDB + SessionStore state between turns, add localized status model/context lines, and keep token totals explicitly labeled cumulative. Verification: tests/gateway/test_status_command.py, tests/hermes_cli/test_commands.py
This commit is contained in:
committed by
Teknium
parent
5035fa9029
commit
ead38107a2
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Titel:** {title}"
|
||||
created: "**Geskep:** {timestamp}"
|
||||
last_activity: "**Laaste aktiwiteit:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Kumulatiewe API-tokens (elke oproep weer gestuur):** {tokens}"
|
||||
agent_running: "**Agent loop:** {state}"
|
||||
state_yes: "Ja ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Titel:** {title}"
|
||||
created: "**Erstellt:** {timestamp}"
|
||||
last_activity: "**Letzte Aktivität:** {timestamp}"
|
||||
model: "**Modell:** `{model}`"
|
||||
model_provider: "**Modell:** `{model}` ({provider})"
|
||||
context: "**Kontext:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Kontext:** ~{used} Tokens"
|
||||
tokens: "**Kumulierte API-Tokens (bei jedem Aufruf erneut gesendet):** {tokens}"
|
||||
agent_running: "**Agent läuft:** {state}"
|
||||
state_yes: "Ja ⚡"
|
||||
|
||||
@@ -281,6 +281,10 @@ gateway:
|
||||
title: "**Title:** {title}"
|
||||
created: "**Created:** {timestamp}"
|
||||
last_activity: "**Last Activity:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Cumulative API tokens (re-sent each call):** {tokens}"
|
||||
agent_running: "**Agent Running:** {state}"
|
||||
state_yes: "Yes ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Título:** {title}"
|
||||
created: "**Creado:** {timestamp}"
|
||||
last_activity: "**Última actividad:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Tokens de API acumulados (reenviados en cada llamada):** {tokens}"
|
||||
agent_running: "**Agente activo:** {state}"
|
||||
state_yes: "Sí ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Titre :** {title}"
|
||||
created: "**Créé :** {timestamp}"
|
||||
last_activity: "**Dernière activité :** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Jetons :** {tokens}"
|
||||
agent_running: "**Agent en cours :** {state}"
|
||||
state_yes: "Oui ⚡"
|
||||
|
||||
@@ -273,6 +273,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Teideal:** {title}"
|
||||
created: "**Cruthaithe:** {timestamp}"
|
||||
last_activity: "**Gníomhaíocht is déanaí:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Comharthaí:** {tokens}"
|
||||
agent_running: "**Gníomhaire ag rith:** {state}"
|
||||
state_yes: "Tá ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Cím:** {title}"
|
||||
created: "**Létrehozva:** {timestamp}"
|
||||
last_activity: "**Utolsó tevékenység:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Tokenek:** {tokens}"
|
||||
agent_running: "**Ügynök fut:** {state}"
|
||||
state_yes: "Igen ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Titolo:** {title}"
|
||||
created: "**Creata:** {timestamp}"
|
||||
last_activity: "**Ultima attività:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Token:** {tokens}"
|
||||
agent_running: "**Agente in esecuzione:** {state}"
|
||||
state_yes: "Sì ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**タイトル:** {title}"
|
||||
created: "**作成日時:** {timestamp}"
|
||||
last_activity: "**最終アクティビティ:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**トークン:** {tokens}"
|
||||
agent_running: "**エージェント実行中:** {state}"
|
||||
state_yes: "はい ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**제목:** {title}"
|
||||
created: "**생성됨:** {timestamp}"
|
||||
last_activity: "**최종 활동:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**토큰:** {tokens}"
|
||||
agent_running: "**에이전트 실행 중:** {state}"
|
||||
state_yes: "예 ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Título:** {title}"
|
||||
created: "**Criada:** {timestamp}"
|
||||
last_activity: "**Última atividade:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Tokens de API cumulativos (reenviados a cada chamada):** {tokens}"
|
||||
agent_running: "**Agente em execução:** {state}"
|
||||
state_yes: "Sim ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Название:** {title}"
|
||||
created: "**Создано:** {timestamp}"
|
||||
last_activity: "**Последняя активность:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Токены:** {tokens}"
|
||||
agent_running: "**Агент активен:** {state}"
|
||||
state_yes: "Да ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Başlık:** {title}"
|
||||
created: "**Oluşturuldu:** {timestamp}"
|
||||
last_activity: "**Son etkinlik:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Token:** {tokens}"
|
||||
agent_running: "**Aracı çalışıyor:** {state}"
|
||||
state_yes: "Evet ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**Назва:** {title}"
|
||||
created: "**Створено:** {timestamp}"
|
||||
last_activity: "**Остання активність:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Токени:** {tokens}"
|
||||
agent_running: "**Агент активний:** {state}"
|
||||
state_yes: "Так ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**標題:** {title}"
|
||||
created: "**建立時間:** {timestamp}"
|
||||
last_activity: "**最近活動:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Token 數:** {tokens}"
|
||||
agent_running: "**代理執行中:** {state}"
|
||||
state_yes: "是 ⚡"
|
||||
|
||||
@@ -269,6 +269,10 @@ Future messages in this room will use that transcript until `/reset` or another
|
||||
title: "**标题:** {title}"
|
||||
created: "**创建时间:** {timestamp}"
|
||||
last_activity: "**最近活动:** {timestamp}"
|
||||
model: "**Model:** `{model}`"
|
||||
model_provider: "**Model:** `{model}` ({provider})"
|
||||
context: "**Context:** {used} / {total} ({pct}%)"
|
||||
context_used: "**Context:** ~{used} tokens"
|
||||
tokens: "**Token 数:** {tokens}"
|
||||
agent_running: "**代理运行中:** {state}"
|
||||
state_yes: "是 ⚡"
|
||||
|
||||
Reference in New Issue
Block a user