Repository navigation
fix: /clear now clears terminal screen and resets context left indicator - #425
Merged
Merged
Conversation
…pe definition in tests
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
fouad-openai
self-requested a review
April 19, 2025 23:11
/clear now clears terminal screen and resets context left indicator
Contributor
|
thanks @nerdielol - looks like it just needs formatting fix, then should be good! |
Contributor
Author
|
Collaborator
|
Fixed some merge conflicts and ensured that we preserve the developer message when clearing, we should only remove user and assistant turns. |
Collaborator
|
@nerdielol there are some test issues that are related to the terminal clearing implemented here, could you take a look? Will be excited to merge this once they are, thanks! |
…ntext left indicator to reset; update confirmation message
Contributor
Author
|
@tibo-openai ready for review. Note: I discovered several new bugs and fixed.
|
Collaborator
|
Merging, ty for the nice contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What does this PR do?
/clearcommand in codex‑cli:Context cleared.Why is it needed?
/clear – clear screen & contextdoes not clear the screen #405How is it implemented?
process.stdout.write('\x1b[3J\x1b[H\x1b[2J')interminal.tsx. Removed reference toprevinsetItems((prev) => [ ...prev,interminal-chat-new-input.tsx&terminal-chat-input.tsx.CI / QA
All commands pass locally:
Results
Screen.Recording.2025-04-19.at.3.22.27.PM.mov