Skip to content

fix(cli): reject duplicate Anthropic eval IDs before writing cases - #454

Open
karanb192 wants to merge 1 commit into
alibaba:mainfrom
karanb192:fix/reject-duplicate-import-ids
Open

karanb192 wants to merge 1 commit into
alibaba:mainfrom
karanb192:fix/reject-duplicate-import-ids

Conversation

@karanb192

Copy link
Copy Markdown
Contributor

Summary

Importing IDs 1, 2, 1 wrote the first case twice and printed Total: 3 cases imported. Both entries with ID 1 mapped to cases/case-1.yaml.

Check each selected ID in the converter shared by import and run --auto. Import reports the duplicate before writing output. In auto mode, duplicates outside the case filter do not block the selected cases.

Test plan

The CLI regression starts with an existing case file and verifies that a duplicate ID leaves its contents intact. A second test covers duplicates outside an auto-mode selection.

Local checks passed with make verify, go test -race ./..., and the 22 Codex plugin unit tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T14:44:06.603908Z 98be5f8 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant