Repository navigation
[SSR Agent] Issue Fix (19239): Update /clear command docs to include context reset - #28847
Conversation
…context reset $fixes google-gemini#19239 google-gemini#19239 ### Context & Problem The documentation for the `/clear` command in `docs/reference/commands.md` incorrectly stated that it only clears the visual terminal screen and scrollback, failing to mention that it also clears the active conversation context and starts a new session. ### Detailed Changes - Updated the `/clear` command description in [commands.md](file:///usr/local/google/home/joneba/ssr-prototype/gcli-intern-project/tools/caretaker-agent/evals/pr-generation/run_outputs/onboarded_triaged_3.5_flash/agent_environments/issue_19239/tmp/eval/gemini-cli-clone/docs/reference/commands.md) to clarify that running `/clear` resets the agent's conversation context and starts a new session in addition to clearing the visible terminal screen. - Clarified the keyboard shortcut behavior, explicitly explaining that **Ctrl+L** only performs a visual clear of the screen while preserving the active conversation context, and that `/clear` must be used to start a new session. ### Verification - Reviewed the documentation changes to ensure they are clear, accurate, and completely satisfy the expected behavior in the specification.
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses an issue where the documentation for the /clear command was misleading regarding its functionality. The changes clarify that the command resets the conversation context and initiates a new session, while also distinguishing this behavior from the visual-only clear provided by the Ctrl+L shortcut. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
📊 PR Size: size/S
|
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in docs/reference/commands.md to clarify the behavior of the /clear command and the Ctrl+L keyboard shortcut. Specifically, it explains that /clear resets the active agent conversation context and starts a new session, whereas Ctrl+L only visually clears the terminal display while preserving the conversation context. There are no review comments, and I have no feedback to provide.
Note: Security Review has been skipped due to the limited scope of the PR.
962b8a2
fixes #19239
#19239
Context & Problem
The documentation for the
/clearcommand indocs/reference/commands.mdincorrectly stated that it only clears the visual terminal screen and scrollback, failing to mention that it also clears the active conversation context and starts a new session.Detailed Changes
/clearcommand description in commands.md to clarify that running/clearresets the agent's conversation context and starts a new session in addition to clearing the visible terminal screen./clearmust be used to start a new session.Verification