luxe 0.1.5: a provider picker, model ids, and a guided review that says less

The dock's provider row opens a list of providers, and the model picker opens on the provider in use, with tab to widen it; signing in opens it on the provider just signed in to. Models go by their id unless config names them, and the model row wears its maker's mark.

The guided review's guide prompt is shorter, the pull request brief shows the start of the description with the rest behind p, its commits drop the Luxe-review and Luxe-revision lines, and the weakened-gates signal is gone.

luxe update reruns the installer it was installed with, in place of luxe-cli-update. The preview's FILE tab reads files the session changed outside the project, and only those. Smaller fixes: bash headers are highlighted, the preview loses a blank row, the launcher divider sits inside its frame, and the phone app's top bar is clear of iOS's blur.

rustls-webpki 0.103.16 and webpki-roots 1.0.10 fix RUSTSEC-2026-0381 and RUSTSEC-2026-0382, and vite 8.3.4 fixes GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv and GHSA-r825-w8mm-5pxw.
This commit is contained in:
Evan Whittaker
2026-10-22 13:25:32 -05:00
parent 4705c2abaa
commit f3ed35beb5
123 changed files with 3788 additions and 1745 deletions

View File

@@ -219,24 +219,47 @@ fn clicking_the_dock_review_changes_affordance_opens_review() {
}
}
/// Clicking the dock's model row opens the model picker (plan B3): in the wide layout the
/// Clicking the dock's model row opens the model picker on the models: in the wide layout the
/// statusline hides and MODEL telemetry relocates into the dock footer as a clickable row.
#[test]
fn clicking_the_dock_model_row_opens_the_model_picker() {
use crossterm::event::{MouseButton, MouseEvent, MouseEventKind};
let (width, height) = (160, 40);
let backend = test_backend(width, height);
use luxe_tui::model_picker::PickerStart;
let message = click_dock_row("test-model-xyz");
let opened = matches!(message, Msg::OpenModelPicker(PickerStart::Models));
assert!(opened, "the model row opens the picker on the models, got {message:?}");
}
/// The provider row is its own target, opening on the providers rather than on the models.
#[test]
fn clicking_the_dock_provider_row_opens_the_providers() {
use luxe_tui::model_picker::PickerStart;
let message = click_dock_row("test-provider-abc");
let opened = matches!(message, Msg::OpenModelPicker(PickerStart::Providers));
assert!(opened, "the provider row opens the picker on the providers, got {message:?}");
}
/// An app wide enough to show the dock, on `test-model-xyz` from `test-provider-abc`.
fn app_on_test_model(width: u16, height: u16) -> App {
let mut app = create_app();
app.update(Msg::TerminalResized { width, height });
app.workspace = Some(empty_workspace("dock-model-click"));
app.status.model = "test-model-xyz".into();
app.status.provider = "test-provider-abc".into();
app.status.context_window = 128_000;
app.status.context_pct = 10.0;
app
}
/// The message a click on the dock row showing `text` sends.
fn click_dock_row(text: &str) -> Msg {
use crossterm::event::{MouseButton, MouseEvent, MouseEventKind};
let (width, height) = (160, 40);
let backend = test_backend(width, height);
let mut app = app_on_test_model(width, height);
let buffer = render_app(&mut app, &backend);
let row = (0..height)
.find(|&y| row_text(&buffer, y, width).contains("test-model-xyz"))
.expect("the model row renders in the dock footer");
.find(|&y| row_text(&buffer, y, width).contains(text))
.unwrap_or_else(|| panic!("{text} renders in the dock"));
let click = MouseEvent {
kind: MouseEventKind::Down(MouseButton::Left),
column: 5,
@@ -244,10 +267,8 @@ fn clicking_the_dock_model_row_opens_the_model_picker() {
modifiers: KeyModifiers::NONE,
};
match route_mouse(&mut app, &click) {
RouteAction::Msg(message) => {
assert!(matches!(*message, Msg::OpenModelPicker), "the model row opens the picker")
}
other => panic!("expected an open-model-picker message, got {other:?}"),
RouteAction::Msg(message) => *message,
other => panic!("expected a message, got {other:?}"),
}
}