Skip to content

agentHost: Download Claude SDK when restoring history - #334661

Merged
TylerLeonhardt merged 1 commit into
tyleonha/agent-sdk-download-offerfrom
tyleonha/agent-sdk-history-download
Sep 4, 2026
Merged

agentHost: Download Claude SDK when restoring history#334661
TylerLeonhardt merged 1 commit into
tyleonha/agent-sdk-download-offerfrom
tyleonha/agent-sdk-history-download

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
Member

Summary

  • download a missing Claude SDK when restoring an existing chat
  • keep passive metadata reads and background chat discovery download-free
  • hydrate conversation history immediately after the SDK becomes available

Stacked on #334316.

Validation

  • npm run transpile-client
  • npm run typecheck-client
  • ESLint on the three changed files
  • full claudeAgent.test.ts: 288 passing
  • restore activation regressions in agentService.test.ts: 10 passing

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review September 4, 2026 23:47
@TylerLeonhardt
TylerLeonhardt merged commit 7f82c18 into tyleonha/agent-sdk-download-offer Sep 4, 2026
6 of 7 checks passed
@TylerLeonhardt
TylerLeonhardt deleted the tyleonha/agent-sdk-history-download branch September 4, 2026 23:47
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 4, 2026
TylerLeonhardt added a commit that referenced this pull request Sep 5, 2026
* agentHost: Offer SDK download independent of sign-in

Check for a missing SDK before account, entitlement, and signed-out experiment gates so every user can consent to the required download. Keep missing-account guidance behind the existing signed-out checks and cover both sides of the decision boundary.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: Treat first use as SDK download consent

Publish lazy SDK download lifecycle through the setup channel so first use dismisses the download offer and refreshes setup after completion. Persist the same standing consent as the Download action and bound failed retries to one attempt per window.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: own SDK auto-download preference

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: defer SDK downloads until use

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: persist SDK download consent

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: serialize SDK setup operations

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: coalesce SDK download requests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: provide SDK downloader to Claude integration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: Repair Codex prewarm test downloader

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: Download Claude SDK when restoring history (#334661)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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