@adiontaegerron/claude-multi-terminal 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/renderer.js +9 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adiontaegerron/claude-multi-terminal",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Multi-terminal editor for coordinating multiple Claude Code instances",
5
5
  "main": "main.js",
6
6
  "bin": {
package/renderer.js CHANGED
@@ -91,7 +91,7 @@ async function createTerminal() {
91
91
 
92
92
  // Auto-start Claude Code
93
93
  setTimeout(() => {
94
- ipcRenderer.invoke('terminal:write', terminalId, 'claude\n');
94
+ ipcRenderer.invoke('terminal:write', terminalId, 'claude\r');
95
95
  }, 1000);
96
96
 
97
97
  // Ensure terminal is ready and focused
@@ -269,9 +269,14 @@ function sendMessage() {
269
269
 
270
270
  // Send to selected terminals
271
271
  selectedTerminals.forEach(terminalId => {
272
- // Send both the plan mode instruction and message
273
- const messageToSend = `Please enter plan mode (press Shift+Tab twice)\n\n${fullMessage}`;
274
- ipcRenderer.invoke('terminal:write', terminalId, messageToSend + '\r\n');
272
+ // Send the plan mode instruction first with proper line endings
273
+ ipcRenderer.invoke('terminal:write', terminalId, 'Please enter plan mode (press Shift+Tab twice)\r');
274
+
275
+ // Small delay to ensure the first command is processed
276
+ setTimeout(() => {
277
+ // Send the actual message with carriage return to execute
278
+ ipcRenderer.invoke('terminal:write', terminalId, fullMessage + '\r');
279
+ }, 100);
275
280
  });
276
281
 
277
282
  // Clear input