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 — feat(app): show Go allowance when a session costs nothing by adamdotdevin · Pull Request #58566 · anomalyco/opencode

Conversation

@adamdotdevin

@adamdotdevin adamdotdevin commented Oct 24, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Follow-up to #58562, which this is stacked on. The TUI version is #58565.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Once OpenCode Console reports a request's real cost, a Go session costs $0. The context button would then read $0.00, because Go models have a catalog price. It now shows the Go allowance the session used instead, from data.session.allowance() (#58562):

  • context button: 12k · $0.42 allowance instead of 12k · $0.00
  • its tooltip: an Allowance row, under Cost when the session also paid (Go falls back to the balance once the allowance runs out)
  • context tab: an Allowance Used stat after Total Cost, only when there is some

Sessions without an allowance look the same as before. New strings are in English only; other locales fall back to it.

How did you verify your code works?

bun typecheck, bun test and bun run lint:changed in gui-extensions. There's no test of the cost display today, and the allowance itself is covered in #58562. No screenshot: no server reports an allowance until Console ships it.

Screenshots / recordings

None yet, see above.

Checklist

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@adamdotdevin
adamdotdevin force-pushed the app-go-allowance branch from dcbe30e to bb8fc95 Compare October 24, 2026 01:54
@adamdotdevin
adamdotdevin force-pushed the go-allowance branch from ad5d0bf to fbf8ee7 Compare October 24, 2026 08:12
@adamdotdevin
adamdotdevin force-pushed the app-go-allowance branch from bb8fc95 to 35c54c6 Compare October 24, 2026 08:12
Base automatically changed from go-allowance to dev October 24, 2026 08:32
@adamdotdevin
feat(app): show Go allowance when a session costs nothing
ba60043
@adamdotdevin
adamdotdevin force-pushed the app-go-allowance branch from 35c54c6 to ba60043 Compare October 24, 2026 08:33
@adamdotdevin
adamdotdevin merged commit 1873fbe into dev Oct 24, 2026
19 checks passed

Uh oh!

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

@adamdotdevin
adamdotdevin deleted the app-go-allowance branch October 24, 2026 08:43
@adamdotdevin adamdotdevin mentioned this pull request Oct 24, 2026
refactor(core): keep Go allowance out of messages and sessions #58765
Merged
3 of 6 tasks
@opencode-agent opencode-agent Bot mentioned this pull request Oct 27, 2026
[FEATURE]: Persist the Go allowance a session used (assistant message + session_v2) so clients can show a per-session figure #59653
Open
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@adamdotdevin
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.