Skip to content

fix(app): reject malformed QR pick requests with a safe 400 - #113

Open
rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/pick-input
Open

rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/pick-input

Conversation

@rudycelekli

Copy link
Copy Markdown

Malformed JSON, null bodies and object-valued session IDs currently crash the QR endpoint or create unreachable sessions. Validate the JSON envelope and bounded nonempty string fields before writing the store.

Validation: the added regression fails on upstream 9c982df1a16b734a49d8dd9d1c29b0e4b1b1805b and passes with this change. The complete frontend Vitest suite and TypeScript check pass locally on Node 24.19.0.

Prepared with AI assistance and independently reviewed by another agent before submission. Provider calls are mocked; this does not establish live model-provider behavior.

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