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

@dsh-cc/command-rename

Human-facing slash command to rename the current session via the session-title service 适合为当前会话固定自定义标题的用户;依赖sessionTitle服务。

パッケージ
@dsh-cc/command-rename
互換性
未検証
Harness ピア範囲
>=0.1.5-rc.1
Cordis ピア範囲
>=0.1.5-rc.1
バージョン
0.7.1
ライセンス
Apache-2.0
最終更新
2026/09/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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.