Skip to content

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

style(embeddings): trim comment blocks to match file norms\n\nThe custom_embeddings field doc duplicated the CustomEmbeddingsConfig\nstruct doc in the same file; the panel comment restated behaviour the\nbranch order already shows. Keep the one constraint each site adds.\n

ligjn9b3f736ffb73
diff --git a/app/src/components/settings/panels/EmbeddingsPanel.tsx b/app/src/components/settings/panels/EmbeddingsPanel.tsx
index 2df0a2193d..9d027408c0 100644
--- a/app/src/components/settings/panels/EmbeddingsPanel.tsx
+++ b/app/src/components/settings/panels/EmbeddingsPanel.tsx
@@ -137,9 +137,8 @@ const EmbeddingsPanel = ({ embedded = false }: EmbeddingsPanelProps = {}) => {
if (entry.slug !== 'managed') setManagedSessionMissing(false);
if (entry.slug === 'custom') {
- // Custom doubles as an editable saved profile. It must reopen even when
- // already selected, and it must hydrate from the retained profile when
- // embeddings are currently disabled or routed elsewhere.
+ // Custom is an editable profile, not a plain selection: reopen (and
+ // hydrate from the retained profile) even when already selected.
const loadedSettings = settings!;
const activeEndpoint = loadedSettings.provider.startsWith('custom:')
? loadedSettings.provider.slice('custom:'.length)
diff --git a/src/openhuman/config/schema/types_part_01.rs b/src/openhuman/config/schema/types_part_01.rs
index 5c5801fdf2..4be187094f 100644
--- a/src/openhuman/config/schema/types_part_01.rs
+++ b/src/openhuman/config/schema/types_part_01.rs
@@ -444,9 +444,8 @@ pub struct Config {
#[serde(default)]
pub embeddings_provider: Option<String>,
- /// Last successfully verified Custom embeddings profile. This is not the
- /// active-provider selector; it is retained when embeddings are disabled
- /// so the Custom setup dialog can be reopened for review or editing.
+ /// Retained Custom profile; not the active-provider selector. See
+ /// [`CustomEmbeddingsConfig`].
#[serde(default, skip_serializing_if = "Option::is_none")]
pub custom_embeddings: Option<CustomEmbeddingsConfig>,