Repository navigation
feat(minimax-pet): 0.6.0 打开对话与主题跟随,移除打招呼/跳一下和原聊天草稿 - #124
Merged
Merged
Conversation
- 删除右键菜单和外观页的「打招呼」「跳一下」;悬停与拖拽松手的跳跃动画保留。
- 删除整个原属聊天草稿功能:菜单项、设置入口、草稿页、桌面输入框、语音转写,
以及声明为麦克风的 deviceAccess 权限。
- 任务详情(面板与桌面卡片)新增「打开对话」/「去回答」,调用
host.navigation.open({ id: 'session', sessionId, source: 'local' });
点击中同步发起、不自动重试、切换任务后丢弃迟到结果,旧客户端隐藏按钮。
- 通过 host.ui.subscribe 跟随 MiniMax Code 明暗主题,旧客户端仍跟随系统设置。
- 两项新能力均先做能力检测,最低客户端版本保持 3.1.6。
- 同步更新源码测试、README(中英)、DEVELOPMENT、PROVENANCE 与根 README 表格。
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.
MiniMax Pet 0.6.0:删掉「打招呼/跳一下」和原属聊天草稿(含语音输入),不再申请麦克风权限。任务详情新增「打开对话」/「去回答」(
host.navigation.open),面板和桌面卡片也跟随 MiniMax Code 的明暗主题(host.ui.subscribe)。两个 API 都只在 3.1.11 起提供,旧客户端自动隐藏,不需要新增权限,最低版本仍为 3.1.6。页面外观有变化:右键菜单只剩四项,任务详情多一个按钮。截图是用模拟 Host 渲染的,需要时我再附上。
验证环境与结果
npm test237 个通过、npm run test:smoke70/70 通过;npm run package后npm run check:package确认plugins/与源码逐字节一致(38 个文件)。npm run check:plugins/minimax-ai/minimax-pet: OK,无错误,无该包的警告。window.mcode.miniapp,非真实客户端)在无头 Chromium 里检查:面板与桌面卡片正常渲染,点击「去回答」/「打开对话」以{ id: 'session', sessionId, source: 'local' }调用,且点击时navigator.userActivation.isActive为真;host.ui.subscribe推送 dark 后面板切换主题;控制台无报错。packages/ui/src/operations/miniAppHostNavigation.ts、apps/electron/main/modules/browser/miniapp-host.ts和docs/client.md核对:open不要求hostAccess,在点击中同步发起,并会把主窗口带前台。2026-11-10 确认 3.1.11 的 macOS 与 Windows 安装包在两个正式 CDN 上均返回 200。未验证
npm run check警告:无。权限与最低版本变化:
deviceAccess: ["microphone"]删除(降级,无升级);无新增权限;最低客户端版本保持 3.1.6。Written by Claude Opus 5.5
改了什么
playOneShot仍在使用。composer、语音输入与message.append调用一并删除;chat-draft.mjs、speech-input.mjs及对应测试删除;panel-navigation.mjs不再有settingsView/onLeaveDraft;miniapp.json去掉deviceAccess。renderDetailOpen里管理按钮,openSelectedSession→openSessionInHost→callBridge(() => hostNavigation.open(...)),同步发起以满足 Host 的 user-activation 检查。createCompactPetView的新参数onOpenSession提供同样能力,结果提示在compact-hint里。app.source === 'demo'或客户端不支持时隐藏。opened提示成功;user_cancelled/superseded提示未打开;错误按{ code, message }读取(不依赖instanceof Error),覆盖target_unavailable、unsupported_source、not_permitted、host_unavailable、result_unknown,不自动重试。initHostTheme用host.ui.subscribe把theme写到documentElement的data-theme;CSS 原本就有[data-theme]规则,因此旧客户端仍由prefers-color-scheme决定。订阅随pagehide释放,onError只记录日志并保留当前主题。返回的language不使用。DEVELOPMENT.md、PROVENANCE.md同步;根目录两个 README 的 minimax-pet 行提到「一键打开任务对话(3.1.11 起)」。0.5.11→0.6.0。测试
sources/minimax-ai/minimax-pet:npm test237 通过、npm run test:smoke70/70。dev/chat-draft.test.mjs、dev/speech-input.test.mjs(被测模块已删除)。Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.