Dock the desktop app's terminal right by default and fit its collapsed strip

AI Assisted
This commit is contained in:
jparkerweb committed 2026-10-25 12:51:01 -07:00
1 parent efc96e91c2
commit b73a4cebe7
6 files changed
+93 -2

No files matched your search

+8 -1
View File
@@ -2,7 +2,7 @@
// agent's terminal panel docked at the bottom with a drag handle.
import { mountTerminal } from './terminal.js';
import { barNextSteps, folderName, windowTitleFor } from './meter.js';
import { barNextSteps, defaultRightFraction, folderName, windowTitleFor } from './meter.js';
const { invoke, Channel } = window.__TAURI__.core;
@@ -924,6 +924,13 @@ async function main() {
paneDock = state.termPanel.dock === 'right' ? 'right' : 'bottom';
paneFraction = state.termPanel.fraction;
paneCollapsed = Boolean(state.termPanel.collapsed);
} else {
// Nothing saved yet: start docked right, wide enough to keep the
// console's own side-by-side panels from stacking, where the window
// allows it.
paneDock = 'right';
paneFraction = defaultRightFraction(window.innerWidth, { minFraction: MIN_PANE, maxFraction: MAX_PANE });
savePaneSettings();
}
applyPaneLayout();
await loadAgentAvailability();