ccmanager 0.1.2 → 0.1.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.
|
@@ -39,6 +39,15 @@ const Session = ({ session, sessionManager, onReturnToMenu, }) => {
|
|
|
39
39
|
sessionManager.on('sessionRestore', handleSessionRestore);
|
|
40
40
|
// Mark session as active (this will trigger the restore event)
|
|
41
41
|
sessionManager.setSessionActive(session.worktreePath, true);
|
|
42
|
+
// Immediately resize the PTY and terminal to current dimensions
|
|
43
|
+
// This fixes rendering issues when terminal width changed while in menu
|
|
44
|
+
// https://github.com/kbwo/ccmanager/issues/2
|
|
45
|
+
const currentCols = process.stdout.columns || 80;
|
|
46
|
+
const currentRows = process.stdout.rows || 24;
|
|
47
|
+
session.process.resize(currentCols, currentRows);
|
|
48
|
+
if (session.terminal) {
|
|
49
|
+
session.terminal.resize(currentCols, currentRows);
|
|
50
|
+
}
|
|
42
51
|
// Listen for session data events
|
|
43
52
|
const handleSessionData = (activeSession, data) => {
|
|
44
53
|
// Only handle data for our session
|