Skip to content

Commit 058494c

Browse files
committed
fix: rebase
1 parent 949178e commit 058494c

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

agent-control/src/agent_control/run/on_host.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,18 @@ impl AgentControlRunner {
151151
})?;
152152
}
153153

154-
let auto_generated_dir_path = self.base_paths.remote_dir.join(GENERATED_FOLDER_NAME);
155154
let agents_assembler = Arc::new(
156155
LocalEffectiveAgentsAssembler::new(
157156
self.agent_type_registry.clone(),
158157
template_renderer,
159158
self.agent_type_var_constraints,
160159
secrets_providers,
161160
)
162-
.with_autogenerated_dir(self.base_paths.remote_dir),
161+
.with_autogenerated_dir(&self.base_paths.remote_dir),
163162
);
164163

165-
let supervisor_builder = SupervisortBuilderOnHost::new(
166-
self.base_paths.log_dir.join(SUB_AGENT_DIR),
167-
auto_generated_dir_path,
168-
);
164+
let supervisor_builder =
165+
SupervisortBuilderOnHost::new(self.base_paths.log_dir.join(SUB_AGENT_DIR));
169166

170167
let remote_config_validators = vec![
171168
SupportedRemoteConfigValidator::Signature(self.signature_validator),

agent-control/src/sub_agent/on_host/builder.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,11 @@ where
132132

133133
pub struct SupervisortBuilderOnHost {
134134
logging_path: PathBuf,
135-
autogenerated_dir_path: PathBuf,
136135
}
137136

138137
impl SupervisortBuilderOnHost {
139-
pub fn new(logging_path: PathBuf, autogenerated_dir_path: PathBuf) -> Self {
140-
Self {
141-
logging_path,
142-
autogenerated_dir_path,
143-
}
138+
pub fn new(logging_path: PathBuf) -> Self {
139+
Self { logging_path }
144140
}
145141
}
146142

agent-control/src/sub_agent/supervisor/starter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::io;
2-
31
use crate::event::SubAgentInternalEvent;
42
use crate::event::channel::EventPublisher;
53
use crate::health::health_checker::HealthCheckerError;

0 commit comments

Comments
 (0)