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

@ -218,7 +218,7 @@ pub fn ensure_state_dir(notes_dir: &Path) -> Result<()> {
}
// Harness and work dirs are siblings of the agent-visible state dir.
if let Some(parent) = notes_dir.parent() {
for sibling in ["harness", "work"] {
for sibling in ["harness", crate::paths::WORK_SUBDIR] {
let dir = parent.join(sibling);
if !dir.exists() {
std::fs::create_dir_all(&dir)