fix: support Pi 0.80.5+ renderSessionEntries API - #6
Open
libin wants to merge 1 commit into
Open
Conversation
Pi 0.80.5 replaced InteractiveMode.renderSessionContext() with renderSessionEntries()/renderSessionItems(), causing the render patch to fail with 'renderSessionContext is unavailable'. - Patch renderSessionEntries on current Pi, fall back to renderSessionContext on older releases - Add selectVisibleEntries/dropHiddenEntries entry-based helpers - Fix stub package scope in runtime-validation test - Add unit + integration coverage for the entry-based path - Widen peer dep range to ^0.81.0; bump 0.2.1 Fixes MasuRii#5
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.
Fixes #5.
Pi 0.80.5 refactored the TUI renderer (earendil-works/pi@ba10b60):
InteractiveMode.renderSessionContext()was replaced byrenderSessionEntries()/renderSessionItems(). The render patch targeted the removed method, so hiding broke and Pi warnedInteractiveMode.renderSessionContext is unavailableon startup.Changes
renderSessionEntrieson current Pi; fall back torenderSessionContexton older releases (patch version 2 → 3).selectVisibleEntries/dropHiddenEntries; sharedresolveVisibilityDecisiondrives both paths.@mariozechner→@earendil-works).^0.81.0; bump to 0.2.1.Testing
npm run check— 12/12 tests pass, types clean. Verified against installed Pi 0.80.6: warning gone, hiding works.