Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10336 +/- ##
==========================================
- Coverage 89.73% 89.73% -0.01%
==========================================
Files 1051 1051
Lines 92781 92795 +14
Branches 32855 32860 +5
==========================================
+ Hits 83261 83271 +10
- Misses 9520 9524 +4
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 758e72e41f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex address that feedback |
|
To use Codex here, create an environment for this repo. |
|
@codex address that feedback |
|
To use Codex here, create an environment for this repo. |
e845a8c to
758e72e
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9a0b6c1f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0632c3fab8
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Addressed the two remaining Codex P2 findings in
Fork-side validation passed on Node 24.19.0: 5 focused test files / 188 tests, root |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c087d8f64d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 766f93434d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bba62f2929
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b7ae789fd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
1b7ae78 to
aa29b49
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb4eea0d9d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Final verification target: exact head |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Synchronize the contribution branch with promptfoo/promptfoo main at 7d6b91a without rewriting its existing commits.
|
Hi maintainers — a quick follow-up on this PR. I’ve synced the branch with current |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
👍 All Clear
Reviewed changes focused on URL encoding and routing for eval/result identifiers across the web UI, API utilities, CLI, and server startup behavior. No LLM calls, prompts, or agent/tool capabilities were added or modified. The updates improve safety by consistently encoding IDs and validating CLI inputs. No LLM security vulnerabilities were identified.
Minimum severity threshold: 🟡 Medium | To re-scan after changes, comment @promptfoo-scanner
Learn more
|
Hi @mldangelo — following up one week after the upstream sync on this contribution. The PR remains open, non-draft, mergeable, and currently contains the upstream base (26 commits ahead, 0 behind). On exact head Could you let me know whether any code-owner concern remains, or whether this can be scheduled for merge? I’m happy to address a specific request promptly. Thanks. |
Preserve encoded eval API paths alongside upstream API-base overrides and reconcile browser-launch regression coverage.
|
Hi maintainers, following up on the review request from 23 September. I resolved the upstream API-helper conflict and updated the browser-launch regression on 30 September. All 23 review threads remain resolved. I have now synchronized the branch with upstream main c4863c9; current head is 1dba579. Examples, Code Scan, title validation, and the dedicated Python example workflows all passed. CI run 37183366659 has 29 successful jobs and 2 conditional skips, with one failure in the installed-package Windows job: node.exe import-api.mjs exits with 3221225477 (0xC0000005) after logging the successful ESM root API fixture assertions. The same installed-package jobs passed on the upstream base; the artifact fixture is unchanged by this PR. This suggests a native/runtime crash, but a retry is needed to establish whether it is intermittent. My integration cannot re-run the failed job (HTTP 403). Could a maintainer re-run that job? Could you also confirm whether a code-owner review or any specific change is still needed before merge? I can address a focused request promptly. Thank you. Comment written by Codex. |
chore: sync view-specific-eval with upstream main
|
Hi maintainers, could someone re-run the single failed Windows installed-package job in CI run 37183366659 and review this PR? The run is still on attempt 1 at current head Comment written by Codex. |
|
You have reached your Codex usage limits for security reviews. Please try again later. |
mldangelo
left a comment
There was a problem hiding this comment.
All 67 checks pass on the refreshed head. Reviewed the ID-validation and URL-encoding changes across CLI, server, and browser routes. Real CLI checks cover normal IDs plus slashes, query/hash characters, Unicode, backslashes and literal percent characters, with rejected ambiguous IDs and verified export fallbacks. The built browser also loaded these evaluations, persisted manual ratings/name/author edits, opened result details and an embedded red-team report, and preserved the encoded evaluation ID through the report log link and copy workflow. Local validation includes 36,658 backend tests (10 skipped), 5,970 UI tests, current-main integration tests, TypeScript, architecture, Knip, style, and core/app/docs builds.
…pr-10336 # Conflicts: # src/app/src/hooks/useEvalOperations.ts # src/app/src/pages/redteam/report/components/Report.test.tsx
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7c3f613e29
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return; | ||
| } | ||
|
|
||
| await startServer(cmdObj.port, browserBehavior, `/eval/${encodeURIComponent(cmdObj.id)}`); |
There was a problem hiding this comment.
Serve direct eval URLs as HTML for script-suffixed IDs
When a stored ID ends in .js, .mjs, or .cjs—for example, an imported run.js—opening this URL reaches setJavaScriptMimeType in src/server/server.ts:72-75, which sets Content-Type: application/javascript. The SPA fallback at lines 365-371 then sends index.html without overriding that header, so the browser does not render the viewer, even though the eval can be selected through client-side navigation. Use the supported query-parameter route for the initial URL, or ensure the HTML fallback resets the MIME type.
Useful? React with 👍 / 👎.
Adds
promptfoo view --id <evalId>to open a stored eval directly. Encodes the ID through viewer navigation and downstream table, rating, rename, copy, author, download, report, trace, and sharing requests so reserved characters do not select a different eval. Existing behavior is preserved when--idis omitted.Empty IDs, exact dot segments, and literal hexadecimal percent escapes are rejected before server startup because the current path router cannot carry them unambiguously. The viewer guide documents this limitation and the verified
promptfoo export evalfallback.Validated against current main with 36,658 backend tests (10 existing skips), 5,970 Web UI tests, types, architecture, Knip, style, core/app/docs builds, and actual built-CLI runs covering five accepted ID forms, six rejected forms, and three export fallbacks. In the built browser, verified reserved-character, Unicode, backslash, and literal-percent IDs; persisted manual ratings, name and author edits; opened output details and an embedded redteam report; followed report logs with the plugin filter; and copied the selected eval. A final clean main integration passed the affected command/server and assertion tests and type check.