-
Notifications
You must be signed in to change notification settings - Fork 5.8k
chore: cover code mode with end to end provider tests #6183
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,19 @@ | ||||||
| #!/bin/bash | ||||||
| # Test providers with optional code_execution mode | ||||||
| # Usage: | ||||||
| # ./test_providers.sh # Normal mode (direct tool calls) | ||||||
| # ./test_providers.sh --code-exec # Code execution mode (JS batching) | ||||||
|
|
||||||
| CODE_EXEC_MODE=false | ||||||
| for arg in "$@"; do | ||||||
| case $arg in | ||||||
| --code-exec) | ||||||
| CODE_EXEC_MODE=true | ||||||
| shift | ||||||
| ;; | ||||||
|
||||||
| ;; |
Copilot
AI
Dec 19, 2025
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.
The regex pattern mixes literal pipes (with spaces) and regex OR operator (pipe without spaces), making it unclear. Consider using explicit grouping like "(execute_code | code_execution)|(read_module | code_execution)" to make the intent clearer, or escape the literal pipes if they should be matched literally.
| SUCCESS_PATTERN="execute_code | code_execution|read_module | code_execution" | |
| SUCCESS_PATTERN="(execute_code | code_execution)|(read_module | code_execution)" |
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.
The
shiftcommand has no effect here because the loop iterates over"$@"directly, not positional parameters. Remove this line as it serves no purpose in this context.