Fix historic mode: slider directly drives LED matrix instead of auto-playback - #3
Draft
Vaibhav-Hariani with Copilot wants to merge 2 commits into
Draft
Fix historic mode: slider directly drives LED matrix instead of auto-playback#3Vaibhav-Hariani with Copilot wants to merge 2 commits into
Vaibhav-Hariani with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: Vaibhav-Hariani <62775035+Vaibhav-Hariani@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Redesign historic mode synchronization with Raspberry Pi driver
Fix historic mode: slider directly drives LED matrix instead of auto-playback
Feb 26, 2026
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.
Historic mode used autonomous timestamp playback in
driver.py— on every Streamlit re-render the UI wrote the sameviewing_timestampback to metadata, causing the driver to endlessly reset to the slider's position and auto-advance independently of user input.Changes
raspi_code/driver.pystarting_timestamp,viewing_idx,historic_timestamps,historic_start_index,speed,ticks) with a singlelast_historic_timestampguard. The driver now renders exactly the timestamp the slider writes to metadata — nothing more.historic_mode(): Addedclear_all_leds()before each render to prevent LED state from bleeding across timestamp transitions. Removed theupdate_metadata(in_type=LIVE)fallback on missing data, which caused a tight mode-switching loop between the UI and driver when a timestamp had no records.frontend/app.pyspeedargument fromupdate_metadata()— meaningless now that the driver no longer auto-advances.Original prompt
Created from VS Code.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.