Skip to content

feat(desktop): remove the continue button from the empty composer - #5259

Merged
wbxl2000 merged 1 commit into
mainfrom
feat/hide-composer-continue-button
Nov 23, 2026
Merged

wbxl2000 merged 1 commit into
mainfrom
feat/hide-composer-continue-button

Conversation

@wbxl2000

@wbxl2000 wbxl2000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Screenshots / Recordings

同一个 e2e 场景:桩模型流式回复到一半时点停止,鼠标悬停在发送按钮上。看输入框右下角:改动前发送按钮变成可点击的播放按钮,提示 Continue;改动后保持禁用的发送箭头,提示 Send ↵。

改动前 改动后
改动前:停止后空输入框显示 Continue 播放按钮 改动后:停止后空输入框保持禁用的发送按钮
整窗截图(对话里能看到 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 只删输入框这一路,汇合点之后的部分都保留。

 <ConversationPane>
   <Composer> / <ChatDock>
-    canContinue 为真且输入框为空 → 发送按钮切成播放图标 → emit('continue')
+    发送按钮只有「发送」一种状态
   <ChatPane>
     错误卡片「继续」→ emit('resumeTurn') → handleResumeTurn → emit('continue')
       → App.handleContinue → client.continueSession → POST :continue
  • 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

Behavior Before After Who relies on the old behavior Escape hatch
手动停止一轮后,空输入框的发送按钮 变成可点击的「继续」播放按钮,点击后通过 :continue 接着跑 保持禁用的发送箭头;要继续需要输入一条消息 desktop canary 用户、从 main 构建 web 的用户(#5048 未进正式版) 无;按维护者决定移除
失败轮次错误卡片上的「继续」 通过 :continue 接着跑 不变 — —
POST /sessions/{id}:continue 接口 — 不变 — —

受影响模块:packages/app-components(Composer)、packages/app-client(删除 canContinue)、packages/app-i18n、apps/desktop renderer(desktop 与 web 共用)。

测试覆盖:

  • composerRunningSendMode.test.ts:删掉继续按钮的用例和只给它用的 mock 字段,其余发送、插入、排队用例不变。
  • conversation-events.test.ts:原用例同时测 canContinue 和 continueSession,现在只保留「continueSession 期间 working 保持为真、新一轮结束后回落」这部分,错误卡片的继续依赖它。
  • 错误卡片的继续由现有 e2e 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 passed
  • pnpm --filter kimi-code-app run typecheck(包含 packages/app-* 和 renderer 的 vue-tsc):通过
  • pnpm lint:通过
  • pnpm run check:duplication <base>:无新增重复
  • 截图:在 main 和本分支上各跑一次同一个临时 e2e 场景(不入库),截取停止后的输入框

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • The behavior-change table above is complete, and every removed behavior or flipped default is named in the changeset and either has an escape hatch or was explicitly approved by a maintainer in this PR.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

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.
@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6e41d46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 2 packages
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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:05:44.292314Z 6e41d46 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@6e41d46
npx https://pkg.pr.new/@moonshot-ai/kimi-code@6e41d46

commit: 6e41d46

@wbxl2000
wbxl2000 merged commit 7746b16 into main Nov 23, 2026
38 of 44 checks passed
@wbxl2000
wbxl2000 deleted the feat/hide-composer-continue-button branch November 23, 2026 06:48
7723qqq pushed a commit to 7723qqq/kimi-code that referenced this pull request Nov 24, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants