From 2259c15e4d6f80d026d555c1c4b7019581283a82 Mon Sep 17 00:00:00 2001 From: helix4u <4317663+helix4u@users.noreply.github.com> Date: Fri, 29 May 2026 15:47:48 -0600 Subject: [PATCH] fix(gateway): clarify status session usage label --- locales/af.yaml | 2 +- locales/de.yaml | 2 +- locales/en.yaml | 2 +- locales/es.yaml | 2 +- locales/pt.yaml | 2 +- tests/gateway/test_status_command.py | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/locales/af.yaml b/locales/af.yaml index 636bae754f..fd78cdb3f1 100644 --- a/locales/af.yaml +++ b/locales/af.yaml @@ -255,7 +255,7 @@ gateway: title: "**Titel:** {title}" created: "**Geskep:** {timestamp}" last_activity: "**Laaste aktiwiteit:** {timestamp}" - tokens: "**Tokens:** {tokens}" + tokens: "**Sessiegebruik (kumulatief):** {tokens}" agent_running: "**Agent loop:** {state}" state_yes: "Ja ⚡" state_no: "Nee" diff --git a/locales/de.yaml b/locales/de.yaml index f400dd9fb2..1079cb8d28 100644 --- a/locales/de.yaml +++ b/locales/de.yaml @@ -255,7 +255,7 @@ gateway: title: "**Titel:** {title}" created: "**Erstellt:** {timestamp}" last_activity: "**Letzte Aktivität:** {timestamp}" - tokens: "**Tokens:** {tokens}" + tokens: "**Sitzungsnutzung (kumulativ):** {tokens}" agent_running: "**Agent läuft:** {state}" state_yes: "Ja ⚡" state_no: "Nein" diff --git a/locales/en.yaml b/locales/en.yaml index 88d18a2f89..4d09efea41 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -270,7 +270,7 @@ gateway: title: "**Title:** {title}" created: "**Created:** {timestamp}" last_activity: "**Last Activity:** {timestamp}" - tokens: "**Tokens:** {tokens}" + tokens: "**Session usage (cumulative):** {tokens}" agent_running: "**Agent Running:** {state}" state_yes: "Yes ⚡" state_no: "No" diff --git a/locales/es.yaml b/locales/es.yaml index 08aaf9ad0b..d798c4858d 100644 --- a/locales/es.yaml +++ b/locales/es.yaml @@ -255,7 +255,7 @@ gateway: title: "**Título:** {title}" created: "**Creado:** {timestamp}" last_activity: "**Última actividad:** {timestamp}" - tokens: "**Tokens:** {tokens}" + tokens: "**Uso de sesión (acumulado):** {tokens}" agent_running: "**Agente activo:** {state}" state_yes: "Sí ⚡" state_no: "No" diff --git a/locales/pt.yaml b/locales/pt.yaml index 0c0eddad91..cbba969500 100644 --- a/locales/pt.yaml +++ b/locales/pt.yaml @@ -255,7 +255,7 @@ gateway: title: "**Título:** {title}" created: "**Criada:** {timestamp}" last_activity: "**Última atividade:** {timestamp}" - tokens: "**Tokens:** {tokens}" + tokens: "**Uso da sessão (cumulativo):** {tokens}" agent_running: "**Agente em execução:** {state}" state_yes: "Sim ⚡" state_no: "Não" diff --git a/tests/gateway/test_status_command.py b/tests/gateway/test_status_command.py index 0122259722..9ff824a8ff 100644 --- a/tests/gateway/test_status_command.py +++ b/tests/gateway/test_status_command.py @@ -97,7 +97,7 @@ async def test_status_command_reports_running_agent_without_interrupt(monkeypatc result = await runner._handle_message(_make_event("/status")) assert "**Session ID:** `sess-1`" in result - assert "**Tokens:** 321" in result + assert "**Session usage (cumulative):** 321" in result assert "**Agent Running:** Yes ⚡" in result assert "**Title:**" not in result running_agent.interrupt.assert_not_called() @@ -150,7 +150,7 @@ async def test_status_command_reads_token_totals_from_session_db(): result = await runner._handle_message(_make_event("/status")) # 1000 + 250 + 500 + 100 + 50 = 1,900 - assert "**Tokens:** 1,900" in result + assert "**Session usage (cumulative):** 1,900" in result @pytest.mark.asyncio @@ -171,7 +171,7 @@ async def test_status_command_tokens_zero_when_session_db_row_missing(): result = await runner._handle_message(_make_event("/status")) - assert "**Tokens:** 0" in result + assert "**Session usage (cumulative):** 0" in result @pytest.mark.asyncio