Repository navigation
fix(acp-registry): session lists keep Load more for an empty next-page cursor - #48476
StiensWout wants to merge 3 commits into
Conversation
…rsor Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…e cursor ACP signals another page by the presence of nextCursor, but an empty string was treated as the end of the list. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Preserving empty next-page cursors keeps Load more available for ACP session lists. The change is limited to pagination signaling and retains existing request and cursor safeguards. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ACP agents mark another page of sessions by including
nextCursor, but when that cursor was an empty string the session list treated it as the last page. Session Management then hid Load more, and older native conversations could not be reached for import. The server now keeps an empty cursor, so Load more appears and fetches the next page.Related: #36358, #48340, #48338
Reproduction on main
Commit efbd62a7a7 (main). The list ends without Load more, leaving the older conversation inaccessible from Session Management. Expected: Load more appears and opens the page with the older conversation.
The cause is at
packages/provider-acp-registry/src/server/probe.ts:907. Ranpnpm scenarios:prove scripts/scenarios/acp-session-list-keeps-empty-cursor.e2e.ts --target webwith the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpected false to be truein the output.Evidence
Environment: The web app in Chromium on Linux x64, a fresh checkout on a boat.dev VM reset before each run.
Proven: the repro fails at the test commit cd3426f7fa and passes on the head e227785da8, both on main efbd62a7a7.
The list ends without Load more, leaving the older conversation inaccessible from Session Management.
Load more appears and opens the page with the older conversation.
Tests
pnpm exec vp run check:changed efbd62a7a700a29ad545f8334b2139407875dab3passed on head.Not in this change
Who did the work
Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol