fix(remote): forward Codex usage snapshots over SSH - #295
Open
F21HGG wants to merge 3 commits into
Open
Conversation
- emit cached Codex quota and token snapshots from the remote bridge\n- merge remote snapshots by freshness and isolate per-host token baselines\n- cover the wire protocol and document forwarded usage data
Bound the initial rollout scan and coalesce overlapping polls so large Codex histories cannot block control connections.
Owner
|
@F21HGG 感谢提交,CI 检查未通过,麻烦解决一下 |
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.
Summary
codex_usagemessage from the remote bridge using the newest Codex rollout quota and token snapshotWhy
Remote Codex hook notifications and app-server thread events already reached Ping Island over SSH, but usage loading only scanned the Mac's local
~/.codex/sessions. As a result, sessions running exclusively on a remote host did not contribute usage data.Validation
git diff --checkswiftc -frontend -parsefor all changed Swift sources and testsswift build --package-path Prototype --product PingIslandBridgecodex_usagepayload with plan, quota windows, and token totalsEnvironment limitations
swift test --package-path Prototype --filter remoteAgentForwardsCodexUsageSnapshotsis currently blocked in this Command Line Tools environment by the existing test target errorno such module Testing