Files
krust/docs
ErfanandClaude Opus 4.8 8c3dc74c16 feat(ui): message-only logs view (m) — hide source prefix and timestamp (#28)
In multi-pod log streams each line is `[ns/pod/container] <timestamp> <message>`,
and the prefix + timestamp can eat half the width, pushing the actual message
off-screen. `m` in the logs pane toggles a message-only view that strips both,
keeping just the message.

- Display-only transform (`display_log_line`) returning a borrowed slice — the
  message is a contiguous tail, so it's allocation-free on the render hot path;
  applied in the non-wrap viewport window, the wrap-mode body, and the width calc.
- Search/scroll are unaffected (line indices unchanged; still searchable by
  source/time — only the display is trimmed).
- Logs title shows `view: full|message-only`.

Tests: strip logic (prefix + RFC3339 timestamp, with edge cases) and a
render toggle test (prefix/timestamp hidden, message kept).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 01:19:58 +02:00
..