Skip to content

Commit 284b312

Browse files
fix(cli): preserve first line of channels logs at window boundary
1 parent 3af767a commit 284b312

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Docs: https://docs.openclaw.ai
1010

1111
### Fixes
1212

13-
- CLI/channels: preserve the first line of `openclaw channels logs` output when the rolling tail window starts exactly on a line boundary, mirroring the already-fixed `readLogSlice` behaviour in `src/logging/log-tail.ts`.
13+
- CLI/channels: preserve the first line of `openclaw channels logs` output when the rolling tail window starts exactly on a line boundary, mirroring the already-fixed `readLogSlice` behavior in `src/logging/log-tail.ts`.
1414
- Control UI: treat terminal session status as authoritative over stale active-run flags so completed terminal runs stop showing abort/live UI. (#84057)
1515
- CLI: preserve embedded equals signs in inline root option values instead of truncating after the second separator. (#83995) Thanks @ThiagoCAltoe.
1616
- Matrix/config: accept `messages.queue.byChannel.matrix` queue overrides and keep queue provider schema/type keys aligned for Matrix, Google Chat, and Mattermost. Thanks @bdjben.

src/commands/channels.logs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe("channelsLogsCommand", () => {
146146
// made of 10_000 lines each exactly 200 bytes (199 payload + "\n"), so the
147147
// read window starts at byte offset 1_000_000 which is exactly on a line
148148
// boundary (byte 999_999 is the trailing "\n" of the previous line).
149-
// Without the prefix-aware skip, readTailLines drops line 5000 silently.
149+
// Without checking the byte before the window, readTailLines drops line 5000 silently.
150150
const LINE_SIZE = 200;
151151
const TOTAL_LINES = 10_000;
152152
const FIRST_INDEX = 5000; // first line of the tail window after alignment

0 commit comments

Comments
 (0)