Answer the prose review's first round
This commit is contained in:
+1
-1
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user