From ec3b584cedc2bde9a288a12b6f4d92a1e61b8b1b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 14:49:31 +0200 Subject: [PATCH] Say at the strftime call why the weekday stays English --- AGENTS.md | 1 - bin/statusline.py | 1 + docs/decisions.md | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 1d470c80..0f929337 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,4 +23,3 @@ Decisions live in `docs/decisions.md`: - review: the premises chunk's whole review is the human's approval - workflow-bench/: the remote may show the bench cases' names and commit SHAs - statusline.py: a field absent, null or of the wrong type is left out silently; only input that is not a JSON object warns -- statusline.py: the reset's weekday is English on every machine diff --git a/bin/statusline.py b/bin/statusline.py index a8fe12e1..f80e1987 100755 --- a/bin/statusline.py +++ b/bin/statusline.py @@ -99,6 +99,7 @@ def reset_suffix(at: datetime.datetime, now: datetime.datetime) -> str: left = f"{seconds // 3600}h{seconds % 3600 // 60}m" else: left = f"{seconds // 60}m" + # %a stays English on every machine; setlocale would make this read process-wide state. clock = at.strftime("%H:%M" if at.date() == now.date() else "%a %H:%M") return f" {DIM}{left} left ({clock}){RESET}" diff --git a/docs/decisions.md b/docs/decisions.md index bcdc66a3..0b2c7abd 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -87,7 +87,3 @@ ## statusline.py: a field absent, null or of the wrong type is left out silently; only input that is not a JSON object warns 2026-10-02, larv-review in PR #191, declining the logging audit's 🟢 to warn on a field of the wrong type. Applies KISS (`principles/technical-principles.md`). Absent and null fields are normal: API users get no `rate_limits`. Claude Code's schema changes more often by renaming or removing a field than by changing a field's type, and a type warning catches neither. Warning on types would need a table of the schema to catch only the rarer change. Valid while `parse` reads the fields one by one, with no schema table. - -## statusline.py: the reset's weekday is English on every machine - -2026-10-02, lilleman in PR #191, answering the product-owner review: the old `date +%a` followed `LC_TIME`; Python's `%a` does only after `setlocale`, which made the pure `reset_suffix` read process-wide state. Serves goal 1: the status line reads the same on every machine. Valid while the status line is read by its author alone.