Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(config): derive Default for VoiceServerConfig

Steven Enamakel400afcbb0c3c
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index 9bf5bb721e..41e100b446 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -489,8 +489,6 @@ pub struct Config {
#[serde(default)]
pub update: UpdateConfig,
- #[serde(default)]
-
/// Whether the user has completed the **React UI** onboarding flow.
///
/// Set by `OnboardingOverlay.tsx::handleDone` and the multi-step
diff --git a/crates/openhuman-core/src/config/schema/voice_server.rs b/crates/openhuman-core/src/config/schema/voice_server.rs
index 61922ecd39..f3338532de 100644
--- a/crates/openhuman-core/src/config/schema/voice_server.rs
+++ b/crates/openhuman-core/src/config/schema/voice_server.rs
@@ -64,7 +64,7 @@ impl SttEngine {
}
/// Persisted STT routing fallback for voice providers.
-#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
+#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonSchema)]
#[serde(default)]
pub struct VoiceServerConfig {
/// Which hosted engine transcribes audio. See [`SttEngine`]. An explicit
@@ -74,14 +74,6 @@ pub struct VoiceServerConfig {
pub stt_engine: SttEngine,
}
-impl Default for VoiceServerConfig {
- fn default() -> Self {
- Self {
- stt_engine: SttEngine::default(),
- }
- }
-}
-
#[cfg(test)]
#[path = "voice_server_tests.rs"]
mod tests;
diff --git a/tests/in_process/config_auth_app_state_connectivity_e2e.rs b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
index 7503fd49aa..8bb37d75ee 100644
--- a/tests/in_process/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/in_process/config_auth_app_state_connectivity_e2e.rs
@@ -28,7 +28,7 @@ use openhuman_core::config::schema::{
};
use openhuman_core::config::{
clear_active_user, default_projects_dir, pre_login_user_dir, read_active_user_id,
- user_openhuman_dir, write_active_user_id, Config, DaemonConfig, DictationActivationMode,
+ user_openhuman_dir, write_active_user_id, Config, DaemonConfig,
UpdateRestartStrategy,
};
use openhuman_core::core::events::DomainEvent;