fix: retire legacy map tile fallback - #66
Merged
Merged
Conversation
Contributor
Greptile SummaryThis PR removes the coordinate-only legacy tile-cache fallback so Maps reads exclusively from the decoded PSRAM cache and the selected immutable map pack, while leaving existing legacy files untouched.
Confidence Score: 5/5The PR appears safe to merge, with the legacy fallback removed cleanly and no concrete regression identified in the remaining map-pack path. The selected map pack uses the retained storage adapter independently of the removed legacy store, result propagation remains compatible with the presenter, and the legacy tile namespace is no longer reached by production Maps. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Request[Tile request] --> Cache{Decoded PSRAM cache hit?}
Cache -->|Yes| Ready[Return READY]
Cache -->|No| Pack[Read selected immutable map pack]
Pack --> Result[Return typed pack result]
Result --> Ready
Result --> Unavailable[MISS / storage unavailable / invalid PNG / I/O error]
Legacy[Legacy coordinate-only cache] -. no longer accessed .-> Unavailable
Reviews (1): Last reviewed commit: "fix: retire legacy map tile fallback" | Re-trigger Greptile |
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
Why
The legacy cache is keyed only by tile coordinates and has no style, map-set, attribution, license, provenance, or transactional publication identity. Falling through from a selected pack to that cache can mix visual styles in one viewport and conceal invalid or incomplete pack state.
The runtime lookup order is now:
Data preservation
This change does not delete, migrate, enumerate, or modify existing
pyxis-map/tilesfiles. It only stops production Maps from opening that legacy namespace.Verification
Exact head:
ca59aee704b968fed7a7bfd9c95a257f454919bepython3 -m pytest -q tests/build_scripts tests/native tests/tools— 251 passedpio run -e tdeck— passedpio run -e tdeck-release— passed0.3.1-87-gca59aeetdeck: 2,669,680 bytes; SHA-2561848b288aaa8359f5c4d3108eeb7182a015e339f7c6e8eed439e4a20663ddf33tdeck-release: 2,662,256 bytes; SHA-25669b84e2970fdaa8eb96821200b32a6a67402debd2403938f807db45df46cdd93Physical validation
Pending. This PR does not claim device installation, framebuffer review, mixed-style elimination on hardware, or reboot persistence.
Scope
This PR retires the legacy runtime fallback only. The bounded installed-style records, browser-installer updates, and on-device style picker will follow separately.