Repository navigation
feat(desktop): remove the continue button from the empty composer - #5259
Conversation
The empty composer no longer turns the send button into a Continue button after a turn is stopped. Failed turns still offer Continue on their error card, and the client keeps continueSession for that path.
|
| Name | Type |
|---|---|
| kimi-code-app | Patch |
| @moonshot-ai/kimi-code | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e41d4633d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| --- | ||
|
|
||
| Continue an interrupted or failed turn in place without adding a synthetic "Continue" user message. Click the continue button in the empty composer after interrupting a turn or on the error card after a failed turn. | ||
| Continue a failed turn in place without adding a synthetic "Continue" user message. Click Continue on the error card after a failed turn. |
There was a problem hiding this comment.
Document the removed interrupted-turn continuation
For desktop-canary users and users running Web builds from main, this changeset now mentions only the retained failed-turn action, so the release notes omit that the empty-composer Continue action after an interruption was removed with no escape hatch. State that loss explicitly rather than rewriting the entry as though interrupted-turn continuation never existed.
AGENTS.md reference: AGENTS.md:L195-L197
Useful? React with 👍 / 👎.
commit: |
Record MoonshotAI#5247 ported and MoonshotAI#5258, MoonshotAI#5259 and MoonshotAI#5266 equivalent to the fork's own sidebar, composer and tool-duration implementations, each with an executable probe.
Screenshots / Recordings
同一个 e2e 场景:桩模型流式回复到一半时点停止,鼠标悬停在发送按钮上。看输入框右下角:改动前发送按钮变成可点击的播放按钮,提示
Continue;改动后保持禁用的发送箭头,提示Send ↵。整窗截图(对话里能看到 Manually stopped 标记)
Requirement or Bug
#5048 在空输入框里加了一个「继续」按钮:手动停止一轮后,发送按钮变成播放图标,点击后通过
:continue接着跑。维护者决定不再展示这个按钮,这个 PR 把它去掉。desktop 和 web 共用同一套 renderer,两端一起去掉;失败轮次错误卡片上的「继续」不受影响。Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
这个按钮只在一条链路上:
Composer根据client.canContinue把发送按钮切成继续按钮并发出continue,经ChatDock/ConversationPane转发到App.vue的handleContinue。错误卡片的「继续」走的是另一条入口,在ConversationPane汇合到同一个continue事件。本 PR 只删输入框这一路,汇合点之后的部分都保留。Composer.vue:删掉showContinueButton、handleSendOrContinue和播放图标,ComposerEmits去掉continue;发送按钮回到 feat(session): add POST /sessions/{id}:continue and desktop/web continue UI #5048 之前的状态,disabled = starting || !canSend,点击直接handleSubmit()。ChatDock.vue、ConversationPane.vue:删掉输入框continue事件的两处转发。ConversationPane自己的continue事件和handleResumeTurn保留,错误卡片还在用。useKimiWebClient.ts:删掉canContinue,它只给这个按钮用;continueSession和继续期间的 working 桥接保留。app-i18n:删掉 en / zh 的composer.continue。.changeset/session-continue-ui.md:feat(session): add POST /sessions/{id}:continue and desktop/web continue UI #5048 的 changeset 还没进正式版(只进过 desktop canary 构建),改成只描述错误卡片上的继续,避免正式版更新说明里出现一个已经删掉的按钮。Behavior Changes and Affected Users
:continue接着跑:continue接着跑POST /sessions/{id}:continue接口受影响模块:
packages/app-components(Composer)、packages/app-client(删除canContinue)、packages/app-i18n、apps/desktoprenderer(desktop 与 web 共用)。测试覆盖:
composerRunningSendMode.test.ts:删掉继续按钮的用例和只给它用的 mock 字段,其余发送、插入、排队用例不变。conversation-events.test.ts:原用例同时测canContinue和continueSession,现在只保留「continueSession期间 working 保持为真、新一轮结束后回落」这部分,错误卡片的继续依赖它。transcript-failures.spec.ts、lifecycle-model-errors.spec.ts覆盖,本 PR 没有改动它们。验证
pnpm exec vitest run packages/app-components/test/composerRunningSendMode.test.ts packages/app-client/test/conversation-events.test.ts:26 passedpnpm --filter kimi-code-app run typecheck(包含packages/app-*和 renderer 的vue-tsc):通过pnpm lint:通过pnpm run check:duplication <base>:无新增重复Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.