Repository navigation
github: migrate cloud sandbox API operations to shared GitHub clients - #346903
Dmitriy Vasyura (dmitrivMS) merged 9 commits into
Conversation
Prepare the existing typed list path for cloud sandbox discovery. Normalize approved task continuation links and retain conservative server timing and polling hints across collected pages. Part of #345234. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
3 open issues
What changed in this PR
Adds conservative pagination metadata handling (earliest server date + max retry-after), introduces support for cursor-based continuation for task listing, and hardens next-link validation/mapping for Mission Control task pagination.
Changes:
- Aggregate
serverDateandretryAfterSecondsconservatively across collected pages and exposeretryAfterSecondsinPaginatedResponse. - Add
cursorto task list options and extend tests to cover cursor walking, empty pages, IPC propagation, and malformed continuations. - Add Mission Control–specific next-page parsing/mapping to safely handle
/agents/taskspagination links.
| File | Description |
|---|---|
| src/vs/platform/github/test/node/missionControlClient.test.ts | Expands pagination tests for conservative metadata, cursor continuation, and retry-after exposure. |
| src/vs/platform/github/test/common/githubChannel.test.ts | Adds IPC test ensuring conservative metadata and task payload retention across bounded lists. |
| src/vs/platform/github/common/missionControl/tasks.ts | Extends task list options with cursor continuation parameter. |
| src/vs/platform/github/common/missionControl/missionControlClient.ts | Aggregates server-date + retry-after across pages; exposes retry-after in paginated(). |
| src/vs/platform/github/common/missionControl/missionControl.ts | Updates PaginatedResponse contract to include conservative semantics + retry-after. |
| src/vs/platform/github/common/client/localMissionControlRequestProvider.ts | Adds specialized next-link parsing/mapping for Mission Control task pagination. |
Review effort: Lite
Validate mutually exclusive task page and cursor parameters before request dispatch, compare normalized pagination origins and paths, and retain parsed server timestamps during page collection. Co-authored-by: Copilot <[email protected]>
Route task and repository reads through retained typed account clients. Preserve bounded discovery and cached inventory on failed refreshes, reuse repository labels, and use shared transport scheduling and request telemetry. Part of #345234. Co-authored-by: Copilot <[email protected]>
Read targeted task metadata in batches of at most 50 IDs. Reconcile successful omissions as discoverability changes without per-ID recovery, retain failed chunks for retry, and keep detail reads on demand. Remove discovery-owned repository-enrichment scheduling. Part of #345234. Co-authored-by: Copilot <[email protected]>
Remove the remaining cloud sandbox API service limiter while preserving per-task coalescing, independent waiter cancellation, and account and lifetime checks. Let the shared GitHub queue own request admission and concurrency. Co-authored-by: Copilot <[email protected]>
Migrate environment, task mutation and creation, token sealing, and model operations to typed clients. Preserve account-scoped cleanup and sandbox HTTP errors, centralize response validation, and cover the shared transport and IPC contracts. Co-authored-by: Copilot <[email protected]>
Include Mission Control models in the account facade expectations and domain attribution coverage. Feed the cloud model picker fixture through the typed account client with a complete test profile while preserving its catalog and rendering. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Numbered pagination links can drop the original discovery filters, causing later pages to come from a different partition while being attributed to the original scope and potentially advancing its checkpoint.
6 open issues
Preserve filters when following pagination links · New Preserve parsing errors instead of reporting HTTP 200 failures · New Resolve authorization before registering the session resolution · New Deduplicate concurrent repository lookups during enrichment · New Return stale enrichment results for pass-level invalidation handling · New Keep consumer migration out of the pagination-preparation PR · New
3 resolved since last review
Review effort: Max
Preserve collection filters across pagination, retain malformed successful-read errors, authorize cold session resolution before sharing it, and deduplicate repository enrichment within each discovery pass. Keep generation invalidation at the inventory boundary and cover each regression. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because authentication races and shared-parser compatibility changes can abort authentication or block discovery of all sandbox sessions.
No open issues 🎉
6 resolved since last review
Preserve filters when following pagination links Return stale enrichment results for pass-level invalidation handling Deduplicate concurrent repository lookups during enrichment Resolve authorization before registering the session resolution Preserve parsing errors instead of reporting HTTP 200 failures Keep consumer migration out of the pagination-preparation PR
Review effort: Max



Part of #345234.
Related https://github.com/microsoft/vscode-internalbacklog/issues/9678
Shared client contracts
Retry-Afterpolling hints.missionControlModelscatalog client.Cloud sandbox migration