Skip to content

fix: load Claude session transcript from events API - #137

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

fix: load Claude session transcript from events API#137
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-008d

Conversation

@cursor

@cursor cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bug and impact

Claude sessions showed an empty conversation in the web drawer (and empty getOutput / missing status summaries) after the initial handshake. Follow-up agent replies never appeared even when the Managed Agents session had messages.

Root cause

realClaudePort.getStatus only returned { status } from sessions.retrieve and never populated summary. ClaudeAdapter.getOutput built messages solely from that summary, so the transcript was always [] against the real port.

Fix

  • Fetch the latest agent.message via sessions.events.list for status summaries
  • Add listMessages on the Claude port and wire ClaudeAdapter.getOutput to the chronological user/agent transcript
  • Keep status usable if the events endpoint fails

Validation

  • npx vitest run test/claude.test.ts test/claude-port.test.ts — pass
  • Full root npm test (135 tests) — pass
  • Web npm test — pass
  • Synced web/_core from tsc output
Open in Web View Automation 

realClaudePort.getStatus never returned summary, so ClaudeAdapter.getOutput
always produced an empty conversation after the handshake. Fetch agent/user
messages via sessions.events.list so status summaries and the drawer show
real replies.

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

vercel Bot commented Aug 16, 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 16, 2026 11:05am

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