diff --git a/background.js b/background.js index 51cc9cb..5dc8522 100644 --- a/background.js +++ b/background.js @@ -913,7 +913,7 @@ const PERSISTED_SETTING_DEFAULTS = { panelMode: 'cpa', activeFlowId: DEFAULT_ACTIVE_FLOW_ID, kiroTargetId: 'kiro-rs', - kiroRsUrl: self.MultiPageFlowRegistry?.DEFAULT_KIRO_RS_URL || 'https://kiro.leftcode.xyz/admin', + kiroRsUrl: String(self.MultiPageFlowRegistry?.DEFAULT_KIRO_RS_URL || '').trim(), kiroRsKey: '', vpsUrl: '', vpsPassword: '', @@ -2769,11 +2769,7 @@ function normalizePersistentSettingValue(key, value) { } return String(value || '').trim().toLowerCase() === 'kiro-rs' ? 'kiro-rs' : 'kiro-rs'; case 'kiroRsUrl': - return String( - value - || self.MultiPageFlowRegistry?.DEFAULT_KIRO_RS_URL - || 'https://kiro.leftcode.xyz/admin' - ).trim() || 'https://kiro.leftcode.xyz/admin'; + return String(value || '').trim(); case 'kiroRsKey': return String(value || '').trim(); case 'vpsUrl': diff --git a/shared/flow-registry.js b/shared/flow-registry.js index 136ec20..49c7dc5 100644 --- a/shared/flow-registry.js +++ b/shared/flow-registry.js @@ -5,7 +5,7 @@ const DEFAULT_OPENAI_TARGET_ID = 'cpa'; const DEFAULT_KIRO_TARGET_ID = 'kiro-rs'; const DEFAULT_KIRO_PUBLICATION_TARGET_ID = 'kiro-rs'; - const DEFAULT_KIRO_RS_URL = 'https://kiro.leftcode.xyz/admin'; + const DEFAULT_KIRO_RS_URL = ''; const OPENAI_TARGET_IDS = Object.freeze(['cpa', 'sub2api', 'codex2api']); const SHARED_SERVICE_IDS = Object.freeze(['account', 'email', 'proxy']); diff --git a/shared/settings-schema.js b/shared/settings-schema.js index 2086d98..dd5a1bf 100644 --- a/shared/settings-schema.js +++ b/shared/settings-schema.js @@ -37,7 +37,7 @@ ).trim().toLowerCase() || 'openai'; const defaultOpenAiTargetId = flowRegistry.DEFAULT_OPENAI_TARGET_ID || 'cpa'; const defaultKiroTargetId = flowRegistry.DEFAULT_KIRO_TARGET_ID || 'kiro-rs'; - const defaultKiroRsUrl = flowRegistry.DEFAULT_KIRO_RS_URL || 'https://kiro.leftcode.xyz/admin'; + const defaultKiroRsUrl = String(flowRegistry.DEFAULT_KIRO_RS_URL || '').trim(); const normalizeFlowId = typeof flowRegistry.normalizeFlowId === 'function' ? flowRegistry.normalizeFlowId : ((value = '', fallback = defaultFlowId) => { diff --git a/sidepanel/sidepanel.html b/sidepanel/sidepanel.html index 7d73a75..161aa40 100644 --- a/sidepanel/sidepanel.html +++ b/sidepanel/sidepanel.html @@ -243,8 +243,11 @@