Skip to content

Each system keeps its own control channel log - #279

Open
jlutz33 wants to merge 3 commits into
TrunkRecorder:mainfrom
jlutz33:fix/log-per-system
Open

jlutz33 wants to merge 3 commits into
TrunkRecorder:mainfrom
jlutz33:fix/log-per-system

Conversation

@jlutz33

@jlutz33 jlutz33 commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The interface kept one control channel log for every system: the newest 2,000 lines, all systems together (controller.ts, .slice(-2000)). With several busy systems, a quieter system's lines were pushed out within seconds. Its Radio system page showed a few lines in the control channel log, and then they all disappeared.

Now each system keeps its own newest 500 lines, and the recorder's lines with no system keep theirs. The order across systems is kept (keepLog in controller.ts), so nothing else changes for the log's readers.

Testing

  • (cd web && npm test): 279 pass, including 2 new tests in logBuffer.test.ts:
    • a system logging 5,000 lines doesn't push out a quiet one's 2;
    • order is kept across systems, and lines with no system keep their own share.
  • npx tsc --noEmit: clean.
  • On a live install with 14 systems, a quiet system's log had emptied within seconds. With this change, its lines stayed for the whole evening while the others ran at full rate.

🤖 Generated with Claude Code

jlutz33 and others added 3 commits November 27, 2026 21:05
The interface kept the newest 2,000 lines of every system together, so
a busy system's lines pushed a quiet one's out within seconds. Each
system (and the recorder's own lines) now keeps its newest 500, in order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only CHANGELOG.md conflicted: upstream's entry first, then this one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The changelog entry moves to the end of Unreleased, so entries added at
its top no longer conflict with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant