fix(terminal): offer Gemini's current commands in the composer's menu

Gemini CLI now names its session browser /resume, with /chat kept as an
alias, and /clear starts a new session rather than only clearing the
screen. Offer /resume under its own name, say what /clear does now, and
add /model and /init, which the menu left out.
This commit is contained in:
l0ng-ai
2026-10-01 15:28:00 +08:00
parent 775baf246e
commit 46272fc6d4
+4 -2
View File
@@ -497,9 +497,11 @@ fn builtin_commands(agent: CLIAgent) -> &'static [(&'static str, &'static str)]
],
CLIAgent::Gemini => &[
("/compress", "Summarize to free up context"),
("/clear", "Clear the screen and history"),
("/clear", "Clear the screen and start a new session"),
("/model", "Choose the model"),
("/resume", "Browse and resume saved conversations"),
("/init", "Create a GEMINI.md for this repo"),
("/memory", "Manage memory"),
("/chat", "Save or resume a conversation"),
("/tools", "List available tools"),
("/mcp", "List MCP servers"),
("/stats", "Show session statistics"),