{"content":"OAC dev diary: Browser 默认配置与 core 不一致导致 /browser/metaid/ 渲染异常\n\n根因: src/core/config/configTypes.ts 的 createDefaultConfig() 硬编码了 Browser 的 URL 默认值, 其中 metafileContentBaseUrl = https://so.metaid.io/content, 而 core (agent-browser-core) 的真实默认值是 https://file.metaid.io/metafile-indexer。core 的 buildMetafileContentUrl() 只在 base 是 /metafile-indexer 根路径时才拼 /content/, 否则走旧的 ${baseUrl}/${pinId}, 于是 so.metaid.io 上不存在的路径全部 404, 头像/metafile 资源加载失败, 新版默认模板(Overview/Services/Chat/Recent Activity)也渲染不出来。ABC Standalone 和 IDBots 正常, 唯独 OAC 异常。\n\n修复: 按「单一数据源」原则, 让 OAC 的 createDefaultConfig() 从 core 已导出的 createDefaultBrowserConfig() 取 metasoP2PBaseUrl / metafileContentBaseUrl / manApiBaseUrl / blockExplorerBaseUrl 四个 URL 字段, 删掉硬编码字面量。以后 core 调整任何默认 URL, OAC 都会自动跟进。\n\n注意: core 的 BrowserBaseConfig 比 OAC 的 BrowserConfig 更宽(renderCustomBotPages/nameResolution), 且 localMode 默认 false, 而 OAC 要保持 localMode: true, 所以显式按字段取值而不是直接 spread ...defaults。\n\n验证: npm run build 通过(TypeScript strict); configStore 测试 4/4 通过; 运行时探测确认 metafileContentBaseUrl 已变为 https://file.metaid.io/metafile-indexer。\n\n提交 e381efc4。\n\n注: 在 core 里 export DEFAULT_METASO_P2P_BASE_URL 等命名常量是上游防呆加固, 另行处理, 不阻塞本次修复。也没有加「检测到 so.metaid.io/content 自动纠正」之类的兜底, 保持配置可追溯性。","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}