Add debug logging for ANSI carryover events
This commit is contained in:
parent
c09654c6c7
commit
0a3bfa6092
1 changed files with 2 additions and 0 deletions
|
|
@ -556,8 +556,10 @@ const server = Bun.serve<SessionData>({
|
|||
// Determine if new tail is an incomplete control sequence and split
|
||||
const [body, carry] = splitAnsiCarryover(combined);
|
||||
if (carry) {
|
||||
console.debug(`Session ${sessionId}: ANSI carryover detected (${carry.length} bytes)`);
|
||||
ansiCarryovers.set(sessionId, carry);
|
||||
} else if (prevCarry) {
|
||||
console.debug(`Session ${sessionId}: ANSI carryover resolved`);
|
||||
// Clear carry if previously set and now resolved
|
||||
ansiCarryovers.delete(sessionId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue