@bakapiano/ccsm 0.17.7 → 0.17.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakapiano/ccsm",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.8",
|
|
4
4
|
"description": "Claude Code Session Manager — Windows web UI to manage many concurrent claude sessions: live list, snapshot/restore, focus existing window, new session in an isolated workspace with repo clones",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "server.js",
|
|
@@ -113,7 +113,14 @@ export function TerminalView({ terminalId }) {
|
|
|
113
113
|
wsRef.current = ws;
|
|
114
114
|
|
|
115
115
|
ws.onopen = () => {
|
|
116
|
-
//
|
|
116
|
+
// Fit synchronously here before reading cols/rows. On localhost the
|
|
117
|
+
// WS handshake usually completes within a few ms — well before the
|
|
118
|
+
// rAF-scheduled initial fit runs — so without this we'd ship the
|
|
119
|
+
// xterm.js default 80x24 to the PTY, claude would print its prompt
|
|
120
|
+
// wrapped at 80 cols, and the follow-up resize from the rAF fit
|
|
121
|
+
// wouldn't reflow the already-emitted bytes. Visible as squeezed
|
|
122
|
+
// text on every session switch.
|
|
123
|
+
try { fit.fit(); } catch {}
|
|
117
124
|
ws.send(JSON.stringify({ type: 'resize', cols: term.cols, rows: term.rows }));
|
|
118
125
|
};
|
|
119
126
|
ws.onmessage = (ev) => {
|