-
Notifications
You must be signed in to change notification settings - Fork 193
fix(terminal): filter terminal query sequences from captured output #2245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8730c48
Fix terminal escape code leak from stdin
jpshackelford ef4f328
chore: trigger CI re-run for updated API breakage comment
openhands-agent 012422c
fix(tests): improve flush_stdin tests based on review feedback
openhands-agent ae64c17
fix(flush_stdin): use deep copy for termios settings
openhands-agent a757db9
Merge branch 'main' into fix/stdin-escape-code-leak
jpshackelford a8b4af9
test(flush_stdin): add PTY-based tests for termios restoration
openhands-agent 18c0468
fix: address CI lint and type errors
openhands-agent 5c34edb
feat(flush_stdin): implement selective flushing with input preservation
openhands-agent ad0ae20
fix(terminal): filter terminal query sequences from captured output
jpshackelford b66cde5
chore: add diagnostic scripts for PR review
jpshackelford e19a0aa
chore: Remove PR-only artifacts [automated]
67bd997
Merge branch 'main' into fix/stdin-escape-code-leak
juanmichelini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
14 changes: 14 additions & 0 deletions
14
openhands-tools/openhands/tools/terminal/utils/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| """Terminal tool utilities.""" | ||
|
|
||
| from openhands.tools.terminal.utils.command import ( | ||
| escape_bash_special_chars, | ||
| split_bash_commands, | ||
| ) | ||
| from openhands.tools.terminal.utils.escape_filter import filter_terminal_queries | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "escape_bash_special_chars", | ||
| "split_bash_commands", | ||
| "filter_terminal_queries", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.