dsh-cc/dsh-cc--packages-interaction-command-rename ↗★ 1

@dsh-cc/command-rename

面向用户的斜杠命令,经会话标题服务重命名当前会话。 适合为当前会话固定自定义标题的用户;依赖sessionTitle服务。

套件
@dsh-cc/command-rename
相容性
待驗證
Harness 依賴範圍
>=0.1.5-rc.1
Cordis 依賴範圍
>=0.1.5-rc.1
版本
0.7.1
授權
Apache-2.0
最近更新
2026年9月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

@dsh-cc/command-rename

English | 中文

Human-facing /rename command: pin an explicit user title on the current session through the optional host sessionTitle service. The plugin registers one global command through ctx.commands.

Command contract

InputResult
/rename Rename the session to the trimmed ``. The title service pins it, so automatic generation stops scheduling. Replies Renamed to: .
/rename (no argument)Error: Usage: /rename ; the service is not called.

The command reads the optional sessionTitle seam at run time — a composition without it replies renaming is unavailable: this deployment mounts no session-title service. Validation failures raised by the service (e.g. a title with no visible characters) pass through as the command's error text.

Composition

The producer injects commands. Mount it wherever the session-title service is composed (cc preset users already get it):

- id: command-rename
  name: '@dsh-cc/command-rename'

Model Experience

The slash input and the direct output are absent from model requests and consume no model tokens. The rename itself is a host-side log event (session/title with source user) that never reaches the model surface.

Known Limitations and Deferred Work

  • No interactive confirmation — like CC, the rename is immediate; undo is a second /rename.
  • No picker — CC's title suggestions/rename menu is out of scope; this is the argued `` form only.