ccmanager 1.4.4 → 1.4.5
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.
|
@@ -73,20 +73,10 @@ const Session = ({ session, sessionManager, onReturnToMenu, }) => {
|
|
|
73
73
|
const handleResize = () => {
|
|
74
74
|
const cols = process.stdout.columns || 80;
|
|
75
75
|
const rows = process.stdout.rows || 24;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
try {
|
|
81
|
-
session.terminal.resize(cols, rows);
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
// Suppress xterm.js parsing errors
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
catch {
|
|
89
|
-
// Suppress PTY resize errors
|
|
76
|
+
session.process.resize(cols, rows);
|
|
77
|
+
// Also resize the virtual terminal
|
|
78
|
+
if (session.terminal) {
|
|
79
|
+
session.terminal.resize(cols, rows);
|
|
90
80
|
}
|
|
91
81
|
};
|
|
92
82
|
stdout.on('resize', handleResize);
|
|
@@ -55,6 +55,7 @@ export class SessionManager extends EventEmitter {
|
|
|
55
55
|
cols: process.stdout.columns || 80,
|
|
56
56
|
rows: process.stdout.rows || 24,
|
|
57
57
|
allowProposedApi: true,
|
|
58
|
+
logLevel: 'off',
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
async createSessionInternal(worktreePath, ptyProcess, commandConfig, options = {}) {
|
|
@@ -109,13 +110,8 @@ export class SessionManager extends EventEmitter {
|
|
|
109
110
|
setupDataHandler(session) {
|
|
110
111
|
// This handler always runs for all data
|
|
111
112
|
session.process.onData((data) => {
|
|
112
|
-
// Write data to virtual terminal
|
|
113
|
-
|
|
114
|
-
session.terminal.write(data);
|
|
115
|
-
}
|
|
116
|
-
catch {
|
|
117
|
-
// Suppress xterm.js parsing errors
|
|
118
|
-
}
|
|
113
|
+
// Write data to virtual terminal
|
|
114
|
+
session.terminal.write(data);
|
|
119
115
|
// Store in output history as Buffer
|
|
120
116
|
const buffer = Buffer.from(data, 'utf8');
|
|
121
117
|
session.outputHistory.push(buffer);
|