Repository navigation
v0.2.5
[0.2.5] - 2026-03-28
Fixed
CLI
- Fix JavaScript heap out-of-memory crash after extended use (~2-3 hours) caused by multiple memory leaks
- Clean up
inspectedEnv,containerChanges, andimageLayerscaches on container destroy and periodic refresh — previously entries were never removed, leaking indefinitely - Cap
LogTemplateEngineat 500 template groups globally — previously unbounded, accumulating thousands of groups for containers with highly variable log patterns - Prune
StatsCollectorhistory entries for non-running containers on periodic refresh - Deterministic stream teardown using
AbortSignal— switching containers or stopping streams now immediately destroys the underlying Docker HTTP connection instead of waiting for the next chunk - Eliminate unnecessary shallow array copies in
getMetrics()called every render cycle — return direct references since consumers never mutate - Cache colorized log output with
WeakMap— avoids re-tokenizing and re-colorizing all 1000 log lines every render, reducing per-render allocations from ~100K objects to near zero - Eliminate
join('\n')→split('\n')round-trip in log tab rendering — log tabs now returnstring[]directly
Shared
- Add
signal?: AbortSignalparameter toDockerClient.streamLogs(),DockerClient.streamStats(), andComposeClient.streamLogs()for immediate stream teardown - Add
StatsCollector.prune()method to remove history for non-active containers - Add
LogTemplateEngine.getDiagnostics()for group count, dropped groups, and total lines
Changed
CLI
- Render throttle increased from 100ms to 200ms (10fps → 5fps) — still smooth for a TUI and halves GC pressure
DetailTab.render()return type widened tostring | string[]to avoid wasteful string conversionsBaseStreamManagernow usesAbortControllerper stream with a generation counter to prevent stale reconnects
Added
CLI
SIDEKICK_DEBUG_STREAMS=1environment variable enables periodic memory and template diagnostics (every 60s) for debugging long-running sessions
Install
VS Code extension: Download the .vsix below or install from Open VSX.
CLI via npm (requires Node.js 20+):
npm i -g sidekick-docker