Skip to content

[cosh-ng] 优化 /cosh-switch 成功后的模式切换反馈 #1352

Description

@SunnyQjm

/cosh-switch 完成安装/卸载后,当前交互体验不够明确。

现象

在 copilot-shell 中执行 /cosh-switch

  • 输出显示 Current: copilot-shell -> switching to cosh-ng
  • rpm 事务成功完成:安装 cosh-ng,移除 copilot-shell
  • 最终显示 Complete!
  • 但当前会话看起来仍停留在旧的 Copilot Shell 体验中,没有直接进入新模式,也没有明确提示用户下一步如何进入新模式

截图中的底部提示仍显示:You are running Copilot Shell ...

预期

成功切换后应满足二选一,避免用户误以为切换失败:

  1. 如果技术上可行,/cosh-switch 成功后直接进入新的 cosh-ng 模式;或
  2. 如果当前 shell 进程无法热切换,需要明确提示用户下一步操作,例如重新打开 shell、重新连接会话,或执行指定命令进入 cosh-ng。

验收标准

  • /cosh-switch 成功后,用户能明确知道当前是否已经进入新模式。
  • 如果仍需重启/重新进入 shell,输出中必须给出明确、可执行的提示。
  • 成功切换后的提示不应继续让用户认为当前仍在旧的 Copilot Shell 模式。
  • 中英文环境下提示都应清晰。

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions