@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.
- package/package.json +1 -1
- package/renderer.js +9 -4
package/package.json
CHANGED
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\
|
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
|
273
|
-
|
274
|
-
|
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
|