Skip to content

[Bug]: CLI 终端思考时预输入粘贴内容,Pasted Text 占位符无法展开 #5423

Description

@ji-tz

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

npm-v1.10.0-rc.1

What happened?

CLI 终端中,在模型思考/推理时向输入框预输入(粘贴)多行内容,
粘贴的内容会被折叠为 [Pasted Text #10 · 41 Lines] 占位符标签。
思考完成后,该标签未被展开,而是原封不动地发出去了。

期望行为
思考完成后,[Pasted Text #10 · 41 Lines] 标签应该被展开为实际的粘贴内容再发出。

Steps to reproduce

  1. 发送一条需要较长时间思考的消息给模型
  2. 模型开始思考后,在输入框粘贴一段多行文本
  3. 粘贴内容被折叠为 [Pasted Text feat(index): config-driven excludes + .gitignore + dashboard UI #10 · 41 Lines] 标签
  4. 按 Enter 发送(或等待自动输入)
  5. 等待模型思考完成,[Pasted Text feat(index): config-driven excludes + .gitignore + dashboard UI #10 · 41 Lines]自动发送
  6. 实际发出的是 [Pasted Text feat(index): config-driven excludes + .gitignore + dashboard UI #10 · 41 Lines] 文字本身,不是粘贴的原始内容

OS / platform

Ubuntu 24.04

Relevant logs or output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglinuxLinux-specifictuiTerminal UI / CLI (internal/cli, internal/control)v2Go rewrite (1.x) — main-v2 branch, active development

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions