Skip to content

fix: support Pi 0.80.5+ renderSessionEntries API - #6

Open
libin wants to merge 1 commit into
MasuRii:masterfrom
libin:fix/pi-0805-render-session-entries
Open

fix: support Pi 0.80.5+ renderSessionEntries API#6
libin wants to merge 1 commit into
MasuRii:masterfrom
libin:fix/pi-0805-render-session-entries

Conversation

@libin

@libin libin commented Jul 12, 2026

Copy link
Copy Markdown

Fixes #5.

Pi 0.80.5 refactored the TUI renderer (earendil-works/pi@ba10b60): InteractiveMode.renderSessionContext() was replaced by renderSessionEntries()/renderSessionItems(). The render patch targeted the removed method, so hiding broke and Pi warned InteractiveMode.renderSessionContext is unavailable on startup.

Changes

  • Patch renderSessionEntries on current Pi; fall back to renderSessionContext on older releases (patch version 2 → 3).
  • Add entry-based helpers selectVisibleEntries / dropHiddenEntries; shared resolveVisibilityDecision drives both paths.
  • Fix pre-existing stub package scope bug in the runtime-validation test (@mariozechner@earendil-works).
  • Add unit + integration coverage for the entry-based path.
  • Widen Pi peer dep range to ^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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pi 0.80.5 compatibility: renderSessionContext is unavailable

1 participant