Skip to content

Customization migration hint missing on first request for all Agent Host harnesses #334953

Description

Problem

A fresh Claude chat does not show a customization migration hint on its first request. Sending a second message in the same chat immediately shows the correct hint.

Reproduction

  1. Enable chat.customizations.migrationHint and the file migration categories.
  2. Open a fresh Claude-backed chat in a workspace with migratable customizations.
  3. Send hello.
  4. Observe no migration hint.
  5. Send a second hello in the same session.
  6. Observe the correct hint: Found 8 workspace and 1 user customizations that are present but not used by Claude and could be migrated.

Cause

The workbench calculates the migration hint before sending the first request. At that time, the newly-created Claude chat does not yet have a registered chat backing:

  • AgentService.createSession() asks ClaudeAgent.getChatCustomizations() for the initial snapshot.
  • ClaudeAgent.getChatCustomizations() calls _findChatByUri() and returns [] when there is no backing.
  • The backing and live ClaudeAgentSession are registered only as the first request resolves/materializes.
  • That first request consequently publishes the customization snapshot too late for its own hint, but early enough for the following request.

Requested change

Make Claude provide its initial customization snapshot, including migration destinations, before the workbench computes the first request’s migration hint. The solution should establish or otherwise resolve the default chat backing during session creation without requiring an SDK request/materialization side effect.

The same pre-request snapshot should be used by getChatCustomizations() for a new provisional session, so customizations and migration source folders are available on the first user message.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostIssues for the agent-host implementation (not the protocol)chat-customizationsInstruction, agent, skill, and prompt files related issuesinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions