fix plugin cache poisoning on turn startup

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Sayan Sisodiya
2026-03-04 20:16:07 -08:00
parent 7fe4a43713
commit 81e641c6ea

View File

@@ -2186,11 +2186,12 @@ impl Session {
&per_turn_config,
)
.await;
// Reuse the session's resolved config for turn-time skills so plugin-backed
// skill/plugin availability stays aligned with the session-start view.
let skills_outcome = Arc::new(
self.services
.skills_manager
.skills_for_cwd(&session_configuration.cwd, false)
.await,
.skills_for_config(&per_turn_config),
);
let mut turn_context: TurnContext = Self::make_turn_context(
Some(Arc::clone(&self.services.auth_manager)),