google-gemini/gemini-cli

/clear docs dont mention that it clears context

Open

#19,239 建立於 2026年2月17日

在 GitHub 查看
 (9 留言) (0 反應) (1 負責人)TypeScript (103,992 star) (13,657 fork)batch import
area/agenthelp wantedkind/customer-issuepriority/p3status/bot-triaged

描述

/clear

Description: Clear the terminal screen, including the visible session history and scrollback within the CLI. The underlying session data (for history recall) might be preserved depending on the exact implementation, but the visual display is cleared.

This forgets to mention the most important part, that the context of the agent is cleared fresh so you can begin new thread without context pollution.

貢獻者指南

/clear docs dont mention that it clears context · google-gemini/gemini-cli#19239 | Good First Issue