mirror of
https://github.com/openai/codex.git
synced 2026-11-01 19:33:35 +00:00
feat: make cwd a required field of Config so we stop assuming std::env::current_dir() in a session
This commit is contained in:
@@ -113,7 +113,7 @@ impl EventProcessor {
|
||||
"{} {} in {}",
|
||||
"exec".style(self.magenta),
|
||||
escape_command(&command).style(self.bold),
|
||||
cwd,
|
||||
cwd.to_string_lossy(),
|
||||
);
|
||||
}
|
||||
EventMsg::ExecCommandEnd {
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user