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

@@ -77,7 +77,10 @@ impl Reading {
fn prompt(&self, event: &Event) -> Option<Heard> {
let (id, body) = match event {
Event::PermissionRequested { id, tool, .. } => (id.as_str(), format!("Approve {tool}")),
Event::QuestionAsked { id, .. } => (id.as_str(), "Luxe has a question".to_string()),
// The agent asks, not the app: luxe is the title the notification already carries
Event::QuestionAsked { id, .. } => {
(id.as_str(), "The agent has a question for you".to_string())
}
_ => return None,
};
Some(Heard::Prompt(id.to_string(), self.notice(body, true)))
@@ -102,7 +105,7 @@ impl Reading {
/// Whether `event` shows a turn running. The engine says so with `TurnStarted`, which comes
/// first; the message that opened the turn, or anything it streams, stands in for it from a
/// session whose Luxe predates that event.
/// session whose luxe predates that event.
fn is_turn_sign(event: &Event) -> bool {
match event {
Event::TurnStarted

View File

@@ -38,7 +38,7 @@ fn a_prompt_says_what_waits_and_never_the_detail() {
let asked = reading().read(&event(PERMISSION), now);
assert_eq!(asked, Some(Heard::Prompt("perm:1".into(), notice("Approve bash", true))));
let asked = reading().read(&event(QUESTION), now);
let expected = Heard::Prompt("ask:1".into(), notice("Luxe has a question", true));
let expected = Heard::Prompt("ask:1".into(), notice("The agent has a question for you", true));
assert_eq!(asked, Some(expected));
assert_eq!(reading().read(&event(CLOSED), now), Some(Heard::Closed("perm:1".into())));
}

View File

@@ -80,7 +80,7 @@ async fn a_prompt_answered_in_time_is_never_sent() {
let (mut heard, mut joined, _watcher) = watched(&mut session).await;
say(&mut joined, &[PERMISSION, QUESTION, CLOSED]).await;
let notice = heard.recv().await.expect("a notice");
assert_eq!(notice.body, "Luxe has a question");
assert_eq!(notice.body, "The agent has a question for you");
tokio::time::sleep(PROMPT_GRACE * 2).await;
assert!(heard.try_recv().is_err(), "the answered prompt was sent");
}