Fix UI auto-scroll, make namespace optional, alias filePath, and downgrade ws logs

This commit is contained in:
Riz Ashraf committed 2026-09-25 21:38:21 +01:00
1 parent 175882dd1b
commit 4ecda68c1e
4 files changed
+15 -5

No files matched your search

+1 -1
View File
@@ -278,7 +278,7 @@ impl McpTool for ListContextWorkspacesHandler {
let req: ListContextWorkspacesTool =
serde_json::from_value(args).map_err(|e| e.to_string())?;
let data = state.context_workspaces.read_with(|ws| {
let filtered: Vec<_> = ws.iter().filter(|w| w.namespace == req.namespace).collect();
let filtered: Vec<_> = ws.iter().filter(|w| req.namespace.as_ref().map_or(true, |ns| &w.namespace == ns)).collect();
serde_json::to_string(&filtered).unwrap_or_default()
});
Ok(data.to_string())