Repository navigation
fix(web): preserve frozen currency bases in billing history - #809
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
8 of 16 tasks
This was referenced Oct 11, 2026
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.
LMM API Pull Request
变更说明 / Summary
Historical log prices now use the request's captured Credit-to-USD anchor or explicit frozen multiplier. Changing today's credit anchor or FX no longer changes an old absolute, expression, token, tool, or audio price. Missing historical evidence remains unavailable (
-); original log content is preserved.Wallet history now respects the Go 0.2.110 self DTO's historical Creem
amount_unit: CREDIT, whereamountalready contains raw ledger quota. For example, an oldamount: 500000remains 500000 quota (1 USD at 500000 quota/USD), instead of being multiplied by the current legacy batch scale again. An immutable positivecredited_quotaremains authoritative. Legacy records without a provable credit amount display-and cannot invent a payment-success receipt.Scope: frontend display only. This does not normalize raw historical
credited_quota, log totalquota, cumulative usage, balances, or other financial history. It is a separate source patch, not part of the frozen Web 0.1.144 release. No backend, database, production, release, or deployment changes.与上游的关系 / Upstream relationship
上游参考 / Upstream reference: N/A; preserves this repository's existing frozen pricing metadata and historical self DTO contract. The historical self DTO's
CREDITamount is distinct from the public-credit denomination of payment requests.关联 Issue / Related issue
N/A — found during the requested financial-history audit.
变更类型 / Type of change
验证 / Verification
Tested signed revision:
7695eb24470ff60c289a35ef792ea15bdddc145a.The wallet success fixtures now include the immutable
credited_quotareturned by current successful orders. A new rendered integration regression confirms that an old LEGACY order without frozen credit evidence cannot produce a guessed success receipt. No real-browser or production acceptance was performed; rendered integration checks use happy-dom. The complete Web suite was not run; verification was scoped to affected history and wallet paths.截图或日志 / Screenshots or logs
Regression examples: frozen Q=500000 and K=3500000 preserve an old price of 7 as 1 USD even when current K=500000; explicit USD snapshots are not converted again; historical Creem raw quota is not multiplied by Q. Original log strings remain unchanged. No layout or new UI text was introduced.
提交检查 / Checklist
-,不会按现时配置猜测历史金额。