mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 15:37:55 +08:00
cli/slash: remove the /clear command
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user