Skip to content

feat(agy-proxy): emit cached_tokens from agy cache_read_tokens + muse warm-host kill test (#480) - #3764

Merged
dezren39 merged 2 commits into
mainfrom
queue/4810-480-warm-verify
Nov 1, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/4810-480-warm-verify

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What

Verification follow-up for #480 (queue task 4810), two changes:

agy-proxy: cached-token emission (settles the agy question). The agy CLI's stream-json result.usage DOES carry a cached-input figure — cache_read_tokens, cumulative over the session like its sibling counters (verified against the real CLI's result shape on the laptop 2026-11-01: usage keys input_tokens, output_tokens, thinking_tokens, cache_read_tokens, total_tokens). agy-proxy now deltas it per turn and emits prompt_tokens_details.cached_tokens in both response shapes when > 0 — the same opencode#394 contract the sibling proxies (muse/codex/commandcode) already implement. Omitted entirely when the CLI reports none. Header comment records the settled answer.

muse-proxy test: warm-host kill degradation. New test 'warm host killed mid-turn degrades to a successful cold exec request (#480)': the stub MSP host SIGKILLs itself mid-turn on turn 2 (before any delta), and the request must still answer via the cold exec path. This was the one spike criterion whose muse-side path was previously only covered by a serve-start failure test (codex already had 'daemon death mid-turn falls back to exec and still answers').

Tests

#480 criteria

Per-criterion verification evidence for all five spike criteria is posted on #480 with this PR; the issue closes when this PR merges.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 15:56
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d816feb6-3a0f-4ac2-ae48-f57954c68501
Commits

Reviewing files that changed from the base of the PR and between e764f4e and 511515d.

Files selected for processing: 3
  • bin/agy-proxy.mjs
  • bin/agy-proxy.test.mjs
  • bin/muse-proxy.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T15:59:46.113349Z 511515d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit fec6a9d into main Nov 1, 2026
1 check passed
@dezren39
dezren39 deleted the queue/4810-480-warm-verify branch November 1, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant