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:
@@ -5,9 +5,9 @@
|
||||
//! at a glance, which agent is running, which needs a decision, and which is ready to review.
|
||||
//!
|
||||
//! Herdr recognizes most agents by *process detection* + screen scraping, which requires a Herdr
|
||||
//! binary update per new agent. Instead Luxe acts as a **custom socket integration** (Herdr's
|
||||
//! supported extension path): when Luxe runs inside a Herdr pane (`HERDR_ENV=1`), this hook reports
|
||||
//! Luxe's own lifecycle to Herdr via the `herdr pane report-agent` CLI. That makes Luxe a
|
||||
//! binary update per new agent. Instead luxe acts as a **custom socket integration** (Herdr's
|
||||
//! supported extension path): when luxe runs inside a Herdr pane (`HERDR_ENV=1`), this hook reports
|
||||
//! luxe's own lifecycle to Herdr via the `herdr pane report-agent` CLI. That makes luxe a
|
||||
//! first-class, correctly-tracked agent in the sidebar without Herdr needing to know the `luxe`
|
||||
//! process at all.
|
||||
//!
|
||||
@@ -136,7 +136,7 @@ impl HerdrReporter for CliHerdrReporter {
|
||||
}
|
||||
}
|
||||
|
||||
/// Reports Luxe's lifecycle to Herdr. Registered only when running inside a Herdr pane.
|
||||
/// Reports luxe's lifecycle to Herdr. Registered only when running inside a Herdr pane.
|
||||
pub struct HerdrHook {
|
||||
reporter: Box<dyn HerdrReporter>,
|
||||
/// Last state sent, to suppress redundant reports (a turn fires `AgentStart` many times).
|
||||
|
||||
@@ -271,7 +271,7 @@ mod tests {
|
||||
assert_eq!(run(&hook, "read", 1).await.len(), 1);
|
||||
}
|
||||
|
||||
/// Loading a deferred tool's schema is Luxe's own request-budget bookkeeping, not a step in the
|
||||
/// Loading a deferred tool's schema is luxe's own request-budget bookkeeping, not a step in the
|
||||
/// task — so it cannot be the work a plan has fallen behind.
|
||||
#[tokio::test]
|
||||
async fn bookkeeping_calls_are_not_work_the_plan_fell_behind() {
|
||||
|
||||
@@ -273,11 +273,23 @@ impl Hook for SelfContinuationHook {
|
||||
info!(iteration, "continuing the loop");
|
||||
debug!(%steer, "self-continuation steer");
|
||||
// The one marker that makes a run readable from outside: where it is, each time it moves.
|
||||
cx.notify(format!("iteration {iteration} · phase {}", state.current_phase));
|
||||
cx.notify(iteration_notice(iteration, state.current_phase));
|
||||
|
||||
HookOutcome::ContinueLoop { message: steer }
|
||||
}
|
||||
}
|
||||
|
||||
/// The notice that opens each iteration: `iteration 4 · phase 1`.
|
||||
pub fn iteration_notice(iteration: u64, phase: u32) -> String {
|
||||
format!("iteration {iteration} · phase {phase}")
|
||||
}
|
||||
|
||||
/// The iteration and phase an [`iteration_notice`] names, or `None` for any other notice. Beside
|
||||
/// the writer so a front-end drawing the run's structure never guesses at the wording.
|
||||
pub fn parse_iteration_notice(notice: &str) -> Option<(u64, u32)> {
|
||||
let (iteration, phase) = notice.strip_prefix("iteration ")?.split_once(" · phase ")?;
|
||||
Some((iteration.parse().ok()?, phase.parse().ok()?))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@@ -209,3 +209,24 @@ async fn test_self_continuation_hook_stopped_sentinel() {
|
||||
// STOP sentinel exists -> Continue.
|
||||
assert!(matches!(outcome, HookOutcome::Continue));
|
||||
}
|
||||
|
||||
/// The notice is pinned as a literal, since the loop view reads it, and the parser reads it back.
|
||||
#[test]
|
||||
fn the_iteration_notice_reads_back() {
|
||||
assert_eq!(iteration_notice(4, 1), "iteration 4 · phase 1");
|
||||
assert_eq!(parse_iteration_notice("iteration 4 · phase 1"), Some((4, 1)));
|
||||
}
|
||||
|
||||
/// Every other notice, a near miss included, is not an iteration.
|
||||
#[test]
|
||||
fn other_notices_are_not_iterations() {
|
||||
for notice in [
|
||||
"phase 0 accepted — now on phase 1",
|
||||
"iteration 4",
|
||||
"iteration x · phase 1",
|
||||
"iteration 4 · phase one",
|
||||
"",
|
||||
] {
|
||||
assert_eq!(parse_iteration_notice(notice), None, "{notice}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user