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

@@ -0,0 +1,35 @@
//! Model row metadata — the context window, reasoning and source notes after a model's name.
use super::ModelEntry;
/// The parenthesized metadata suffix for a model row (` (200k ctx · reasoning · catalog)`),
/// or empty when the model carries none. Shared by the row renderer and the width calculation
/// so the fitted modal width matches what is drawn.
pub(super) fn meta_suffix(entry: &ModelEntry) -> String {
let mut meta = Vec::new();
if entry.info.context_window > 0 {
meta.push(format!("{} ctx", human_tokens(entry.info.context_window)));
}
if entry.info.reasoning {
meta.push("reasoning".to_string());
}
match (entry.configured, entry.unverified) {
(_, true) => meta.push("unverified".to_string()),
(false, false) => meta.push("catalog".to_string()),
(true, false) => {}
}
if meta.is_empty() {
String::new()
} else {
format!(" ({})", meta.join(" · "))
}
}
/// `1.0M` / `200k` / `8192` — million-token windows read badly as `1000k`.
fn human_tokens(tokens: u32) -> String {
match tokens {
t if t >= 1_000_000 => format!("{:.1}M", t as f64 / 1_000_000.0),
t if t >= 10_000 => format!("{}k", t / 1_000),
t => t.to_string(),
}
}