Skip to content

Commit 35262a6

Browse files
committed
fix: ensure frontend terminal visibility and improve command detection
- Modified Console component to show Frontend terminal when other terminals have content - Added debug logging to track command routing (Python/Node.js detection) - Pnpm commands should now be properly detected as Node.js commands and route to frontend terminal - Frontend terminal will be visible alongside other terminals when System Messages is expanded
1 parent 5cac23a commit 35262a6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/preview_panel/Console.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ export const Console = () => {
1212
const hasBackend = backendTerminalOutput.length > 0;
1313
const hasMain = appOutput.length > 0;
1414

15+
// Show all terminals if any terminal has content (to ensure Frontend is visible when Backend/System have content)
16+
const totalTerminals = hasFrontend + hasBackend + hasMain;
17+
const showAllTerminals = totalTerminals > 0;
18+
1519
// Count active terminals
16-
const activeTerminals = [hasMain && "main", hasFrontend && "frontend", hasBackend && "backend"].filter(Boolean);
20+
const activeTerminals = [
21+
(hasMain || showAllTerminals) && "main",
22+
(hasFrontend || showAllTerminals) && "frontend",
23+
(hasBackend || showAllTerminals) && "backend"
24+
].filter(Boolean);
1725
const terminalCount = activeTerminals.length;
1826

1927
// Terminal rendering component

src/ipc/processors/response_processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export async function processFullResponseActions(
398398
}
399399
}
400400

401-
logger.log(`Executing general terminal command: ${cleanCommand} in ${cwd} (routing to ${terminalType} terminal)`);
401+
logger.log(`Executing general terminal command: ${cleanCommand} in ${cwd} (routing to ${terminalType} terminal) - isPython: ${isPythonCommand}, isNode: ${isNodeCommand}`);
402402

403403
const result = await runShellCommand(`cd "${cwd}" && ${cleanCommand}`);
404404

0 commit comments

Comments
 (0)