mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 23:47:54 +08:00
cli/slash: remove the /clear command
This commit is contained in:
@@ -149,7 +149,7 @@ def test_completer_help_commands(tmp_path: object, monkeypatch: object) -> None:
|
||||
found.append(item)
|
||||
index += 1
|
||||
assert "compact" in found
|
||||
assert "clear" in found
|
||||
assert "config" in found
|
||||
|
||||
|
||||
def test_completer_stream_on_off(tmp_path: object, monkeypatch: object) -> None:
|
||||
|
||||
@@ -87,11 +87,8 @@ async def state(tmp_path: Path) -> AsyncIterator[ReplState]:
|
||||
await memory.close()
|
||||
|
||||
|
||||
async def test_help_and_clear(state: ReplState) -> None:
|
||||
async def test_help(state: ReplState) -> None:
|
||||
assert await handle_slash(state, "/help") is True
|
||||
state.agent.messages.append(AssistantChatMessage(content="x"))
|
||||
assert await handle_slash(state, "/clear") is True
|
||||
assert state.agent.messages == []
|
||||
|
||||
|
||||
async def test_auto_continue_limits_installs_on_limit(tmp_path: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user