Skip to content

Round customer savings estimates - #5

Merged
parasdoshicom merged 1 commit into
mainfrom
codex/round-savings-estimates
Sep 8, 2026
Merged

parasdoshicom merged 1 commit into
mainfrom
codex/round-savings-estimates

Conversation

@parasdoshicom

Copy link
Copy Markdown
Owner

Customer-facing dollar savings now use whole dollars in the Claude footer and local status report, matching the dashboard and avoiding false precision. The underlying aggregate arithmetic remains unchanged.

This publishes plugin version 1.6.5.

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:57:48.733394Z 806facd 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 b22708b into main Sep 8, 2026
0 of 6 checks passed
@parasdoshicom
parasdoshicom deleted the codex/round-savings-estimates branch September 8, 2026 18:55

@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: 806facd0d4

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

value = summary.get("estimated_value_usd")
if valid_number(hours) and valid_number(value):
pieces.extend((f"{hours:.1f}h est. saved", f"${value:,.2f} est. value"))
pieces.extend((f"{hours:.1f}h est. saved", f"${value:,.0f} est. value"))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use half-up rounding for customer-facing dollar totals

For estimates whose fractional part is exactly 0.5 and whose integer part is even, Python's .0f formatting uses ties-to-even rounding, so values such as $1062.50 become $1,062 and $0.50 becomes $0. These estimates can occur naturally (the existing status-line fixture already uses 1062.5), and this will disagree with dashboard-style half-up rounding despite the change intending to match that display; apply an explicit decimal half-up rule before formatting. The same format behavior is also used by status.py.

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