chore: release v0.9.7

This commit is contained in:
晴天
2026-03-21 04:08:41 +08:00
parent 1a18e3c644
commit 6494cf6551
22 changed files with 716 additions and 96 deletions

View File

@@ -64,6 +64,8 @@ async fn agent_workspace(agent_id: &str) -> Result<PathBuf, String> {
.and_then(|w| w.as_str())
.map(PathBuf::from)
.unwrap_or_else(|| super::openclaw_dir().join("workspace"));
// 解析符号链接
let default_workspace = fs::canonicalize(&default_workspace).unwrap_or(default_workspace);
let mut new_map = HashMap::new();
// main agent 使用默认 workspace
@@ -93,6 +95,8 @@ async fn agent_workspace(agent_id: &str) -> Result<PathBuf, String> {
.join("workspace")
}
});
// 解析符号链接,确保软连接的 workspace 也能正确访问
let ws = fs::canonicalize(&ws).unwrap_or(ws);
new_map.insert(id.to_string(), ws);
}
}