fix: deep dive systematic fixes + WASM TV Guide auto-advance#64
Merged
AndrewAltimit merged 2 commits intomainfrom Mar 10, 2026
Merged
fix: deep dive systematic fixes + WASM TV Guide auto-advance#64AndrewAltimit merged 2 commits intomainfrom
AndrewAltimit merged 2 commits intomainfrom
Conversation
Systematic improvements from deep dive audit across 7 crates: - Extract CommandSignal enum from CommandOutput for type-safe signal handling - Fix integer overflow in AVCC NAL parsing (checked_add) - Add bounded packet budget across H.264 reinit attempts - Fix saturating_add in streaming seek interpolation - Add stall detection in download throttle loop to prevent deadlocks - Exponential backoff for auth rate limiting (base * 2^excess, capped 64x) - Add FFI buffer size validation before copy_nonoverlapping - Document PSK auth TLS handshake ordering WASM TV Guide auto-advance: - Add 'ended' event listener on <video> element to detect episode completion - Add auto_advance_episode() to WASM backend matching desktop behavior - Query deterministic schedule for next episode, skip <5s remaining slots Tests: auto-advance schedule query, episode boundary, seek saturation, exponential backoff, AVCC overflow, FFI buffer validation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gemini AI Code ReviewIssues (if any)
Previous Issues (for incremental reviews)(none) Suggestions (if any)(none) Notes
Generated by Gemini AI (gemini-3.1-pro-preview). Supplementary to human reviews. |
Automated fix by Claude in response to Gemini/Codex review. Iteration: 1/5 Co-Authored-By: AI Review Agent <noreply@anthropic.com>
Owner
Author
Review Response Agent (Iteration 1)Status: Changes committed, pushing... Commit: Fixed Issues
Ignored Issues
Deferred to Human
Notes
Automated summary of agent fixes. |
Gemini AI Incremental ReviewThis is an incremental review focusing on changes since the last review. Issues (if any)(none) Previous Issues (for incremental reviews)
Suggestions (if any)(none) Notes
Generated by Gemini AI (gemini-3.1-pro-preview). Supplementary to human reviews. |
Owner
Author
Review Response Agent (Iteration 2)Status: No changes needed
Fixed Issues
Ignored Issues
Deferred to Human
Notes
The agent reviewed feedback but no file modifications were detected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CommandOutputinto a dedicatedCommandSignalenum with convenience constructors, updated across 9+ files in 5 crateschecked_add), saturating seek interpolation, bounded H.264 reinit packet budget (1500 total)<video>endedevent and automatically tune to the next episode via deterministic schedule query -- the desktop build already had this but WASM was missing it entirelyTest plan
cargo test --workspace)cargo clippy --workspace -- -D warnings)./scripts/build-wasm.sh)auto_advance_skips_to_next_episode,schedule_at_episode_boundary_yields_next,seek_interpolation_saturates_on_large_offset,test_rate_limit_exponential_backoff,avcc_to_annex_b_huge_nal_length_no_overflowGenerated with Claude Code