Skip to content

Charge credits immediately on issue creation instead of on completion#2267

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 18, 2026
Merged

Charge credits immediately on issue creation instead of on completion#2267
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

@hiroshinishio hiroshinishio commented Feb 18, 2026

Summary

  • Moves insert_credit call to happen immediately after billing type is determined, before task execution begins
  • Previously, credits were only charged if the task completed successfully (is_completed), meaning failed runs were free
  • Credit balance depletion notification now checks balance regardless of completion status

@hiroshinishio hiroshinishio self-assigned this Feb 18, 2026
@hiroshinishio hiroshinishio merged commit b05fd7f into main Feb 18, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 18, 2026 05:29
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