cli/slash: remove the /clear command

This commit is contained in:
2026-10-09 21:15:48 +08:00
parent 287b838db9
commit 6807055b9f
4 changed files with 3 additions and 14 deletions
-8
View File
@@ -478,14 +478,6 @@ slash.add_command(quit_cmd, name="exit")
slash.add_command(quit_cmd, name="q")
@slash.command("clear")
@click.pass_obj
def clear_cmd(state: ReplState) -> None:
"""Clear in-memory conversation (keeps session id)."""
state.agent.messages.clear()
click.echo("conversation cleared (in-memory only; DB history kept)")
@slash.command("edit")
@click.pass_obj
def edit_cmd(state: ReplState) -> None:
+1 -1
View File
@@ -9,7 +9,7 @@ for every printed row (``-vv``).
Numbering is a **display ordinal** over the conversation rows (1-based, in the
order the session holds them): it is what ``/history`` prints and what
``/history --message N`` addresses. Database row numbers are deliberately never
shown or used — they are an implementation detail that shifts with ``/clear``.
shown or used — they are an implementation detail of the store.
Local-only rows (the injected system prompt) have no number.
"""