Say at the strftime call why the weekday stays English
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user