feat(ai-ide, getting-started): guide the AI setup with a walkthrough - #17969
Draft
ndoschek wants to merge 2 commits into
Draft
feat(ai-ide, getting-started): guide the AI setup with a walkthrough#17969ndoschek wants to merge 2 commits into
ndoschek wants to merge 2 commits into
Conversation
`WalkthroughService` built its walkthroughs exclusively from the `contributes.walkthroughs` section of deployed plugins, so a build-time Theia extension had no way to offer one - even though everything around it (cards, progress, completion events, `walkthrough.open`) is source agnostic. Add the `WalkthroughProvider` contribution point as a second, equal source. Both sources are collected before anything is pruned, so neither drops the other's walkthroughs, and `Walkthrough.pluginId` becomes optional for the walkthroughs that come from an extension rather than a plugin. To give them the room that suggests, the welcome page moves its sections into a column of their own and lists up to five walkthroughs next to them.
The chat welcome message taught the AI features, gated the setup and picked a default agent all at once, while the welcome page carried a second, hard-coded AI banner in a package that knows nothing about AI. Guidance therefore only appeared once a user was already stuck in the chat, and nothing tracked what was already done. Contribute "Get started with AI" instead, which walks from disabled AI features to a first answer in the chat and keeps its progress on the welcome page. Its steps complete on context keys describing what the user achieved rather than on the settings changing, so a user who configured everything earlier finds them already ticked. The opening step carries what the welcome page used to announce in its AI banner, which is removed along with the news section. The chat welcome keeps only the states it has to show in place - no model, AI disabled, workspace not trusted - each linking into the walkthrough.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Moves the Theia AI onboarding out of the chat welcome message into a walkthrough on the welcome page, and opens the walkthrough mechanism to Theia extensions on the way.
@theia/getting-started:WalkthroughServicebuilt its walkthroughs exclusively from thecontributes.walkthroughssection of deployed plugins, so a build-time Theia extension had no way to offer one, even though everything around it (cards, progress, completion events,walkthrough.open) is source agnostic.WalkthroughProvidercontribution point as a second, equal sourceWalkthrough.pluginIdbecomes optional, for walkthroughs that come from an extension rather than a plugin@theia/ai-ide: the chat welcome message taught the AI features, gated the setup and picked a default agent all at once, while the welcome page carried a second, hard-coded AI banner in a package that knows nothing about AI. Guidance therefore only appeared once a user was already stuck in the chat, and nothing tracked what was already done.ai.hasReadyLanguageModel,ai.chat.hasRequest,ai.chat.hasDefaultAgent,ai.chat.toolConfirmationConfigured) rather than on settings changing, so a user who configured everything earlier finds them already tickedai.openGettingStartedWalkthrough("Get Started with AI")Contributes to #16730
How to test
With a fresh profile, or after running
Help: Reset Walkthrough Progress:Help: Open Walkthrough.contributes.walkthroughsstill shows up, and installing it does not remove the AI walkthrough.Follow-ups
Breaking changes
Attribution
Review checklist
nlsservice (for details, please see the Internationalization/Localization section in the Coding Guidelines)Reminder for reviewers