Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge branch 'fix/1152-glued-scope-hint'

AkitaOnRails1d2b0b460832
diff --cc crates/ai-memory-store/src/scope.rs
index 09d598b3,0ad8f38e..6402c51e
--- a/crates/ai-memory-store/src/scope.rs
+++ b/crates/ai-memory-store/src/scope.rs
@@@ -259,16 -257,26 +259,30 @@@ impl fmt::Display for ScopeResolutionEr
write!(
f,
"project '{project}' not found in workspace '{workspace}'"
- )
+ )?;
+ // A project name never contains '/', so this is a
+ // `workspace/project` label passed as the project (#1152).
+ if let Some((ws, proj)) = project.split_once('/')
+ && !ws.is_empty()
+ && !proj.is_empty()
+ && !proj.contains('/')
+ {
+ write!(
+ f,
+ "; project names never contain '/': pass workspace \"{ws}\" and \
+ project \"{proj}\" as separate arguments"
+ )?;
+ }
+ Ok(())
}
- ScopeResolutionError::ProjectNameAmbiguous { workspace, project } => {
+ ScopeResolutionError::ProjectNameAmbiguous {
+ workspace,
+ project,
+ holders,
+ } => {
write!(
f,
- "project '{project}' is ambiguous in workspace '{workspace}'"
+ "project '{project}' is ambiguous in workspace '{workspace}'{holders}"
)
}
ScopeResolutionError::ProjectNotFoundInActiveOrDefault { project } => {