Skip to content

fix(app): enforce QR session expiry when reading the store - #115

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

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

Conversation

@rudycelekli

Copy link
Copy Markdown

Expiry depends exclusively on scheduled timers. After the process/event loop is suspended, a request can read a stale selected prompt before its delayed timer runs. Store an absolute deadline and enforce it on reads.

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