Repository navigation
Conversation
Afloat16
marked this pull request as ready for review
November 16, 2026 20:27
1 task done
5 tasks done
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Delegated Messages and Responses requests can report cache hits through their protocol usage objects without a
timingsobject. The proxy currently leavesreused_tokensnull for those requests, so/status, the last request and aggregate totals lose reported cache reuse.Read Messages
usage.cache_read_input_tokensfrom both the initial message and final delta, and Responsesusage.input_tokens_details.cached_tokens. Preserve an explicitly reported zero and the existing timing-count precedence. Forwarded HTTP bodies and SSE bytes stay unchanged.Area
edge0-infer/)How was it tested?
The isolated before/after validation starts from upstream
f6bfa5546bcf89919f86946ec669bcc7f4cd526dand tests the exact source and regressions in this PR.platform_memory,ordered_json,template_tools). Fullctest --preset cpu --no-tests=error --output-on-failure -L L2 -R strata: 2 passed.app_generationtemporary-file andplatform_memoryenvironment failures; the production dependency-manifest check passes.macOS validation completed. The repository's official macOS CI passed: all 101 runnable L0/L1 tests passed, 3 device tests were skipped, and both delegated-engine L2 tests passed. The earlier fork macOS job had not obtained a runner; the official run now supplies that platform result.
Checklist