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
{{ message }}
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
Refactor Walkthrough communication to use consolidated Bus methods
- Add sendTextToActiveTerminal method to Bus for plain text messages
- Replace walkthrough comment reply with Bus.sendToActiveTerminal()
- Replace walkthrough action messages with Bus.sendTextToActiveTerminal()
- Remove duplicate sendToActiveShell method (~70 lines of duplicate code)
- Fix syntax error with extra closing brace
This completes the consolidation of Ask Socratic Shell and Walkthrough
communication into unified Bus methods, eliminating all duplicate
terminal finding and communication logic.
Co-authored-by: Claude <[email protected]>
// Find active terminal using same logic as sendToActiveTerminal
151
+
constterminals=vscode.window.terminals;
152
+
if(terminals.length===0){
153
+
vscode.window.showWarningMessage('No terminals found. Please open a terminal with an active AI assistant.');
154
+
return;
155
+
}
156
+
157
+
constactiveTerminals=this.getActiveTerminals();
158
+
if(activeTerminals.size===0){
159
+
vscode.window.showWarningMessage('No terminals with active MCP servers found. Please ensure you have a terminal with an active AI assistant (like Q chat or Claude CLI) running.');
this.bus.outputChannel.appendLine(`Active MCP server terminals: [${Array.from(activeTerminals).join(', ')}]`);
685
-
686
-
if(activeTerminals.size===0){
687
-
vscode.window.showWarningMessage('No terminals with active MCP servers found. Please ensure you have a terminal with an active AI assistant (like Q chat or Claude CLI) running.');
688
-
return;
689
-
}
690
-
691
-
// Filter terminals to only those with active MCP servers
0 commit comments