clarc/src
Jared Miller 31340fe0a8
Fix async terminal.write() causing garbled dashboard output
The terminal.write() method from @xterm/headless is async - the data
isn't in the buffer yet when we call serializeAsHTML() immediately
after. This caused empty or partially rendered output in the browser.

Now using the callback form of terminal.write(data, callback) to wait
for the write to complete before serializing and broadcasting to SSE
clients. This ensures the terminal buffer is fully updated before we
generate HTML from it.
2026-01-31 11:06:37 -05:00
..
ansi-carryover.ts Clean up deprecated ANSI processing code (Phase 4) 2026-01-31 09:53:22 -05:00
ansi.test.ts Fix carriage return handling to emulate line overwrite 2026-01-30 08:06:36 -05:00
ansi.ts Clean up deprecated ANSI processing code (Phase 4) 2026-01-31 09:53:22 -05:00
auth.test.ts Add HMAC authentication with comprehensive tests 2026-01-28 11:14:54 -05:00
auth.ts Add HMAC authentication with comprehensive tests 2026-01-28 11:14:54 -05:00
cli.test.ts Parse state and stats events from Claude Code hooks 2026-01-28 13:48:56 -05:00
cli.ts Rename project from claude-remote to clarc 2026-01-30 08:32:34 -05:00
db.test.ts Add unit tests for git persistence 2026-01-28 15:02:40 -05:00
db.ts End all sessions on server startup 2026-01-30 09:12:40 -05:00
seed.ts Handle OSC and ascii 2026-01-28 16:38:25 -05:00
server.test.ts Add tests for splitAnsiCarryover function 2026-01-31 09:11:49 -05:00
server.ts Fix async terminal.write() causing garbled dashboard output 2026-01-31 11:06:37 -05:00
terminal.test.ts Add terminal.test.ts unit tests 2026-01-31 09:47:54 -05:00
terminal.ts Add terminal.ts module for headless terminal emulation 2026-01-31 09:43:46 -05:00
types.ts Add initial_state SSE event for reconnect sync (Phase 3) 2026-01-31 09:51:13 -05:00