Repository navigation
Conversation
🦋 Changeset detectedLatest commit: edb21ff The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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. |
commit: |
Grapedge
force-pushed
the
feat/fullscreen-mouse-dialogs
branch
from
November 25, 2026 22:01
4002281 to
162fe56
Compare
Grapedge
force-pushed
the
feat/fullscreen-mouse-dialogs
branch
from
November 25, 2026 22:08
162fe56 to
edb21ff
Compare
This branch has not been deployed
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.
Screenshots / Recordings
在真实 PTY(120×36,macOS)全屏模式下,
/experiments支持悬停移动与点击切换、/plugins支持点击切换Custom标签页并在输入框内点击定位光标、/provider支持悬停切换、/feedback支持输入框点击定位光标与附件选择器交互。实机终端文本快照(全屏模式 `/experiments`、`/plugins`、`/provider`、`/feedback`)
Requirement or Bug
完成高频核心面板(PR 1)与全屏接管查看器(PR 2)后,剩余的管理面板(
/plugins及 MCP 子面板、/experiments、/provider、缓存失效提示、/goal队列管理与编辑弹窗)、表单输入弹窗(/feedback输入框、API Key 输入框、自定义源导入弹窗)、引导向导(会话导入、数据迁移),以及 3 处既有组件的局部缺口(审批面板内嵌反馈输入框、信任确认弹窗多页滚轮、/feedback附件列表分页)仍未补齐鼠标支持。本 PR 作为 3 层堆叠 PR 的第 3 层,关闭上述全部缺口,同时保留常规模式与独立子命令(kimi import-sessions)完全可用。Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
本 PR 全部复用 PR 1 引入的渲染期命中原语(
ListMouseTracker、SpanHitMap、renderInlineSegments、layoutTabStrip、EmbeddedRect/forwardEmbeddedMouse、StableWindow),将 14 个组件的鼠标交互与边界防误触收口到统一模式,未引入任何新的背景 hover 效果,也未改动ApprovalPanel既有的背景 hover 逻辑。flowchart LR P1["PR 1 共享原语<br/>ListMouseTracker · SpanHitMap · EmbeddedRect · StableWindow · layoutTabStrip"] --> A["管理面板与目标队列<br/>Plugins / PluginMcp / Experiments / Provider / CacheHint / GoalQueue"] P1 --> B["表单输入与向导<br/>FeedbackInput / ApiKeyInput / CustomRegistryImport / ImportSessions / Migration"] P1 --> C["既有组件局部缺口<br/>ApprovalPanel inline feedback · TrustPrompt wheel · PreviewChoicePicker paging"]所有内嵌
Input/Editor/MultilineGoalInput均在render()绘制同一行时记录精确EmbeddedRect(包括ApprovalPanel剥离"> "的contentOffsetX: 2与FeedbackInputDialog窄宽剥离边框的contentOffsetY: 1),消除硬编码行号漂移;多阶段向导和异步刷新列表在切阶段或数据更新时重置resetSettling(),避免双击穿透下一阶段或误触刚加载出的首行。关键决策
GoalQueueEditDialog多行输入框MultilineGoalInput补StableWindow+ 滚轮与点击光标定位pi-tuiEditorTUI实例依赖的构造签名及> First line/ 4000 字符校验等全部既有契约GoalQueueManager点击语义❯、单击选中、双击编辑;排序态禁悬停,单击退出排序Enter动作,双击编辑与底栏提示点击更不易误操作/feedback附件分页与文件链接ScrollView,未移动时回退onPreviewScroll;仅对← previous page/→ next page注册点击renderPaddedDialogBox供ApiKeyInputDialog与CustomRegistryImportDialog共用jscpd零新增克隆检查阅读指南
apps/kimi-code/src/tui/components/dialogs/{plugins-selector,experiments-selector,provider-manager,cache-hint-dialog,goal-queue-manager}.ts:管理面板与目标队列(含MultilineGoalInput鼠标定位与滚轮)。apps/kimi-code/src/tui/components/dialogs/{feedback-input-dialog,api-key-input-dialog,custom-registry-import}.ts:表单输入弹窗的宽/窄双路径坐标转发与双字段切换。apps/kimi-code/src/session-import/screen.ts、apps/kimi-code/src/migration/migration-screen.ts:向导切阶段防误触与完成页点击关闭。apps/kimi-code/src/tui/components/dialogs/{approval-panel,trust-prompt,choice-picker}.ts、apps/kimi-code/src/tui/commands/prompts.ts:3 处局部缺口补齐。可略读部分:changeset 与 13 个测试文件的新增用例。
Behavior Changes and Affected Users
/plugins、/experiments、/provider、缓存提示、/goal队列与编辑)PluginsPanel安装中锁定点击、异步加载与切页重置防误触;ProviderManager删除确认[y/N]可点击/feedback、ApiKeyInputDialog、CustomRegistryImportDialog)/feedback多行滚轮ImportSessionsScreen、MigrationScreen)kimi import-sessions常规模式不受影响kimi import-sessions的 CLI 用户ApprovalPanel内嵌反馈输入feedbackMode时点击输入框文本无法定位光标feedbackMode并保留草稿,原有背景 hover 不变TrustPrompt多页披露/feedback附件预览(PreviewChoicePicker)OverflowScrollView导致滚轮与分页提示不可用鼠标操作ScrollView移动时回退触发附件翻页,← previous page/→ next page支持点击,OSC 8 文件链接仍透传原生打开验证结论
/experiments、/plugins、/provider、/feedback交互与光标定位;全部 14 个改动模块均有对应单测覆盖宽/窄宽度、阶段切换防误触、OSC 8 链接透传与常规模式兼容性;Linux 由 CI 跑测验证。自动化检查与测试结果
pnpm exec vitest run --reporter=agent apps/kimi-code/test/tui/ apps/kimi-code/test/migration/ apps/kimi-code/test/session-import/:182 files, 4010 passed(修复评审后 5 个核心单测 101/101 passed)pnpm exec tsc -p apps/kimi-code/tsconfig.json --noEmit:0 errorspnpm lint:0 warnings, 0 errorspnpm run check:duplication:0 new clonesChecklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.