Skip to content

Track session usage totals - #26644

Merged
thdxr merged 16 commits into
devfrom
opencode/neon-pixel
May 12, 2026
Merged

thdxr merged 16 commits into
devfrom
opencode/neon-pixel

Conversation

@thdxr

@thdxr thdxr commented May 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Store session cost and token totals directly on the session row.
  • Maintain totals from step-finish part projections, including updates/removals, and backfill existing sessions in the migration.
  • Use denormalized totals for stats aggregation and regenerate SDK types.

Testing

  • bun typecheck
  • bun test test/session/schema-decoding.test.ts test/session/session-schema.test.ts

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@thdxr thdxr added the beta label May 11, 2026
opencode-agent Bot added a commit that referenced this pull request May 11, 2026
opencode-agent Bot added a commit that referenced this pull request May 12, 2026
opencode-agent Bot added a commit that referenced this pull request May 12, 2026
)
.pipe(Effect.forkChild)
yield* Effect.sleep("10 millis")
yield* ready.await.pipe(Effect.timeout("250 millis"))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

was this intentional? or was this an accidental change

@thdxr
thdxr merged commit 36d40fe into dev May 12, 2026
11 checks passed
@thdxr
thdxr deleted the opencode/neon-pixel branch May 12, 2026 05:19
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants