ACP get working dir from args.cwd (#6653)

This commit is contained in:
Zane
2026-01-23 09:14:54 -08:00
committed by GitHub
parent 6375aace13
commit 003aaa160c
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -49,7 +49,6 @@ pub struct GooseAcpAgent {
pub struct GooseAcpConfig {
pub provider: Arc<dyn goose::providers::base::Provider>,
pub builtins: Vec<String>,
pub work_dir: std::path::PathBuf,
pub data_dir: std::path::PathBuf,
pub config_dir: std::path::PathBuf,
pub goose_mode: goose::config::GooseMode,
@@ -308,7 +307,6 @@ impl GooseAcpAgent {
Self::with_config(GooseAcpConfig {
provider,
builtins,
work_dir: std::env::current_dir().unwrap_or_default(),
data_dir: Paths::data_dir(),
config_dir: Paths::config_dir(),
goose_mode,
@@ -689,7 +687,7 @@ impl GooseAcpAgent {
let manager = self.agent.config.session_manager.clone();
let goose_session = manager
.create_session(
std::env::current_dir().unwrap_or_default(),
args.cwd.clone(),
"ACP Session".to_string(), // just an initial name - may be replaced by maybe_update_name
SessionType::User,
)
-1
View File
@@ -260,7 +260,6 @@ async fn spawn_server_in_process(
let config = GooseAcpConfig {
provider: Arc::new(provider),
builtins: builtins.iter().map(|s| s.to_string()).collect(),
work_dir: data_root.to_path_buf(),
data_dir: data_root.to_path_buf(),
config_dir: data_root.to_path_buf(),
goose_mode,