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

@@ -9,7 +9,7 @@
//!
//! A shard also records the [`EXTRACTOR_VERSION`] that wrote it, because a matching content hash
//! only says the file is unchanged, not that today's extractor would read it the same way. Writes
//! are atomic, so a second Luxe in the same project never reads a torn shard.
//! are atomic, so a second luxe in the same project never reads a torn shard.
use super::extract::FileGraph;
use serde::{Deserialize, Serialize};

View File

@@ -89,7 +89,7 @@ mod tests {
}
}
/// The layout that broke it: `mod tests;` pointing at a sibling file. Luxe lays five of its own
/// The layout that broke it: `mod tests;` pointing at a sibling file. luxe lays five of its own
/// modules out this way, so the miss was never exotic.
#[test]
fn a_sibling_tests_module_is_test_code() {

View File

@@ -32,7 +32,7 @@ pub struct ServerEntry {
/// A language is not a server, and the two drift apart. TypeScript 7 is the native port: it
/// ships no `tsserver.js`, so `typescript-language-server` — at every version — fails its
/// handshake with "Could not find a valid TypeScript installation", and the language service
/// moved to `tsc --lsp`. One hardcoded command turns that into "Luxe has no TypeScript
/// moved to `tsc --lsp`. One hardcoded command turns that into "luxe has no TypeScript
/// support"; a list turns it into a fallback nobody has to notice.
///
/// Ordered most-preferred first, and tried on a *failed handshake*, not merely a missing
@@ -90,7 +90,7 @@ pub struct ServerEntryPatch {
impl ServerEntryPatch {
/// Apply this patch over the shipped entry for the same language, if there is one.
///
/// Returns `None` for a patch that names a language Luxe does not ship *and* omits `command`,
/// Returns `None` for a patch that names a language luxe does not ship *and* omits `command`,
/// which is the one combination that cannot produce a launchable server.
pub fn apply(self, base: Option<&ServerEntry>) -> Option<ServerEntry> {
let base = base.cloned().unwrap_or_default();
@@ -125,7 +125,7 @@ impl ServerRegistry {
/// Add default server entries for the common languages from the bundled `default-lsp-servers
/// .json`. Shipping them as DATA (not hardcoded) lets users inspect + copy the defaults, and
/// built-in + user config share one schema and code path. Servers are external binaries the
/// user installs; Luxe only knows how to launch + detect them.
/// user installs; luxe only knows how to launch + detect them.
fn add_defaults(&mut self) {
// Compile-time-embedded and covered by `default_servers_bundle_parses` — a genuine
// invariant, so a parse failure is a build-time bug, never a runtime path.

View File

@@ -146,7 +146,7 @@ fn an_explicitly_empty_field_overrides_rather_than_inherits() {
#[test]
fn a_new_language_needs_a_command_and_says_so_when_it_lacks_one() {
let mut registry = ServerRegistry::new();
// Languages Luxe does not ship, so there is nothing for a patch to inherit a command from.
// Languages luxe does not ship, so there is nothing for a patch to inherit a command from.
// Asserted rather than assumed: this test read `lua` as unshipped until the day it was.
for unshipped in ["elixir", "cobol"] {
assert!(!registry.is_supported(unshipped), "{unshipped} must not be a built-in here");

View File

@@ -148,7 +148,7 @@ impl WorkspaceLspClient {
for rejected in registry.merge_patches(custom) {
tracing::warn!(
language = %rejected,
"lsp-servers.json entry needs a `command`: Luxe ships no default for this language"
"lsp-servers.json entry needs a `command`: luxe ships no default for this language"
);
}
Self::over(registry)

View File

@@ -45,7 +45,7 @@ impl WorkspaceLspClient {
None => Tried::Absent,
};
};
// Worth an `info`: it is the one case where the program Luxe ran came from the tree
// Worth an `info`: it is the one case where the program luxe ran came from the tree
// being edited rather than from the machine, and a reader should be able to find that
// out from a normal run rather than by reasoning about it.
if luxe_core::program::project_local(root, &candidate.command).as_deref()

View File

@@ -218,7 +218,7 @@ const FIXTURE_SERVER: &str = "luxe-fixture-project-server";
/// A project that installed its own language server, as npm leaves one.
///
/// The binary is a shell script that exits immediately, so the handshake always fails — which
/// is the point: what is under test is which path Luxe *chose to launch*, and the recorded
/// is the point: what is under test is which path luxe *chose to launch*, and the recorded
/// failure names it.
fn project_with_its_own_server(tag: &str) -> tempfile::TempDir {
let dir = project_dir(tag);
@@ -286,7 +286,7 @@ async fn a_project_server_is_refused_by_name_when_it_is_not_allowed() {
/// Allowed, the same binary is the one launched.
///
/// It fails its handshake, which is what the fixture is for: the failure quotes the command,
/// so it is evidence of *which* copy Luxe ran rather than of the server working.
/// so it is evidence of *which* copy luxe ran rather than of the server working.
#[tokio::test]
async fn an_allowed_project_server_is_the_one_launched() {
let root_dir = project_with_its_own_server("allowed");