diff --git a/crates/stubs/notebook-query/src/diagnostics.rs b/crates/stubs/notebook-query/src/diagnostics.rs index 43c7a982f..873ba61d9 100644 --- a/crates/stubs/notebook-query/src/diagnostics.rs +++ b/crates/stubs/notebook-query/src/diagnostics.rs @@ -9,7 +9,12 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "planner")] -use lance_graph_planner::api::{Planner, ThinkingStyle, PlanResult}; +use lance_graph_planner::api::{Planner, PlanResult}; +// ThinkingStyle from its canonical module, not the api re-export — the re-export was +// added to lance-graph after this pin, so importing from `api` breaks the build against +// the pinned lance-graph; `thinking::style` exists in every version. +#[cfg(feature = "planner")] +use lance_graph_planner::thinking::style::ThinkingStyle; // ── Strategy Self-Check ────────────────────────────────────────────────────── diff --git a/crates/stubs/notebook-query/src/lib.rs b/crates/stubs/notebook-query/src/lib.rs index 6933e0611..78fe31aab 100644 --- a/crates/stubs/notebook-query/src/lib.rs +++ b/crates/stubs/notebook-query/src/lib.rs @@ -358,7 +358,8 @@ fn run_planner_with_options( felt_competence: Option, demonstrated_competence: Option, ) -> Option { - use lance_graph_planner::api::{Planner, ThinkingStyle}; + use lance_graph_planner::api::Planner; + use lance_graph_planner::thinking::style::ThinkingStyle; // canonical path; api re-export postdates the pin let planner = Planner::new();