-
Notifications
You must be signed in to change notification settings - Fork 0
fix: resolve multiple bugs found during code review #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 User's new message is excluded from API call due to stale At (Refers to line 146) Was this helpful? React with 👍 or 👎 to provide feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Dangerous command patterns are trivially bypassed due to end-of-string
$anchorThe
rm-related regexes in_dangerousPatternsatlib/data/tools/bash_tool.dart:33-34use$(end-of-string anchor), so they only match whenrm -rf /is at the very end of the command string. Any appended text bypasses the check — e.g.,rm -rf / ; echo doneorrm -rf / #commentwill not be caught. Since the LLM could easily generate compound commands, this safety feature is ineffective against common patterns.Was this helpful? React with 👍 or 👎 to provide feedback.