fix(desktop): align usage activity with model calls - #3697
Open
liuxiaocs7 wants to merge 2 commits into
Open
Conversation
Read usage summary and activity from the Runtime Host canonical usage authority so Usage Statistics and Daily Review share the same model-call count. Keep tool calls visible as separately labelled activity and page both sources completely. Generated-by: OpenAI Codex
liuxiaocs7
force-pushed
the
fix/align-usage-request-counts
branch
from
August 24, 2026 14:14
430058a to
0395ff9
Compare
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
Fixes #3695
Refs #2128
Verification
node --test apps/desktop/dist/main/__tests__/runtime-host-usage-ipc-main.test.js apps/desktop/dist/main/__tests__/desktop-session-projection.test.js apps/desktop/dist/main/__tests__/settings-resource-state.test.js apps/desktop/dist/main/__tests__/runtime-host-settings-generation.test.js— 28 passednpm --workspace @maka/desktop run typecheck— passednpx biome check <16 changed files>— passednpm --workspace @maka/desktop run build:renderer— passednpm --workspace @maka/desktop run build-storybook— passednode scripts/asf-license-headers.mjs check— the changed files pass; the repository-wide command reports only pre-existing untrackeddocs/contribution/files, which are not part of this PRAI use
Select exactly one:
Tool(s) and scope: OpenAI Codex diagnosed the divergent Usage data paths, implemented the Runtime Host adapter and UI/type updates, resolved the rebase conflict, and added regression tests and fixture coverage.
Checklist
Does this PR entail a change in behavior?