Answer the prose review's first round

This commit is contained in:
2026-10-02 15:19:29 +02:00
parent f6f4b41739
commit ffcdfeaefd
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ def limit(raw: dict[str, object], window: str, zone: datetime.tzinfo | None) ->
# The input's fields: https://code.claude.com/docs/en/statusline
# A field absent, null or of the wrong type is left out silently: Claude Code's schema drifts by renaming or dropping fields, which a type warning would miss.
# Leave out a field absent, null or of the wrong type without a warning: many are absent in normal use (no rate_limits for API users), so drift shows only as absence.
def parse(raw: dict[str, object], zone: datetime.tzinfo | None) -> Status:
return Status(
context_percent=number(raw, "context_window", "used_percentage"),