From 600dcc374a2ed312f26d2e7ef84a90a245a3bb3d Mon Sep 17 00:00:00 2001 From: ltf Date: Sat, 7 Nov 2026 05:00:19 +0800 Subject: [PATCH] fix(server): forward session mode and config calls through plugin-aware execution PluginAwareConversationExecution wrapped the inner execution but did not forward set_session_mode, set_session_config_option, salvage_feedback and dismiss_feedback, so every call reached the trait default and failed with "session config is not configured". Forward them to the wrapped execution. --- crates/server/src/host_core.rs | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/crates/server/src/host_core.rs b/crates/server/src/host_core.rs index 7e3a50c9c..0e75cddcc 100644 --- a/crates/server/src/host_core.rs +++ b/crates/server/src/host_core.rs @@ -137,6 +137,41 @@ impl ConversationExecutionPort for PluginAwareConversationExecution { ) -> Result, ApplicationError> { self.inner.list_feedback(conversation_id).await } + + async fn salvage_feedback( + &self, + conversation_id: uuid::Uuid, + note_id: &str, + ) -> Result { + self.inner.salvage_feedback(conversation_id, note_id).await + } + + async fn dismiss_feedback( + &self, + conversation_id: uuid::Uuid, + note_id: &str, + ) -> Result { + self.inner.dismiss_feedback(conversation_id, note_id).await + } + + async fn set_session_mode( + &self, + conversation_id: uuid::Uuid, + mode_id: String, + ) -> Result<(), ApplicationError> { + self.inner.set_session_mode(conversation_id, mode_id).await + } + + async fn set_session_config_option( + &self, + conversation_id: uuid::Uuid, + key: String, + value: serde_json::Value, + ) -> Result<(), ApplicationError> { + self.inner + .set_session_config_option(conversation_id, key, value) + .await + } } /// Shared Application Core used by `vibex-server` and the desktop remote listener.