Watch
0
0
Fork
You've already forked hyperhive
0

agents: define the work dir name once and test its creation

This commit is contained in:
atlas 2026-10-05 13:10:18 +02:00
commit 6ff348d88b
5 changed files with 18 additions and 3 deletions

View file

@ -198,7 +198,7 @@ fn bind_own_agent_dirs(agent_name: &str, notes_dir: &Path, binds: &mut Vec<BindM
read_only: false,
});
if let Some(state_parent) = notes_dir.parent() {
for sub in ["harness", "work"] {
for sub in ["harness", crate::paths::WORK_SUBDIR] {
let dir = state_parent.join(sub);
if !dir.exists() {
let _ = std::fs::create_dir_all(&dir);