Skip to content

v0.5.1: no default auto-fallback + search-enabled model picker + blue panel borders - #12

Merged
rz1989s merged 1 commit into
mainfrom
fix/v0.5.1-no-default-fallback-and-picker-ui
Jul 13, 2026
Merged

v0.5.1: no default auto-fallback + search-enabled model picker + blue panel borders#12
rz1989s merged 1 commit into
mainfrom
fix/v0.5.1-no-default-fallback-and-picker-ui

Conversation

@rz1989s

@rz1989s rz1989s commented Jul 13, 2026

Copy link
Copy Markdown
Member

v0.5.1 — RECTOR live-EVAL feedback (3 fixes)

Three fixes from RECTOR's live EVAL of v0.5.0:

1. Auto-detect sets ONLY the primary, not the fallback

v0.5.0 auto-detected a frontier fallback (amazon-bedrock/amazon.nova-2-lite-v1:0) — too opinionated. v0.5.1: autoDetectDefaults returns only {provider, model}; the fallback is NOT auto-populated. The frontier-escalation mechanism stays (the fallback field + v0.2.x retry→fallback pipeline); the user sets it explicitly via /vision fallback <provider/model>. Tests T62 + the fallback-preserve test updated. README updated.

2. Search-enabled vision model picker (matches pi /model + /settings UX)

New VisionModelPicker component (extends Container): blue DynamicBorder + title + search Input + SelectList.setFilter (fuzzy filtering as you type) + DynamicBorder. Used by:

  • buildModelSubmenu (the /vision panel's "Vision model" row → Enter opens the picker)
  • pickVisionModel (/vision model no-arg + ctrl+shift+i hotkey, TUI mode)

Non-TUI (RPC/print) falls back to ctx.ui.select (no search). Input routing: Escape → cancel; ↑↓/Enter → SelectList; typing → Input → setFilter. Picker tests updated to mock ctx.ui.custom.

3. /vision panel gets blue border lines (matches /settings)

Wrapped the /vision settings panel with DynamicBorder((text) => theme.fg("accent", text)) above + below (with Spacer(1) between) — the same visual framing pi's /settings uses. DynamicBorder imported from @earendil-works/pi-coding-agent, Spacer from @earendil-works/pi-tui.

Tests

350 tests pass (unchanged count — the 3 picker tests were updated, not added/removed). Typecheck clean.

Constraints

Clean-room, no AI attribution. lib/defaults.ts still pure + deterministic. The VisionModelPicker is a private class in extensions/vision.ts (TUI-only).

… blue panel borders

RECTOR live-EVAL feedback (3 fixes):

1. Auto-detect sets ONLY the primary, not the fallback (amazon-bedrock/nova-2-lite
   was being auto-set as the fallback — too opinionated). The frontier-escalation
   mechanism (fallback field + retry→fallback pipeline) remains; the user sets
   the fallback explicitly via /vision fallback. autoDetectDefaults returns only
   {provider, model}; session_start wiring + notify updated; tests T62 + the
   fallback-preserve test updated; README updated.

2. Search-enabled vision model picker (matches pi /model + /settings UX). New
   VisionModelPicker component (Container): blue DynamicBorder + title + search
   Input + SelectList.setFilter (fuzzy) + DynamicBorder. Used by buildModelSubmenu
   (the /vision panel Vision-model row) + pickVisionModel (/vision model no-arg +
   ctrl+shift+i hotkey, TUI mode). Non-TUI falls back to ctx.ui.select. Picker
   tests updated to mock ctx.ui.custom.

3. /vision panel wrapped with blue DynamicBorder lines above + below (matches
   /settings visual framing). +DynamicBorder + Spacer imports.

350 tests pass, typecheck clean.
@rz1989s
rz1989s merged commit 5e01cb7 into main Jul 13, 2026
1 check passed
@rz1989s
rz1989s deleted the fix/v0.5.1-no-default-fallback-and-picker-ui branch July 13, 2026 01:03
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.

1 participant