Sync upstream - v29/v33 (20260228)#115
Conversation
|
A few things to consider in the new telemetry wiring:
|
|
|
||
| this._video.addEventListener('ended', () => { | ||
| this.$accessor.video.setPlayable(false) | ||
| getTelemetry().track('stream_play_started', 'info', { ended: true }) |
There was a problem hiding this comment.
Wrong telemetry event for video ended handler
Medium Severity
The video ended event handler tracks stream_play_started which is semantically incorrect. When a video finishes playing, the telemetry reports that playback started, which produces misleading data. This appears to be a copy-paste error or incorrect event type selection.
| const usagePercent = Math.round((memory.usedJSHeapSize / memory.jsHeapSizeLimit) * 100) | ||
|
|
||
| // Warn if memory usage is high | ||
| const severity = usagePercent > 80 ? 'warning' : usagePercent > 90 ? 'error' : 'debug' |
There was a problem hiding this comment.
Memory severity threshold order prevents error detection
Medium Severity
The ternary chain usagePercent > 80 ? 'warning' : usagePercent > 90 ? 'error' : 'debug' has incorrect threshold ordering. Since > 80 is checked first, any value above 80 (including 95%) returns 'warning', and the > 90 condition for 'error' is never reached. The thresholds need to be checked in descending order: > 90 first, then > 80.
| sampleCount: this.fpsValues.length, | ||
| }) | ||
| } | ||
| }, 10000) |
There was a problem hiding this comment.
FPS reporting interval is never cleared on uninstall
Medium Severity
The setInterval for FPS reporting is never assigned to a variable, so it cannot be cleared in uninstall(). Unlike memoryMonitorId which is properly stored and cleared, this interval continues running indefinitely even after the collector is uninstalled, causing a resource leak and potentially continuing to call telemetry methods on a destroyed service.
Upstream Sync
Date: 2026-02-28
Private main sync
Merged new commits from
origin/maininto the sync branch:ad6e7b5Merge pull request [kernel 726] fix web bot auth extension #110 from kernel/codex/add-optional-nvenc-replay-encoding01e5e92Fix recorder Start race during encoder startup375d4bdNormalize VIDEO_ENCODER in config validation4659198Add optional NVENC replay encodingMerge was clean (no conflicts).
kernel-browser
Already up to date at
v145.0.7632.75-r5. No update needed.Upstream merge
Merged 2 commits from
upstream/main:28efa85Development environment setup (Development environment setup #168)5bf9d70fix(client): add anti-echo guard for video syncing (fix(client): add anti-echo guard for video syncing #166)Merge was clean (no conflicts).
New image versions
Merge conflicts
None — all merges were clean.