Repository navigation
Prepare investigation package compatibility and stream reliability - #1672
Conversation
PR Summary by QodoBack off investigation retries and require k8s-ui 1.14.2
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. A redundant comment burdens maintainers
|
| // historyUnavailableRetryMillis is the EventSource reconnect delay sent with a | ||
| // retryable hydration failure. |
There was a problem hiding this comment.
1. A redundant comment burdens maintainers 📘 Rule violation ⚙ Maintainability
historyUnavailableRetryMillis is documented as the EventSource reconnect delay for retryable hydration failures, which its name and immediate use already state. Any future retry-policy change must update both the executable value and this duplicate prose, creating another source of drift.
Agent Prompt
## Issue description
Remove the comment that merely restates the purpose already conveyed by `historyUnavailableRetryMillis` and its call site.
## Issue Context
The nearby retry-handling comment already records the non-obvious rationale for the ten-second delay, so the constant-level comment adds no distinct intent or constraint.
## Fix Focus Areas
- internal/server/ai_diagnose.go[516-517]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
Prepare the investigation UI for the next patch packages and reduce reconnect pressure during transient transcript-storage failures.
Changes
Validation
Release ordering
Publish k8s-ui 1.14.2 from code containing the export before radar-app 1.13.2. Both are patch releases. This PR does not publish packages or enable hosted Findings; Hub protocol alignment and its required target-group migration remain separate integration work.
Note
Low Risk
Mostly dependency alignment, SSE reconnect tuning, and test coverage; no auth or data-mutation logic changes in production UI code beyond the stream retry line.
Overview
Prepares the investigation stack for @skyhook-io/k8s-ui >=1.14.2 (lockfile and
web/package.jsonpeer) so Findings can rely on exports such asdefaultConditionTonethat are missing from 1.14.1.For retryable AI run transcript hydration failures on the diagnose SSE stream, the server now emits
retry: 10000before the existinghistory_unavailableframe so EventSource backs off instead of hammering the store on a few-second default reconnect. Corrupt / non-retryable history still ends with the explicitclosedframe; only the transient path changes.Adds shared timeline store conformance coverage that
APIGroupsis applied beforeLimitand rows with emptyAPIVersionstay visible under any group filter. Adds frontend unit tests forupsertTool(append, in-place merge preserving running input, provenance fields, animation flags).Reviewed by Cursor Bugbot for commit 993a48f. Bugbot is set up for automated code reviews on this repo. Configure here.