Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Author
Type
Summary
清理首批前端遗留目录与伪防御代码:
apps/web/src/pages/speech/与apps/web/src/pages/transcription/,将共享详情与模型编辑实现收拢至apps/web/src/pages/voice/components/(audio-provider-setting.vue、model-config-editor.vue、model-config-fields.vue及对应测试),消除两份几乎完全重复的provider-setting.vue。详情页统一复用<ProviderIdentityCard>、<SchemaField>与resolveApiErrorMessage,并将scripts/ui-app-baseline.json中的app-injection baseline从135降至130。vitest.config.ts中为web测试项目显式启用environment: 'jsdom'(并在apps/web/src/vitest-setup.ts补齐 Node 25 未配置 WebStorage 时的 jsdomStorage绑定与Blob读取兼容),随后移除apps/web/src/生产代码里全部 30 处针对纯粹浏览器运行时的typeof window / document / navigator === 'undefined'假判断(保留真实浏览器特性探测与 Electron bridge 检查)。同时收紧detectPlatform()的正则与零参默认行为,避免jsdom的darwinUA 误命中win。apps/web/src/store/chat/session-activity.ts与apps/web/src/store/workspace-tabs.ts中对静态 i18n 文案和内部状态字段的重复.trim()处理。Related Issues
Validation
自动化检查
pnpm vitest run --project web:264 / 264个测试文件、2507 / 2507个用例全部通过。pnpm --filter @memohai/web typecheck:0 错误。pnpm exec eslint apps/web/src vitest.config.ts:0 错误(另有 29 条既存.test.tswarning,与本次改动无关)。node scripts/check-ui-contract.mjs:✓ UI contract OK(app-injection baseline降至130)。node scripts/check-settings-rows.mjs:✓ settings rows OK (326 components)。pnpm --filter @memohai/web build:✓ built in 2.83s。node --test .github/scripts/*.test.mjs:30 / 30通过。实机运行与界面验证(Agent 浏览器自测)
pnpm --filter @memohai/web exec vite --port 18182 --strictPort --host 127.0.0.1,代理指向本地 OSS 开发后端(http://localhost:18080/http://localhost:18081),使用ego-browser在真实 Chromium 中操作并截图查验。/settings/providers?tab=voice,Speaking与Listening分区及各服务商卡片均正常渲染,无报错。OpenAI Speech详情页与gpt-4o-mini-tts模型编辑弹窗,验证统一后的AudioProviderSetting与ModelConfigEditor/ModelConfigFields(名称输入、密钥隐藏输入与切换按钮、Base URL、合成参数表单、Speed步进器与测试输入区)交互正常。OpenAI Transcription详情页及gpt-4o-mini-transcribe弹窗,验证复用同一详情组件在transcription模式下能够正确重置表单状态并切换为音频文件测试输入,API 密钥保持脱敏遮罩。<html class="dark">与<meta name="theme-color">从#060606切换至#faf8f7并恢复)及跳转工作区聊天与 Bots 列表,界面渲染及路由切换正常。Screenshots / Recordings
图 1:
/settings/providers?tab=voice总览页,验证归并目录后 Speaking 与 Listening 分区卡片及图标渲染正常。图 2:
AudioProviderSetting在speech模式下渲染OpenAI Speech详情、配置表单与已配置模型列表。图 3:
ModelConfigEditor与ModelConfigFields弹窗,验证Voice、Response Format、Speed步进器及合成测试区渲染。图 4:
AudioProviderSetting切换至transcription模式渲染OpenAI Transcription,验证字段状态独立刷新及模型弹窗切换为音频文件输入。图 5:清理伪 SSR 判空与内部
.trim()后的主工作区聊天界面,标签页与侧栏会话列表交互正常。Human QA