ESP32 and embedded runtime hardening#258
Merged
Merged
Conversation
Split out of #257. Device runtime, firmware pipeline, and embedded frontend workflows: - Streaming decode of multi-MB PNGs and chunked HTTP bodies, so downloads are no longer size-limited by fragmentation; images too large for the device paint a download-failure frame instead of 'No image provided' - Memory-aware scene node cache (frame-sized images are not pinned), OOM-aborted renders that leak the heap beyond recovery trigger a restart; render errors paint into the live canvas - Serialized scenes.json writers, reliable OTA acknowledgement, post-flash reboot/reconnect, and the state partition survives re-flashing - Content-addressed firmware download URLs with no-store responses; stale firmware cache invalidates on source changes - USB serial render lifecycle events with Pi event parity; frontend USB commands fall back to HTTP when the port is stale; post-deploy USB preview retries until the first render exists; identical-board reconnects require explicit reselection - Document the no-image-proxies-for-frames rule Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 14, 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.
Summary
Split out of #257 (FrameOS Cloud link). Device runtime, firmware pipeline, and embedded frontend workflows:
Device runtime (Nim + ESP-IDF glue)
scenes.jsonwriters; console polls sleep a full tickFirmware pipeline (backend)
no-storeresponsesFrontend (USB / flasher)
Test plan
pytest app/api/tests/test_embedded_firmware.py app/api/tests/test_embedded_device.py— 61 passednim c -r src/frameos/tests/test_embedded_image_url.nimandtest_interpreter_errors.nim— all greenpnpm --dir frontend run build— typecheck + build pass🤖 Generated with Claude Code