feat: make cwd a required field of Config so we stop assuming std::env::current_dir() in a session

This commit is contained in:
Michael Bolin
2025-05-04 09:13:57 -07:00
parent 0442458309
commit f0ad889ebb
16 changed files with 202 additions and 102 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ impl EventProcessor {
"{} {} in {}",
"exec".style(self.magenta),
escape_command(&command).style(self.bold),
cwd,
cwd.to_string_lossy(),
);
}
EventMsg::ExecCommandEnd {
+1
View File
@@ -81,6 +81,7 @@ pub async fn run_main(cli: Cli) -> anyhow::Result<()> {
} else {
None
},
cwd: None,
};
let config = Config::load_with_overrides(overrides)?;
let (codex_wrapper, event, ctrl_c) = codex_wrapper::init_codex(config).await?;