Skip to content

Releases: clankercode/pi-model-filter

Release list

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 29 Jun 02:16

v0.1.2 — TUI menu & rule editor

New features

  • /model-filter slash command — interactive TUI menu for viewing and managing filter rules
  • Rule editor — add, edit, and delete rules through the TUI:
    • Provider: pick from configured providers or * (any)
    • Action: Space toggles allow ↔ block
    • Match IDs: select-many checklist from registry models
    • Match patterns: comma-separated text entry
    • Match reasoning: either / true / false submenu
  • External editor support (g key) — opens model-filter.json in $VISUAL/$EDITOR, validates on save, error screen with edit-again or reset-to-cached options
  • [+] Add rule in rules list — creates a new blank rule and opens the editor
  • Delete rule from the detail view

Bug fixes

  • Fix setItems is not a function crash in IDs toggle (SelectList has no setItems)
  • Fix submenu not rendering (was returning only background)
  • Fix IDs list position resetting on toggle (now preserves scroll position)
  • Fix stale state.submenu after patterns editor completion
  • Fix handleSubmenuInput null safety

Internal

  • Extracted SubmenuController abstraction (src/submenu.ts) wrapping SelectList with proper lifecycle, scroll preservation, and no setItems/getItems calls
  • menu.ts no longer imports SelectList directly — all submenu logic through the controller
  • saveConfig() added to config.ts for persisting changes to disk
  • 83 tests passing
  • Updated ~/.llm-general/ai-coding/pi/pi-tui-menus.md with SelectList gotchas section

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 28 Jun 12:31