Skip to content

feat(vsix): correlate chat participants, tools and MCP providers - #14978

Draft
akshad-exe wants to merge 33 commits into
morluto:mainfrom
akshad-exe:feat/vsix-ai-registrations
Draft

akshad-exe wants to merge 33 commits into
morluto:mainfrom
akshad-exe:feat/vsix-ai-registrations

Conversation

@akshad-exe

@akshad-exe akshad-exe commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Extends correlate_vsix_registrations to chat participants, language model tools and MCP server providers.

Refs #3687. Second part.

Depends on #14977. This branch contains its commits, so review and merge that first. Only this part.

Change and scope

  • Absence is reported only for complete coverage: skipped or unparsed sources, graphs without callee_fact_modules, or incompletely read declarations give undetermined. Menus are grouped by name.
  • The VSIX report keeps declared chatParticipants, languageModelTools and mcpServerDefinitionProviders (contributes.declarations).
  • contributions joins them with literal createChatParticipant, registerTool and registerMcpServerDefinitionProvider calls, with the same statuses as commands.
  • Not included: prompt handling and the servers a provider returns at run time.

Evidence

Published extensions from Open VSX, analyzed without execution:

Extension Commands registered / declared AI contributions
agent-kanban-vscode 0.6.1 10 / 10 chat participant registered
promptx-chat-participant 0.14.3 31 / 31 chat participant registered
shiny 1.5.1 9 / 9 chat participant registered
flowrelay 1.11.0 39 / 39 chat participant and MCP provider not_found

flowrelay is a miss: its source obtains vscode.chat and vscode.lm through helper functions and passes the IDs as constants, which literal matching does not follow.

Known limitations

  • Includes the limitations listed in feat(vsix): link declared extension commands to their registrations #14977.
  • A chat participant, language model tool or MCP provider registered through .call / .apply / .bind, a computed name, or a binding that may hold one of several members can show not_found instead of undetermined. That caution currently applies to commands only.
  • The extension results above were measured before the later review fixes.

Validation

  • check:fast, format:check, docs:check: passed
  • 140 selected test files, 4337 tests: passed (head 0166b2c1b); after the later branch-selection fix (058bc83e3), check:fast and targeted tests passed
  • Full suite: not run

Author readiness

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

akshad-exe and others added 4 commits November 28, 2026 11:42
Record vscode callee facts in the JavaScript semantic graph, keep every
declared command with its menus and keybindings, and add
correlate_vsix_commands to report registered, missing, undetermined and
undeclared commands from package and application Evidence.

Refs morluto#3687

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Keep declared AI contributions in the VSIX report and join them with literal
vscode chat and language model registrations.

Refs morluto#3687

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The latest change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The latest change appears safe to merge.

Summary

Extends correlate_vsix_registrations to chat participants, language model tools and MCP providers. The latest change stops unrelated AI calls from making command results uncertain.

  • VSIX reports keep every declared command and show related contribution IDs.
  • JavaScript analysis records which VS Code functions calls are rooted in.
  • A new report joins VSIX declarations with static registration calls.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[VSIX package Evidence] --> C[Correlate declarations and calls]
  B[JavaScript application Evidence] --> C
  C --> D[Commands and AI contributions]
  C --> E[Statuses, source positions and unknowns]
  C --> F[Retained summary]
Loading

Reviews (10) · Last reviewed commit: "fix(vsix): limit command uncertainty to ..." · Reviewed by Greptile

Comment thread src/vsix/VsixPackageParser.ts Resolved
akshad-exe and others added 4 commits November 28, 2026 12:57
…larations unknown

Reject value ambiguity as a vscode callee, record which callee facts a graph
carries, treat skipped sources as unanalyzed, report unmatched registrations
as undetermined when declarations are incomplete, retain each menu name once,
and count statuses in one pass.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
…ions

# Conflicts:
#	docs/guides/managed/vsix-package.md
#	src/domain/vsix/vsixRegistrationCorrelation.test.ts
#	src/domain/vsix/vsixRegistrationCorrelation.ts
A selection whose branches name one module through require no longer reports a
non-module alternative.

Refs morluto#3687

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T11:21:09.019631Z 69c81ae New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 058bc83e3d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69c81ae3ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@akshad-exe
akshad-exe marked this pull request as draft November 28, 2026 17:38
akshad-exe and others added 3 commits November 28, 2026 23:14
Source order does not establish whether a write to a vscode member ran before a call, so a written member now marks its calls as possibly replaced instead of dropping or keeping them by position. Menus and keybindings with unreadable rows are unknown.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
A registration built at run time may be any declared command, and a menu or keybinding field that is not text cannot be read.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Unresolved or possibly replaced registrations leave a contribution undetermined, unreadable declaration rows are unknown, computed writes mark a member as possibly replaced, and an oversized module callee is omitted with a resource-limit unknown.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
Comment thread src/vsix/VsixPackageParser.ts Resolved
akshad-exe and others added 5 commits November 28, 2026 23:55
A binding that may hold something other than vscode keeps its call as a possible identity instead of dropping it. Computed writes mark members as possibly replaced, member lookups walk each path once, and an oversized module callee is omitted with a resource-limit unknown.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
akshad-exe and others added 8 commits November 29, 2026 00:36
…te shortcuts

call, apply and bind leave unmatched commands undetermined, constructor expressions are not registrations, and menus and keybindings keep alt commands and platform overrides.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A5mgB1jLBG3CL4gxqa8xm8
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

security Security Review

This PR appears safe to merge from a security standpoint.

What was checked
  • The new correlate_vsix_registrations tool only joins two caller-selected Evidence records, validates both against strict schemas, and writes nothing, executes nothing, and touches no network.
  • The VSIX parser changes keep reading package.json inside the existing manifest byte and JSON-value budgets, so a hostile package cannot grow the report beyond those documented limits.
  • The JavaScript semantic additions are AST-only with explicit size accounting against the worker record ceiling, and TRACKED_ORIGINS caps growth from crafted inputs with many module origins.
  • The new code uses Map-based lookups and Object.hasOwn guards on the registration-kind table, so attacker-controlled strings from a manifest or source cannot reach built-in object keys.
  • No secrets, credentials, or session/auth handling are added or changed anywhere in the diff.

This branch has not been deployed

No deployments
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.

2 participants