Skip to content

fix(agent): reject ambiguous duplicate todo identities - #125

Open
rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/agent-todo-unique-ids
Open

rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/agent-todo-unique-ids

Conversation

@rudycelekli

Copy link
Copy Markdown

manage_todos says IDs are unique but accepted duplicate supplied IDs. Two different tasks could share one identity, and missing-ID assignment could mutate arguments before discovering invalid input.

Validate supplied IDs before assigning any missing IDs or emitting a state-update command. Return an actionable error for duplicates; retain stable existing IDs and normal new-ID generation.

Validation: native regression tests failed on the pinned base (1 failures), then the complete agent suite passed (114 tests) after the fix. Command: python -m pytest -q -p no:cacheprovider, using the locked Python dependencies. Provider traffic is mocked; no live model or Wikimedia calls are part of these tests.

AI-assisted implementation and test review. This work has not been human-reviewed or published by this lane.

Combined integration checks pass: 249 Node tests, 157 Python tests, TypeScript, frontend lint (0 errors, 2 warnings), and the production workspace build. These combined results belong to the private integration branch; each PR also has its own focused regression and relevant suite results above. Live provider behavior is untested.

Independent AI review passed on this exact head. Nine isolated production-browser checks passed for the combined chat shell/key dialog and QR request flow; no page errors. No live provider calls were made.

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