Skip to content

Savings ledger 5/6: sidebar savings rows - #33

Merged
cris005 merged 1 commit into
mainfrom
savings/05-sidebar
Nov 2, 2026
Merged

cris005 merged 1 commit into
mainfrom
savings/05-sidebar

Conversation

@cris005

@cris005 cris005 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Part 5 of 6.

With a price                          Without a price
  pings     2/5 ✓ hit ($0.05)           pings     2/5 ✓ hit
  saved     $0.42 · 2 rewrites          saved     2 rewrites · 282k
  return    9× ping cost                return    9× ping cost
  • saved row: shows nothing yet until the first rescue.
  • return row: the avoided cost as a multiple of the ping cost. A tiny return shows as <0.1×.
  • Pings row: the ($…) suffix is the cost of the current stretch's pings.
  • Dollars: shown only when the session is priced. A small negative net shows as -<$0.01.
  • Hidden: the rows are hidden with savings off, before the first ping, and for unmanaged or child sessions.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@cris005
cris005 added this pull request to stack #35 October 31, 2026 13:27
@cris005 cris005 changed the title feat(sidebar): show savings rows Savings ledger 5/6: sidebar savings rows Oct 31, 2026
@cris005
cris005 force-pushed the savings/05-sidebar branch 3 times, most recently from d882f80 to 651007f Compare November 2, 2026 03:59
Base automatically changed from savings/04-engine to main November 2, 2026 03:59
Adds the `saved` and `return` rows and the `($…)` cost of the current stretch on the pings row, in dollars when the session is priced and unit-free otherwise, with formatUsd and formatMultiple.
@cris005
cris005 force-pushed the savings/05-sidebar branch from 651007f to b6e34f0 Compare November 2, 2026 03:59
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@cris005
cris005 merged commit defa844 into main Nov 2, 2026
3 checks passed
@cris005
cris005 deleted the savings/05-sidebar branch November 2, 2026 05:21
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