ccmanager 3.6.6 → 3.6.7
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 +16 -22
- package/package.json +6 -6
|
@@ -52,30 +52,24 @@ const Session = ({ session, sessionManager, onReturnToMenu, }) => {
|
|
|
52
52
|
stdout.write('\x1b[?7l');
|
|
53
53
|
// Clear screen when entering session
|
|
54
54
|
stdout.write('\x1B[2J\x1B[H');
|
|
55
|
-
// Handle session restoration
|
|
55
|
+
// Handle session restoration by writing all buffered output at once.
|
|
56
|
+
// This is faster than chunk-by-chunk replay and preserves scrollback.
|
|
56
57
|
const handleSessionRestore = (restoredSession) => {
|
|
57
58
|
if (restoredSession.id === session.id) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
if (str.length > 0) {
|
|
76
|
-
stdout.write(str);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
59
|
+
if (restoredSession.outputHistory.length === 0)
|
|
60
|
+
return;
|
|
61
|
+
// Concatenate all history buffers and write at once for better performance
|
|
62
|
+
const allHistory = Buffer.concat(restoredSession.outputHistory);
|
|
63
|
+
const historyStr = allHistory.toString('utf8');
|
|
64
|
+
// Sanitize and normalize the output
|
|
65
|
+
const sanitized = sanitizeReplayBuffer(historyStr);
|
|
66
|
+
const normalized = normalizeLineEndings(sanitized);
|
|
67
|
+
// Remove leading clear screen sequences to avoid double-clear
|
|
68
|
+
const cleaned = normalized
|
|
69
|
+
.replace(/^\x1B\[2J/g, '')
|
|
70
|
+
.replace(/^\x1B\[H/g, '');
|
|
71
|
+
if (cleaned.length > 0) {
|
|
72
|
+
stdout.write(cleaned);
|
|
79
73
|
}
|
|
80
74
|
}
|
|
81
75
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccmanager",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.7",
|
|
4
4
|
"description": "TUI application for managing multiple Claude Code sessions across Git worktrees",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kodai Kabasawa",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"bin"
|
|
42
42
|
],
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@kodaikabasawa/ccmanager-darwin-arm64": "3.6.
|
|
45
|
-
"@kodaikabasawa/ccmanager-darwin-x64": "3.6.
|
|
46
|
-
"@kodaikabasawa/ccmanager-linux-arm64": "3.6.
|
|
47
|
-
"@kodaikabasawa/ccmanager-linux-x64": "3.6.
|
|
48
|
-
"@kodaikabasawa/ccmanager-win32-x64": "3.6.
|
|
44
|
+
"@kodaikabasawa/ccmanager-darwin-arm64": "3.6.7",
|
|
45
|
+
"@kodaikabasawa/ccmanager-darwin-x64": "3.6.7",
|
|
46
|
+
"@kodaikabasawa/ccmanager-linux-arm64": "3.6.7",
|
|
47
|
+
"@kodaikabasawa/ccmanager-linux-x64": "3.6.7",
|
|
48
|
+
"@kodaikabasawa/ccmanager-win32-x64": "3.6.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@eslint/js": "^9.28.0",
|