agents: define the work dir name once and test its creation
This commit is contained in:
parent
8e0597d41d
commit
6ff348d88b
5 changed files with 18 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue