VS Code plugin hooks can't invoke bundled scripts
17 posts in the last 60 days, all from GitHub.
“Does this issue occur when all extensions are disabled?: Not tested VS Code Version: 1.148.0 OS Version: Windows, build 26300, 64 bit The copilot has loaded too many useless skills! A disabled configuration should be provided. The current disable function is ineffective.”
“Description Installing a agent plugin prompts the screenshotted error message when Copilot is selected as the agent harness. This works fine with Local selected. Issue Details Item|Value | Issue Category|Bug Target|Visual Studio Code Repository|Microsoft/vscode VS Code…”
“Does this issue occur when all extensions are disabled?: Yes (reproduces in core — promptValidator.ts is part of the workbench, not an extension) VS Code Version: 1.144.0 (Commit 2c33b50b16c472efe58357d1d2a8a5414bc23fbf) OS Version: Windows NT x64 10.0.26200 Steps to Reproduce…”
Users are encountering errors when attempting to use custom plugins with VS Code, specifically related to the inability of plugin hooks to execute bundled scripts. This issue arises after publishing plugins via the marketplace and involves problems with agent functionality and script execution.
SOURCES (27)
“Does this issue occur when all extensions are disabled?: Not tested VS Code Version: 1.148.0 OS Version: Windows, build 26300, 64 bit The copilot has loaded too many useless skills! A disabled configuration should be provided. The current disable function is ineffective. <img width="1118" height="314"…”
“Description Installing a agent plugin prompts the screenshotted error message when Copilot is selected as the agent harness. This works fine with Local selected. Issue Details Item|Value | Issue Category|Bug Target|Visual Studio Code Repository|Microsoft/vscode VS Code Version|Code 1.146.0 (69047191fc427f2f92828279aae1d90d8eeda7ab, 2026 11 10T19:27:51Z) OS Version|Windows NT x64 10.0.26200 Additional Issue Data issue data.md Attachments screenshot 1.png”
“Copilot Chat Extension Version: Not applicable to the source level finding below. VS Code Version: main at d9efd1a2ebf OS Version: Source inspected on macOS; the affected path construction is cross platform. Feature (e.g. agent/edit/ask mode): Personal customizations and Copilot Agent Host hook discovery Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Not model specific Logs: None; source inspection, not an end to end reproduction. VS Code already resolves COPILOT HOME for the Copilot harness,”
“VS Code Version: 1.146.0 OS Version: Windows 11 + Remote WSL (Ubuntu, Linux x64) Summary When using an Agent Plugins 1.0.0 package that places portable components at the plugin root ( skills/ /SKILL.md , mcp.json ) and Copilot specific components under the com.github.copilot/ client extension directory ( com.github.copilot/rules/ , com.github.copilot/agents/ , com.github.copilot/hooks/hooks.json — the same layout produced by VS Code's own Create Plugin action): With the Local harness selected in”
“When a VS Code extension contributes an agent plugin ( chatPlugins ) and a chat runs on a remote agent host, the window sends the plugin to the host only if VS Code finds hooks, commands, skills, agents, instructions or MCP servers in it. A plugin whose only content is a Copilot extension, for example one that declares a canvas in extensions/<name /extension.mjs , is never sent. Its canvas is missing from remote agent host sessions, while the same plugin works when installed on the host directly”
“Follow up to https://github.com/microsoft/vscode/issues/318422. https://github.com/microsoft/vscode/pull/344955 fixed this for the Copilot (Agent Host) harness and the Agents window : same named agents get a source caption ( Extension: … , Plugin: … ). In the Local harness, the agent picker still shows identical rows. Found while verifying the fix on VS Code Insiders 1.145.0 insider (commit 67710841ad061a9e253214f87bf5415a185ab2ff ), Ubuntu 24.04 arm64. Repro 1. Install two extensions that each”
“Does this issue occur when all extensions are disabled?: Yes (reproduces in core — promptValidator.ts is part of the workbench, not an extension) VS Code Version: 1.144.0 (Commit 2c33b50b16c472efe58357d1d2a8a5414bc23fbf) OS Version: Windows NT x64 10.0.26200 Steps to Reproduce: 1. Create an agent file ( .agent.md ) with frontmatter containing both tools and agents , where tools lists the individual tool agent/runSubagent (not the bare alias agent ), e.g.: 2. Open the file and observe the Problem”
“Custom agent cannot invoke file editing tools despite edit declaration; recurring CopilotCLIAgents cancellations Environment OS: Windows 11, x64 VS Code: 1.142.0 GitHub Copilot Chat: 0.70.0 Workspace: Dedicated, isolated synthetic test workspace Workspace Trust: Trusted Chat mode: Interactive Permissions: Manual permissions Agent: Workspace defined custom agent under .github/agents/ Execution harness: Not conclusively identified Problem description A workspace defined custom agent can read files”
“VS Code Version: 1.145.0 insider OS Version: Windows 11 Enterprise 10.0.26300 Background Extensions may contribute custom agents with hooks that run scripts bundled with the extension. Hooks can support many extension scenarios, such as validating changes, collecting diagnostics, or coordinating workflows. Keeping hook scripts with the extension lets authors maintain and update them alongside the rest of the extension, without requiring users to copy scripts into their workspace. The extension c”
“Agents Window: manifest declared nested plugin skills appear in plugin details but not in Skills Does this issue occur when all extensions are disabled?: Not tested. VS Code Version: 1.145.0 insider, commit 206844b5537c1b7582f6e81b41e1c5402c7e7fbc , x64 OS Version: Windows x64, build 26300 Surface: Agents Window, Copilot CLI harness, Customizations Plugin: mattpocock skills version 1.3.2 from https://github.com/mattpocock/skills Steps to Reproduce: 1. Install mattpocock skills through Copilot CL”
“Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.143.1 OS Version: Linux x64 Summary Since 342430 (1356222d34, milestone 1.143.0), the vscode://chat plugin/install and vscode://chat plugin/add marketplace links are always handled through a Copilot agent host session ( PluginUrlHandler.resolveSession() only considers AgentHostCopilot ). Before that change, /install installed the plugin with VS Code's own installer ( installPluginFromSource(source, { plugin }) ) and”
“VS Code: 1.143.1 (e646868227c3e3a9e3f24277c8c7220be42c0be7), also 1.144.0 insider (a57ca762e62475ed8fc64b5aec67485c06766141) Copilot CLI: 1.0.100 OS: macOS client; seen in local windows and in a Linux Dev Container Steps to reproduce 1. A repository with .github/copilot/settings.json : 2. Install the plugin with the Copilot CLI: copilot plugin marketplace add <owner /<repo , then copilot plugin install p@m . 3. Open the repository in VS Code and send a chat message. Actual: the notification This”
“OS Version: Windows 11 26H2 26300.9711 Feature (e.g. agent/edit/ask mode): Agent via Local Harness Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT 6.1 Sol Version: 1.142.0 (user setup) Commit: 6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1 Date: 2026 10 15T03:02:17Z Electron: 43.7.7 ElectronBuildId: 15553055 Chromium: 150.0.7871.250 Node.js: 24.21.0 V8: 15.0.245.31 electron.0 @github/copilot: 1.0.95 0.unstable.r38345923974.g3754b70 @github/copilot sdk: 1.0.19.38345923974.g3754b70 OS: Windows NT”
“Copilot Chat Extension Version: built in @github/copilot 1.0.95 0, @github/copilot sdk 1.0.19 VS Code Version: 1.142.0 (commit 6d62b1d) OS Version: Windows 11 Feature: Copilot CLI session (agent host), Explore subagent Selected model: Claude Sonnet 5.5 as the main model; chat.exploreAgent.defaultModel set to Claude Haiku 4.5 Logs: none. The setting is ignored with no warning. Steps to Reproduce 1. Set chat.exploreAgent.defaultModel to a small model, e.g. Claude Haiku 4.5. 2. Start a Copilot CLI”
“Reported on VS Code 1.143.0 insider, commit 4c6cba15 , using the Copilot / Agent Host harness. Steps to reproduce 1. In a trusted workspace with hooks enabled, define a custom .agent.md with a SessionStart marker hook and a PreToolUse hook that denies shell execution. 2. Select that agent in a new Copilot / Agent Host session. 3. Ask it to run a harmless shell command covered by the deny hook. 4. Repeat with the selected agent supplied by a file based plugin. Expected: The marker hook runs and t”
“Copilot Chat Extension Version: Built in Agent Host / Copilot SDK provider. Exact runtime version was not established from the retained logs. VS Code Version: Insiders 1.142.0 insider , commit ff00e788322523ee1e9e8ee2c9bb4b89af93a3c2 , build date 2026 10 12T02:35:46Z . OS Version: macOS. Feature (e.g. agent/edit/ask mode): Agents Window, Copilot Connectors surfaced as MCP servers, Sign In. Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT 6.1 Sol; the failure occurs during connector authenti”
“Type: <b Bug</b Environment VS Code: Remote SSH session to Ubuntu, UI rendered on Windows local machine GitHub Copilot Chat extension Custom models configured via chatLanguageModels.json (deepseek v4 pro, deepseek flash) Steps to Reproduce 1. Open VS Code on Windows, connect to an Ubuntu machine via Remote SSH. 2. Edit chatLanguageModels.json to add custom customendpoint models (deepseek v4 pro and deepseek flash), with valid endpoint, apiKey and model configuration. 3. Save the JSON file, resta”
“Moving from local agent host Copilot, we've defaulted into going forward with using Copilot SDK's built in shell tool. Meaning chat.agentHost.customTerminalTool.enabled false. What this means is that we went from chat terminal (that agent uses) using pty backed vscode owned terminal to non interactive and non pty direct child process spawn to run commands. Hence the behavior now is that when commands are run from chat agent, it does not respect chat.tools.terminal.terminalProfile.windows or othe”
“Copilot Chat Extension Version: 0.62.2026081804 VS Code Version: 1.134.0 insider Commit: d1d996042bdf0cfccbe36f37c2052c314ed159d5 OS Version: macOS 26.6.1 Feature: Agents Window / local Copilot Agent Host sessions Selected model: Not model specific Description After updating VS Code Insiders, I lost access to previously existing local Agent Host sessions in the Agents Window. I will refer to the missing sessions as Session A and Session B . Before the update, both sessions appeared in the Sessio”
“Copilot Chat Extension Version: N/A (local Agent Host / Agents window integration) VS Code Version: Code Insiders build from 2026 07 24; exact version was not included in the exported bundle OS Version: macOS Feature (e.g. agent/edit/ask mode): Agents window, local Agent Host session, pull request detection Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT 5.6 Sol (not believed to affect the issue) Logs: Reproduced in an Export Agent Host Debug Logs bundle. The key error is AgentHostOctoKit”
“Copilot Chat Extension Version: Unknown / observed across versions VS Code Version: Unknown OS Version: Unknown Feature (e.g. agent/edit/ask mode): Copilot Agent Host sessions in VS Code; Copilot CLI sessions in terminal Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude (observed) and Copilot models Logs: Not attached per request (do not upload logs or .zip files). Relevant logs exist but are intentionally omitted. Screenshots from the Slack thread may be attached instead. Steps to Reprod”
“Copilot Chat Extension Version: Built in VS Code Version: 1.131.0 main at 3d97feaadbd OS Version: macOS Feature (e.g. agent/edit/ask mode): Agents window, local Agent Host, Copilot provider Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Model independent Logs: Agent Host debug export inspected locally; relevant sanitized timeline and AHP facts are below Steps to Reproduce: 1. Configure an OAuth protected remote MCP server that uses dynamic client registration, such as Notion at https://mcp.no”
“Error Message Stack Trace at qv. fn (../src/extension/inlineEdits/node/nextEditProvider.ts:148:9) at qv.get (./src/vs/base/common/cache.ts:117:21) at O2. rebaseAndCacheStreamedEdit (../src/extension/inlineEdits/node/nextEditProvider.ts:776:37) at M (../src/extension/inlineEdits/node/nextEditProvider.ts:945:23) at processEdit (../src/extension/inlineEdits/node/nextEditProvider.t”
“Testing https://github.com/microsoft/vscode/issues/323371 Create a new chat in the agents window Click on Claude harness or Codex harness, notice it isn't selected 🐛 https://github.com/user attachments/assets/1b6622c3 8e9c 4140 8209 94e9175c274b”
“Copilot Chat Extension Version: 0.42.3 VS Code Version: 1.114.0 OS Version: Windows 11 23H2 22631.6199 Feature (e.g. agent/edit/ask mode): Agent via Copilot Plugin Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Any Steps to Reproduce: 1. Create a basic plugin following the official documentation. This plugin must include: 1.1. Any custom agent, just to trigger the hooks. 1.2. /hooks/ .ts scripts. Can also be any language, even powershell. 1.3. /hooks.json 2. Publish plugin via marketplace. 3.”
“Install copilot CLI if you haven't already Make sure hooks are enabled in the settings "chat.useHooks": true Create hooks.json and save it to global hooks location at /.copilot/hooks. You can use hooks from (or use it as starting point and customize) https://github.com/pwang347/hooks testing Create new chat session and use 'Copilot CLI' as target Invoke a tool (for e.g. use this prompt: count .json files in this workspace) Bring up Agent Debug panel Click on Hook: postTool item is logs view, it”
“Copilot Chat Extension Version: 0.37.9 VS Code Version: 1.109.5 OS Version: Windows 11 Pro (latest) Feature (e.g. agent/edit/ask mode): agent Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT5.4 Logs: GitHub Copilot Chat.log Steps to Reproduce: 1. upload 10 images 2. send the prompt <img width="1065" height="1954" alt="Image" src="https://github.com/user attachments/assets/7fc42d4c b994 4b5d b59c ba3c524537ae" / <img width="1046" height="2050" alt="Image" src="https://github.com/user attachm”
