Skip to content

Commit 26ff0fc

Browse files
committed
fix: Create workspace directory on start if directory not exists
1 parent c6c8551 commit 26ff0fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ async fn main() -> color_eyre::Result<()> {
122122
if !data_dir.exists() {
123123
fs::create_dir_all(data_dir)?;
124124
}
125+
126+
if !config.workspace.exists() {
127+
fs::create_dir_all(&config.workspace)?;
128+
}
129+
125130
let history_path = data_dir.join(HISTORY_PATH);
126131
// start agent
127132
let (output_sender, output_receiver) =

0 commit comments

Comments
 (0)