luxe 0.1.4: remembered models, wheel-driven lists, and a steadier phone app

- luxe starts on the model you last chose in this project, then the last one anywhere. Signing in
  opens the model picker instead of choosing for you.
- Every list in a modal takes the mouse wheel and a draggable scrollbar.
- The phone app shows reasoning in full, stays put while you read back through a long session, and
  shows a question's answer on its card.
- On Windows, luxe update replaces the running luxe, and a signed-in install no longer sees setup
  again.
- The file tree no longer shows "engine busy" in a large project, loop output is easier to follow,
  and the name is written lowercase.

The CHANGELOG has the full list.
This commit is contained in:
Evan Whittaker
2026-10-20 13:51:34 -05:00
parent 6184aa21fb
commit a0666d6c81
591 changed files with 4926 additions and 2942 deletions

View File

@@ -40,5 +40,5 @@ async fn a_copy_is_readable_by_the_wayland_clipboard() {
.await
.expect("wl-paste runs");
let pasted = String::from_utf8_lossy(&pasted.stdout).to_string();
assert_eq!(pasted, payload, "the Wayland clipboard must hold what Luxe just copied");
assert_eq!(pasted, payload, "the Wayland clipboard must hold what luxe just copied");
}

View File

@@ -1,8 +1,8 @@
//! Frame gutter — where Luxe draws relative to the edges it meets.
//! Frame gutter — where luxe draws relative to the edges it meets.
//!
//! The terminal's edge gets no air: Luxe draws flush to it and uses every column it was given,
//! The terminal's edge gets no air: luxe draws flush to it and uses every column it was given,
//! which also lines it up with a host that frames the pane (herdr's tab row starts flush at the
//! pane's left edge). A rule Luxe drew itself keeps a column of air on the side facing the text.
//! pane's left edge). A rule luxe drew itself keeps a column of air on the side facing the text.
//! These tests pin both halves.
use luxe_tui::app::{App, Msg};
@@ -51,7 +51,7 @@ fn luxe_draws_flush_to_both_terminal_edges() {
assert!(inked(&buffer, buffer.area.width - 1), "the right edge is drawn on");
}
/// The inner gutter answers a different question — it keeps text off a rule Luxe owns — so it
/// The inner gutter answers a different question — it keeps text off a rule luxe owns — so it
/// stays. Measured off the dock separator, the one edge both columns meet.
#[test]
fn the_column_beside_the_dock_keeps_its_air() {

View File

@@ -302,7 +302,7 @@ fn no_surface_reaches_for_a_powerline_triangle_at_any_tier() {
set_tier(GlyphTier::Nerd);
}
/// The default has to be the look Luxe ships with, so a surface rendered without any resolution step
/// The default has to be the look luxe ships with, so a surface rendered without any resolution step
/// is unchanged from before the tiers existed.
#[test]
fn the_untouched_default_is_the_nerd_vocabulary() {

View File

@@ -503,9 +503,9 @@ fn dock_footer_bottom_anchors_model_telemetry() {
.expect("MODEL heading row");
// Identity stays at the top; telemetry sinks to the bottom near the composer.
assert!(model_row > project_row, "telemetry should sit below identity: {content}");
// Heading, model, thinking and mode, then SESSION's heading, context and cost
// Heading, provider, model, thinking and mode, then SESSION's heading, context and cost
assert!(
model_row >= height - 7,
model_row >= height - 8,
"telemetry should be bottom-anchored (row {model_row} of {height}): {content}"
);
}

View File

@@ -83,6 +83,64 @@ fn the_tree_lists_the_project_beside_its_changes() {
assert!(content.contains("file00.rs"), "and the change, revealed: {content}");
}
/// Every listing request waiting in the queue, as (request, folder).
fn listing_requests(
rx: &mut tokio::sync::mpsc::Receiver<luxe_core::engine::Action>,
) -> Vec<(luxe_core::project_files::ListingRequestId, String)> {
let mut asked = Vec::new();
while let Ok(action) = rx.try_recv() {
if let luxe_core::engine::Action::ListDirectory { request_id, path, .. } = action {
asked.push((request_id, path));
}
}
asked
}
/// Lands `folders` as the listing of `path`, every entry a folder.
fn land_folders(
app: &mut App,
request_id: luxe_core::project_files::ListingRequestId,
path: &str,
folders: &[String],
) {
use luxe_core::project_files::{DirectoryEntry, DirectoryListing, EntryKind};
let entries = folders
.iter()
.map(|name| DirectoryEntry {
name: name.clone(),
kind: EntryKind::Directory,
ignored: false,
})
.collect();
let listing = DirectoryListing { path: path.into(), entries, omitted: 0 };
app.update(Msg::Engine(luxe_core::event::Event::DirectoryListed { request_id, listing }));
}
/// A change in many folders asks for their listings a few at a time, and the rest follow as
/// answers land.
///
/// The break this catches: every open folder asked for in one go, filling the engine's queue ahead
/// of the reader's own steer and flashing "the engine is busy" for work they never asked for.
#[test]
fn a_change_across_many_folders_asks_for_their_listings_a_few_at_a_time() {
let (mut app, mut rx) = create_app_with_engine();
app.update(Msg::Engine(luxe_core::event::Event::WorkspaceUpdated(Box::new(
changed_workspace("tree-burst", 20),
))));
let (root, _) = listing_requests(&mut rx).pop().expect("the root is asked for");
// src and its twenty modules are all open on the way to a change
land_folders(&mut app, root, "", &["src".to_string()]);
let first = listing_requests(&mut rx);
assert_eq!(first.len(), 8, "no more than eight in flight: {first:?}");
let (answered, folder) = first[0].clone();
land_folders(&mut app, answered, &folder, &[]);
let next = listing_requests(&mut rx);
assert_eq!(next.len(), 1, "one landed, so one more is asked for: {next:?}");
assert!(!first.iter().any(|(_, asked)| *asked == next[0].1), "and it's a new folder");
assert_eq!(app.status.toast(), None, "and nothing told the reader to try again");
}
/// A file that did not change opens whole, numbered and highlighted, with no Diff to switch to.
#[test]
fn an_unchanged_file_opens_whole_in_the_file_view() {

View File

@@ -470,7 +470,7 @@ fn an_image_scrolls_through_the_viewport_without_leaving_anything_behind() {
}
/// The tool the reader never asked to watch. `activate_tools` loads a deferred tool's schema — a
/// fact about Luxe's request budget, not a step in anyone's task — and it lands directly in front
/// fact about luxe's request budget, not a step in anyone's task — and it lands directly in front
/// of the tool that actually did something. A successful one leaves no card; a failed one does,
/// because a call nobody can see cannot explain the stall it caused.
#[test]

View File

@@ -133,7 +133,7 @@ fn test_route_key_dashboard_esc_stays_and_ctrl_c_quits() {
///
/// Opening it does not change the view mode — the dashboard stays behind it on purpose — and the
/// routing asked for the view mode. So the arrows walked the column *underneath* the overlay, a
/// click reached the menu through it, and Esc quit Luxe instead of closing the list.
/// click reached the menu through it, and Esc quit luxe instead of closing the list.
#[test]
fn the_project_context_list_takes_the_keys_from_the_dashboard_behind_it() {
let mut app = seeded_app("nord", FixtureScenario::DashboardContextFiles).expect("the fixture");
@@ -154,7 +154,7 @@ fn the_project_context_list_takes_the_keys_from_the_dashboard_behind_it() {
assert_eq!(selected(&app), 2, "j and ↓ walk the list; Tab is not its key");
assert!(app.editor.current_input().is_empty(), "and the prompt underneath typed nothing");
// Esc puts the list away rather than quitting Luxe.
// Esc puts the list away rather than quitting luxe.
let action = route_key(&mut app, &key(KeyCode::Esc));
match action {
RouteAction::Msg(message) => app.update(*message),
@@ -259,11 +259,10 @@ fn a_finished_login_walks_into_the_model_picker_inside_the_surface() {
let screen: String = buffer.content.iter().map(|cell| cell.symbol()).collect();
assert!(screen.contains("Select model"), "{screen}");
assert!(screen.contains("GPT-5.6"), "{screen}");
// What the login had to say rides along as the picker's opening line rather than being lost
// with the screen that used to report it — including which model it left the session on, so
// the preselected row does not read as a choice nobody made.
// What the login had to say rides along as the picker's opening line, and with no model
// chosen for the reader, the line asks them to choose one.
assert!(screen.contains("Signed in to OpenAI"), "{screen}");
assert!(screen.contains("Now on GPT-5.6"), "{screen}");
assert!(screen.contains("Choose a model to finish setting up."), "{screen}");
// The count of models is not on it: they are the rows underneath.
assert!(!screen.contains("47 models available"), "{screen}");
}