Repository navigation
fix(desktop): simplify multi-select folder picker actions - #5174
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 30175eb 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 |
7Sageer
marked this pull request as ready for review
November 20, 2026 05:39
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: |
Merged
This was referenced Nov 20, 2026
Grapedge
added a commit
that referenced
this pull request
Nov 23, 2026
* fix(core): add Claude 5 output token ceilings (#5096) * fix(core): add Claude 5 output token ceilings * chore: add Claude 5 output ceiling changeset * fix(markdown): keep table actions inside clipped containers (#5098) * fix(markdown): keep table actions inside clipped containers * fix(markdown): observe table action clipping ancestors --------- Co-authored-by: kimi-agent-bot <[email protected]> * fix(hosts): keep project lists usable with SSH hosts (#5102) * ci: release packages (#5094) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: preserve first prompt through project creation (#5161) Co-authored-by: kimi-agent-bot <[email protected]> * fix(agent-core-v2): align fork slicing with restored turn ids (#5165) * fix(agent-core-v2): align fork slicing with restored turn ids * chore: add restored fork fix changeset * fix(core): prevent AJV diagnostics from polluting TUI input (#5168) * refactor(core): route AJV logs through utils logger * chore(core): add AJV logger changeset * chore(core): clarify AJV logger changeset * fix: support UUID generation in insecure browser contexts (#5173) * fix: support UUID generation in insecure browser contexts * chore: update pnpm deps hash * fix: resolve crypto bindings in UUID lint rule --------- Co-authored-by: kimi-agent-bot <[email protected]> * fix(client): keep draft thinking effort after sending (#5170) * fix(client): keep draft thinking effort after sending * chore: add cli changeset for draft thinking fix * test(client): use function stub for websocket in thinking test * fix(client): preserve thinking effort during model normalization * fix(client): reconcile profile updates and model fallbacks * fix(client): scope draft thinking preservation * fix(tui): defer queued prompts until the loop drains (#5166) * fix(tui): defer queued prompts until the loop drains - add core and v2 drained/idle lifecycle events - consume reminder-only queues without starting a model turn - gate TUI queue dispatch and completion notifications on lifecycle state - document notification-handoff queue behavior and add a CLI patch changeset * fix(tui): close loop lifecycle races - emit idle only after the current macro is revalidated - keep queued input pending through compaction and delayed dispatch - reject stale idle after new work starts * fix(loop): correlate lifecycle events by generation - track macro generations in the core and v2 loop state - replace TUI macro inference with event-generation correlation - preserve compaction guards for queued dispatch * fix(desktop): simplify multi-select folder picker actions (#5174) * fix(kap-server): report :wait settled only after the session is on disk (#5176) :wait settled as soon as the turn left the in-memory activity view, but the engine writes wire records through a batched log that flushes in a later task. A server killed right after :wait reported idle could lose the end of the finished turn. Before it replies with a settled session, :wait now flushes the wire of every agent in the session and drains pending metadata writes. A failed write surfaces as an error instead of a settled reply. The KAP guide states the guarantee. A new test in sessions.test.ts slows down the disk write of the turn end and checks that the record is on disk when :wait returns. (cherry picked from commit fc33c6d) Co-authored-by: kai <[email protected]> * ci: release packages (#5163) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(client): keep config-derived draft thinking effort after sending (#5191) Co-authored-by: liruifengv <[email protected]> * ci: release packages (#5192) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(kap-server): resume sessions with unavailable models (#5212) * fix(kap-server): resume sessions with unavailable models * fix: let users replace unavailable session models * fix: scope unavailable model recovery state --------- Co-authored-by: kimi-agent-bot <[email protected]> * fix(plugins): detect MCP OAuth with targeted probes (#5197) * fix(plugins): detect MCP OAuth with targeted probes * fix(plugins): use the MCP inspect route * fix(plugins): preserve OAuth requirements across inspection and disconnect * fix(chat): show pending MCP browser authorization (#5246) * fix(chat): show pending MCP browser authorization * fix(chat): resolve MCP authorization lint findings * fix(chat): preserve MCP authorization failure details * fix(mcp): preserve cancellation during OAuth reconnect * fix(desktop): cache feedback form per host and let reply reasons wrap (#5303) * ci: release packages (#5232) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * test: port removed-model recovery coverage to testkit * test: dedupe anthropic output ceiling cases --------- Co-authored-by: Haozhe <[email protected]> Co-authored-by: kimi-agent-bot <[email protected]> Co-authored-by: 7Sageer <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: kimi-agent-bot <[email protected]> Co-authored-by: liruifengv <[email protected]> Co-authored-by: qer <[email protected]> Co-authored-by: kai <[email protected]> Co-authored-by: Luyu Cheng <[email protected]> Co-authored-by: grapedge <[email protected]>
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.
Requirement or Bug
在桌面端 SSH 新建项目(以及 Web 端多选目录回退路径)打开多选文件夹选择器时,底部同时出现「选择此文件夹」与「添加所选(n)」两个确认类按钮;点击「选择此文件夹」只是静默将当前路径 toggle 进隐藏的已选数组,既没有选中态反馈,又与主按钮语义重叠。本 PR 移除了独立的「选择此文件夹」按钮,将多选模式的底部操作收敛为一个自适应主按钮,并将多选文案改为更明确的「添加文件夹(n)」。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
核心思路是把多选模式下的「选择当前目录」和「提交已勾选目录」合并到单一主按钮:有勾选项时提交已勾选列表,未勾选时直接提交当前所在目录,从而在不丢失“进入空目录 / 新建文件夹后直接添加当前目录 / 添加根目录”路径的前提下,去掉冗余的次按钮和静默 toggle 状态。
底部操作区结构变化:
主按钮状态与提交分支:
因为
canOpen在loading、creatingFolder、pathEditing && !isSearching或browseFailed时为false,未勾选状态下主按钮会自动禁用,避免在加载中或编辑路径中途误提交旧路径;当已有勾选项时,即使发生后续浏览失败,showPrimaryAction仍为true,用户仍可提交已勾选的目录。关键决策:
currentPathAdd folder ({n}) | Add folders ({n})Add folders ({n})Behavior Changes and Affected Users
currentPathtoggle 进selected集合selected.length === 0)时的主按钮[currentPath]selected.length > 0)时的主按钮文案multiple: false)add受影响模块与验证覆盖:
packages/app-components(AddWorkspaceDialog.vue)与packages/app-i18n(en/zh workspace.ts):单元测试已覆盖多选模式无次按钮、中英文文案(含英文单复数)、勾选/取消勾选回退添加当前文件夹、空目录与新建文件夹后直接添加、路径编辑时主按钮禁用、单选模式不变。验证命令与结果
pnpm exec vitest run --reporter=agent packages/app-components/test/addWorkspaceDialog.test.ts packages/app-i18n/test/i18n.test.ts:2 个测试文件 / 34 个用例全部通过pnpm --filter kimi-code-app run typecheck(tsc --noEmit+vue-tsc --noEmit -p tsconfig.renderer.json):通过pnpm lint(check-comments、oxlint --type-aware --deny-warnings、check-import-boundaries、guards、ratchet、instructions):全部通过Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.