diff options
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index f8a51d1..85f4f9c 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -723,6 +723,10 @@ async fn ask( mut input: Input, with_embeddings: bool, ) -> Result<()> { + if input.query_path().is_empty() { + let root_id = crate::utils::next_query_id(&[]); + input.set_query_path(vec![root_id]); + } if input.is_empty() { return Ok(()); } |
