Skip to content

fix: track new Gemini interaction id on follow-up - #131

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-4012
Draft

fix: track new Gemini interaction id on follow-up#131
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-4012

Conversation

@cursor

@cursor cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown

Bug and impact

Gemini follow-ups create a new Interactions API id (previous_interaction_id chains history). We discarded that id and kept polling/storing the old completed interaction, so follow-ups appeared to snap back to completed and their progress/output were untrackable.

Root cause

realGeminiPort.sendFollowup ignored the POST /interactions response id. CLI + web follow-up paths never re-keyed persisted session state.

Fix

  • Return the new interaction id from the Gemini port/adapter
  • Re-key CLI StateStore and Supabase session rows when the vendor mints a new id
  • Return sessionId from the follow-up API and point the drawer at the new id

Validation

  • npm test (root + web): all passing, including new rekey / Gemini follow-up coverage
Open in Web View Automation 

Gemini's Interactions API mints a new interaction id for each follow-up.
Discarding that id left status/output polling stuck on the completed prior
turn. Propagate and re-key the session id in CLI state and the web store.

Co-authored-by: Parvez Kose <koseparvez@gmail.com>
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
polyagent Ready Ready Preview Aug 12, 2026 11:25am

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