Skip to content

Refresh savings summary when idle - #4

Merged
parasdoshicom merged 1 commit into
mainfrom
codex/refresh-savings-summary
Sep 8, 2026
Merged

parasdoshicom merged 1 commit into
mainfrom
codex/refresh-savings-summary

Conversation

@parasdoshicom

Copy link
Copy Markdown
Owner

ChatData now refreshes the local aggregate dashboard summary during sync even when no usage events are queued. This lets the Claude footer replace stale setup guidance after the dashboard already has a baseline, without adding any telemetry fields.

This also publishes plugin version 1.6.4.

Validation: python3 -m unittest discover -s tests -p 'test_*.py' (149 tests), git diff --check.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 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-09-08T18:52:40.697989Z 91a6173 PR opened
ℹ️ 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.

@parasdoshicom
parasdoshicom merged commit a096be0 into main Sep 8, 2026
0 of 6 checks passed
@parasdoshicom
parasdoshicom deleted the codex/refresh-savings-summary branch September 8, 2026 18:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 91a6173bb8

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +338 to +340
for client, installation in config["installations"].items():
try:
response = _request("GET", "/api/individual/config", installation["token"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Limit idle refreshes to actual sync points

For a linked Claude Code installation with no queued ChatData event, the unconditional Stop hook in plugins/chatdata/hooks/hooks.json still calls flush(silent=True) after every ordinary Claude turn. This new GET therefore contacts the usage service once per configured installation on unrelated, non-ChatData turns, exposing their timing and making the synchronous Stop hook wait for network timeouts despite reporting being documented as scoped to explicit ChatData activity. Refresh only from SessionStart/explicit sync, or only after this Stop hook actually completed a ChatData workflow.

Useful? React with 👍 / 👎.

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