fix: ensure terminal gains focus upon opening in the console tab (#6951)

This commit is contained in:
Abhishek S Lal
2026-01-28 20:38:20 +05:30
committed by GitHub
parent 1fcf9ecc32
commit 6e34fbd0ce

View File

@@ -174,6 +174,7 @@ const openTerminalIntoContainer = async (container, sessionId) => {
await new Promise((resolve) => setTimeout(resolve, 50));
try {
fitAddon.fit();
terminal.focus();
const { cols, rows } = terminal;
if (cols && rows && window.ipcRenderer) {
window.ipcRenderer.send('terminal:resize', sessionId, { cols, rows });