You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.Error.WriteLine("[DEBUG] Connecting to Named Pipe (3s timeout)...");
24
30
awaitpipeClient.ConnectAsync(1000*3);// 3 second timeout
31
+
Console.Error.WriteLine("[DEBUG] Connected to Named Pipe successfully");
25
32
}
26
33
catch(TimeoutException)
27
34
{
35
+
Console.Error.WriteLine("[DEBUG] Named Pipe connection timeout");
28
36
return$"PowerShell 7 (pwsh) is running but PowerShell.MCP module is not imported.\r\n\r\nMANDATORY STEPS - DO NOT SKIP ANY:\r\n1. Explain the situation to the user\r\n2. Present exactly these two options:\r\n - Option 1: User imports PowerShell.MCP module manually in current console\r\n - Option 2: I will automatically start fresh console with PowerShell.MCP imported\r\n3. STOP and wait for explicit user response - DO NOT make any choice for the user\r\n4. ONLY if user explicitly chooses option 2, execute start_powershell_console\r\n5. If user chooses option 1, provide the command: Import-Module PowerShell.MCP\r\n6. DO NOT execute any PowerShell commands until user makes their choice\r\n\r\nCRITICAL: Never assume user preference or execute start_powershell_console without explicit user consent.";
0 commit comments