hive-agent: warn on usage responses with no recognisable windows
addresses argus's review on #4842 (c88740): fetch's success path was silent when the response parsed but windows() found nothing to record. should_warn_empty tracks the same once-per-streak shape as the existing token-skip logging, reset the moment a response has windows again, and never logs the body. Also notes in the observability doc that a past resets_at means the paired percent gauge is stale.
This commit is contained in:
parent
8a735ddcb3
commit
5d7042e655
2 changed files with 40 additions and 2 deletions
|
|
@ -378,7 +378,8 @@ with the OAuth access token from the agent's own
|
|||
`~/.claude/.credentials.json`. The harness only reads that token and never
|
||||
refreshes it — claude owns refresh-token rotation. An agent with no OAuth
|
||||
session (API-key backends, not yet logged in) or an expired token skips the
|
||||
poll, so a gauge keeps its last value until the next successful poll.
|
||||
poll, so a gauge keeps its last value until the next successful poll — a
|
||||
`resets_at` in the past means the paired `percent` is stale.
|
||||
|
||||
Resource attributes (`service.name`, `agent`, `hive`, `swarm`) come from the
|
||||
same container-wide `OTEL_RESOURCE_ATTRIBUTES` as everything else in this
|
||||
|
|
|
|||
Loading…
Reference in a new issue