GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(console): merge duplicate Go usage rows by opencode-agent[bot] · Pull Request #45503 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #45502

Type of change

  • Bug fix

What does this PR do?

Merge Go usage rows with the same model ID and resolved quota multiplier. Historical requests without multiplier metadata and newer recorded requests are separate SQL groups, but can resolve to the same rate and appear twice in the table.

Sum their existing cost and quota cost before sorting and allocating percentages; preserve the estimated flag if either group is estimated. Different models and actual multiplier changes remain separate. Billing, quota enforcement, and peak/off-peak pricing are unchanged.

How did you verify your code works?

  • Regression tests failed before the fix and pass afterward, covering both merge orders, preserved totals and rounding, unchanged inputs, distinct model IDs, and unknown/different rates.
  • bun test test/liteUsage.test.ts test/pricing.test.ts from packages/console/app: 17 passed.
  • GOMAXPROCS=2 bun typecheck from packages/console/app: passed.
  • Prettier and git diff --check: passed. Scoped Oxlint: no errors; one pre-existing consistent-return warning in getModelQuotaLimit.

Screenshots / recordings

No JSX or styling changes. Validated the real aggregation helper with synthetic records; an authenticated browser/production-data check was not performed.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Requested by: @MrMushrooooom (Jack via Slack)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@MrMushrooooom @opencode-agent
fix(console): merge duplicate Go usage rows
7a4a19d
Combine historical and recorded usage after their quota multipliers resolve, while retaining different model IDs and rates. Preserve recorded costs and quota totals before allocating display percentages.
@opencode-agent opencode-agent Bot assigned MrMushrooooom Aug 27, 2026
@github-actions github-actions Bot added the contributor label Aug 27, 2026
@MrMushrooooom
MrMushrooooom requested a review from fwang August 27, 2026 07:06
@github-actions github-actions Bot mentioned this pull request Aug 27, 2026
fix(console): merge duplicate Go usage rows with the same resolved multiplier #45512
Closed
3 tasks done
@fwang
fwang merged commit 6568a82 into dev Aug 27, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fwang
fwang deleted the go-usage-rows branch August 27, 2026 07:11
Archipel pushed a commit to Archipel/opencode that referenced this pull request Aug 29, 2026
@opencode-agent @MrMushrooooom Thomas Weyn
fix(console): merge duplicate Go usage rows (anomalyco#45503)
dfa91ed
Co-authored-by: MrMushrooooom <[email protected]>
@github-actions github-actions Bot mentioned this pull request Aug 31, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@opencode-agent @MrMushrooooom
fix(console): merge duplicate Go usage rows (anomalyco#45503)
1212bfe
Co-authored-by: MrMushrooooom <[email protected]>
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@opencode-agent @MrMushrooooom
fix(console): merge duplicate Go usage rows (anomalyco#45503)
73a411d
Co-authored-by: MrMushrooooom <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fwang fwang Awaiting requested review from fwang

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@MrMushrooooom MrMushrooooom

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

console: Go usage breakdown shows duplicate model rows

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@fwang @MrMushrooooom
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.