Skip to content

Rs/single shot payment review followups#3983

Closed
rickstaa wants to merge 5 commits into
ja/live-runnerfrom
rs/single-shot-payment-review-followups
Closed

Rs/single shot payment review followups#3983
rickstaa wants to merge 5 commits into
ja/live-runnerfrom
rs/single-shot-payment-review-followups

Conversation

@rickstaa

Copy link
Copy Markdown
Member

Quick PR to compare with the ja/live-runner branch.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b5c8bd4a-12bb-4eb0-bf1f-de5567289141

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rs/single-shot-payment-review-followups

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rickstaa rickstaa marked this pull request as draft July 13, 2026 18:56
@github-actions github-actions Bot added go Pull requests that update Go code AI Issues and PR related to the AI-video branch. labels Jul 13, 2026
@rickstaa rickstaa force-pushed the rs/single-shot-payment-review-followups branch 7 times, most recently from dd5c866 to a96f33f Compare July 13, 2026 19:41
ad-astra-video and others added 5 commits July 14, 2026 09:50
Pre-existing working-tree cleanup of ProxyLiveRunnerSingleShot: drop the
reservedID/reservedIDInput split, release the reserved session on return,
and remove the redundant session/manifest recheck.
- Drop the ModifyResponse block (Session-Id/Control/Payment response
  headers). WebSocket clients cannot read upgrade response headers, and
  SSE/HTTP clients derive the session-scoped payment URL from the 402
  challenge (manifest_id + orchestrator), so the headers were redundant.
  Removes the now-unused Session-Payment constant, sessionPaymentURL,
  and the response-header test assertions.
- Surface payment_interval_ms in the 402 challenge so held-open clients
  (SSE/websocket) size their payment cadence below the server tick
  instead of guessing.
- Rename startLiveRunnerSessionPaymentMonitor to ...PaymentLoop to match
  the startAutoConvertLoop convention (a start* method that owns its own
  goroutine); monitorCtx to loopCtx to match.
- Type the payment loop manifestID as core.ManifestID instead of a bare
  string, converting at the single use site, so it cannot be transposed
  with the adjacent runnerID/sessionID params.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The metering loop is now bound to the ctx passed in rather than always
detaching via context.WithoutCancel. Single-shot passes the request ctx
(r.Context()), so the loop stops when the request returns instead of
lingering up to one LivePaymentInterval; the persistent path passes
context.WithoutCancel(ctx) so its loop outlives the reservation request
and stops when the session is released. Matches the startAutoConvertLoop
convention: the caller owns the lifetime via the context.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rickstaa rickstaa force-pushed the rs/single-shot-payment-review-followups branch from a96f33f to 6737b7a Compare July 14, 2026 07:51
@rickstaa rickstaa marked this pull request as ready for review July 14, 2026 07:51
@rickstaa rickstaa marked this pull request as draft July 14, 2026 08:10
@rickstaa rickstaa closed this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Issues and PR related to the AI-video branch. go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants