Skip to content

fix(planner): suppress audio stat for zero-duration title allocations#102

Merged
ScottMorris merged 1 commit into
mainfrom
fix/planner-audio-zero-duration
Jun 25, 2026
Merged

fix(planner): suppress audio stat for zero-duration title allocations#102
ScottMorris merged 1 commit into
mainfrom
fix/planner-audio-zero-duration

Conversation

@ScottMorris

Copy link
Copy Markdown
Contributor

Codex follow-up to #101.

Summary

Titles with no assigned asset (duration = 0) were getting audio_bits_per_second set to the 192 kbps silent-fallback rate from estimate_title_audio_bitrate_bps, causing the Planner to display "192 kbps audio" next to "No asset / 0:00" rows even though that audio is never actually counted in the budget estimate.

Fix: gate audio_bits_per_second on duration > 0, matching the same guard that already zeroes out bits_per_second for these rows in allocate_title_bitrates.

Test plan

  • Title with no assigned asset → no audio stat shown in Planner breakdown.
  • Title with an assigned asset and audio mappings → audio stat still appears correctly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L3tSFK3P9vGwbNNtb4AYQG

Titles with no assigned asset (duration = 0) were getting
`audio_bits_per_second` set to the 192 kbps silent-fallback rate from
`estimate_title_audio_bitrate_bps`, causing the Planner to display
"192 kbps audio" next to "No asset / 0:00" rows even though that audio
is never counted in the budget estimate.

Gate `audio_bits_per_second` on a real duration, matching the same
`duration <= 0.0` guard that already zeroes out `bits_per_second` for
these rows.

Caught by Codex review on PR #101.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L3tSFK3P9vGwbNNtb4AYQG
@ScottMorris

Copy link
Copy Markdown
Contributor Author

@codex review

1 similar comment
@ScottMorris

Copy link
Copy Markdown
Contributor Author

@codex review

@github-actions

Copy link
Copy Markdown

Spindle JS tests

233 tests  ±0   233 ✅ ±0   6s ⏱️ -1s
 24 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7c380c1. ± Comparison against base commit 5ec9a85.

@github-actions

Copy link
Copy Markdown

Spindle Rust tests

222 tests  ±0   222 ✅ ±0   2s ⏱️ ±0s
  2 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7c380c1. ± Comparison against base commit 5ec9a85.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 7c380c1219

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ScottMorris ScottMorris merged commit ed45e3e into main Jun 25, 2026
8 checks passed
@ScottMorris ScottMorris deleted the fix/planner-audio-zero-duration branch June 25, 2026 06:05
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