ccmanager 0.1.7 → 0.1.8
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.
- package/dist/components/Session.js +10 -3
- package/package.json +1 -1
|
@@ -43,9 +43,16 @@ const Session = ({ session, sessionManager, onReturnToMenu, }) => {
|
|
|
43
43
|
// https://github.com/kbwo/ccmanager/issues/2
|
|
44
44
|
const currentCols = process.stdout.columns || 80;
|
|
45
45
|
const currentRows = process.stdout.rows || 24;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
// Do not delete try-catch
|
|
47
|
+
// Prevent ccmanager from exiting when claude process has already exited
|
|
48
|
+
try {
|
|
49
|
+
session.process.resize(currentCols, currentRows);
|
|
50
|
+
if (session.terminal) {
|
|
51
|
+
session.terminal.resize(currentCols, currentRows);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
/* empty */
|
|
49
56
|
}
|
|
50
57
|
// Listen for session data events
|
|
51
58
|
const handleSessionData = (activeSession, data) => {
|