-
-
Notifications
You must be signed in to change notification settings - Fork 603
fix(redteam): respect maxConcurrency from webui #4605
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
Conversation
⏩ No tests generated (0d9d326) View output ↗ Tip New to Tusk? Learn more here. View check history
|
TestGru AssignmentSummary
Files
Tip You can |
29ad276
to
0fca7bb
Compare
📝 WalkthroughWalkthroughThe changes introduce a new optional numeric property, Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (2)`src/**/*`: Place core logic files inside the src/ directory.
`src/app/**/*`: src/app is included as a workspace.
⏰ Context from checks skipped due to timeout of 90000ms (11)
🔇 Additional comments (9)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
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.
Bug: Concurrency Validation Mismatch
The maxConcurrency
input field's JavaScript validation (Number(value) >= 0
) is inconsistent with its HTML min=1
attribute. Allowing a maxConcurrency
of 0
is illogical as it would prevent any operations from running. The JavaScript validation should be updated to Number(value) >= 1
to align with the HTML constraint and ensure valid concurrency values.
src/app/src/pages/redteam/setup/components/Review.tsx#L875-L885
promptfoo/src/app/src/pages/redteam/setup/components/Review.tsx
Lines 875 to 885 in 0d9d326
onChange={(e) => { | |
const value = e.target.value; | |
// Ensure non-negative numbers only | |
if (!Number.isNaN(Number(value)) && Number(value) >= 0) { | |
setMaxConcurrency(value); | |
updateConfig('maxConcurrency', Number(value)); | |
// If concurrency > 1, disable delay by setting it to 0 | |
if (Number(value) > 1) { | |
setDelayMs('0'); | |
} | |
} |
Was this report helpful? Give feedback by reacting with 👍 or 👎
Co-authored-by: gru-agent[bot] <185149714+gru-agent[bot]@users.noreply.github.com>
No description provided.