GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — chore(gui): React Doctor 100, 0.9.2 pin, block findings by Wibias · Pull Request #589 · lidge-jun/opencodex Conversation
|
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
gui/src/components/MemoryObservabilityCard.tsx (1)
235-246: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick winCap reconnect polling by the remaining give-up window.
boundedSignal(controller, 5_000)can keep/healthzin flight pastRECONNECT_GIVE_UP_MS, andinFlightblocks the next tick from advancing the phase sooner. Compute the remaining time before each request and clamp the abort timeout to it (or drive the phase with a dedicated deadline timer) so"reconnecting"cannot outlive the configured deadline atgui/src/components/MemoryObservabilityCard.tsx:235-274.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@gui/src/components/MemoryObservabilityCard.tsx` around lines 235 - 246, Update the reconnect polling flow around the healthz fetch and its inFlight handling to compute the remaining RECONNECT_GIVE_UP_MS window before each request, then clamp the AbortSignal timeout to that remaining duration instead of always using 5 seconds. Ensure an in-flight request cannot delay the deadline transition, so the reconnecting phase changes to error by the configured give-up deadline.
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@gui/tests/fetch-json.test.ts`:
- Around line 27-34: Extend the test “readJsonOrThrow prefers error, then
message, then fallback” to assert that readJsonOrThrow rejects with the supplied
fallback when the response contains neither a usable error nor message string.
Preserve the existing precedence assertions.
In `@scripts/doctor-gui-if-changed.ts`:
- Around line 22-24: Restrict looksLikeDoctorInfraFailure to concrete engine,
command, or registry error codes/signatures by removing bare-word matches such
as network, registry, offline, SSL, and TLS while retaining explicit patterns.
In tests/ci-workflows.test.ts at lines 1969-1972, add a negative classifier
assertion showing findings text such as “Network requests > 1 errors” is not
treated as infrastructure failure and therefore remains gating.
---
Outside diff comments:
In `@gui/src/components/MemoryObservabilityCard.tsx`:
- Around line 235-246: Update the reconnect polling flow around the healthz
fetch and its inFlight handling to compute the remaining RECONNECT_GIVE_UP_MS
window before each request, then clamp the AbortSignal timeout to that remaining
duration instead of always using 5 seconds. Ensure an in-flight request cannot
delay the deadline transition, so the reconnecting phase changes to error by the
configured give-up deadline.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 83b22aea-e07e-448a-842f-776773e4c9ff
gui/src/components/MemoryObservabilityCard.tsxgui/src/fetch-json.tsgui/tests/fetch-json.test.tsscripts/doctor-gui-if-changed.tsscripts/fixtures/doctor-findings-exit.tsscripts/fixtures/doctor-offline-exit.tstests/ci-workflows.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: b6f493cb5c
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
gui/src/pages/Storage.tsx (1)
809-819: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winSynchronize draft fields with the saved policy response.
buildBody()floors the percent before sending it, but successful saves only updatepolicy;percentremains the original draft. For example, entering12.9submits12, while the input continues displaying12.9, leaving the GUI inconsistent with the management API. Reuse the same response-to-draft normalization used byloadPolicy()after bothsavePolicy()and the initial save inrunNow().As per path instructions, GUI state changes must stay consistent with management API responses.
Also applies to: 848-859
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@gui/src/pages/Storage.tsx` around lines 809 - 819, Synchronize draft fields with the normalized policy returned by the management API. In both the successful save path and the initial save path in runNow(), reuse the response-to-draft normalization used by loadPolicy() to update percent and related draft fields alongside setPolicy, so floored values such as 12.9→12 are reflected in the GUI.Source: Path instructions
gui/src/pages/ClaudeDesktop.tsx (1)
154-159: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winValidate management API payload shapes before using them.
readJsonIfOkonly handles HTTP/JSON parsing errors; a200 {}is still returned. The status poll stores that object, then Lines 360-366 dereferencestatus.health, crashing the page. The load guard also appliesinto truthy primitives and accepts{ profile: null, models: null }, exposing internal errors instead ofclaudeDesktop.loadFail.
gui/src/pages/ClaudeDesktop.tsx#L154-L159: validate the complete response shape required bynormalizeProfilebefore accessing nested fields; reject invalid data with the localized load failure.gui/src/pages/ClaudeDesktop.tsx#L219-L223: add anisDesktopStatusguard and ignore invalid successful payloads rather than callingsetStatus.As per path instructions, GUI state changes must stay consistent with management API responses.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@gui/src/pages/ClaudeDesktop.tsx` around lines 154 - 159, In gui/src/pages/ClaudeDesktop.tsx#L154-L159, strengthen the load response validation before normalizeProfile by requiring a non-null object with the complete profile and models shape, rejecting invalid payloads with claudeDesktop.loadFail. In gui/src/pages/ClaudeDesktop.tsx#L219-L223, add and use an isDesktopStatus guard so invalid successful status responses are ignored instead of passed to setStatus.Source: Path instructions
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/ci-workflows.test.ts`:
- Around line 1920-1921: Update the action-reference regex in the workflow
pinning assertion to require exactly 40 hexadecimal characters followed by
end-of-line or whitespace, not merely a word boundary. Ensure refs with a
40-character SHA plus suffixes are rejected while valid standalone SHA pins
remain accepted.
---
Outside diff comments:
In `@gui/src/pages/ClaudeDesktop.tsx`:
- Around line 154-159: In gui/src/pages/ClaudeDesktop.tsx#L154-L159, strengthen
the load response validation before normalizeProfile by requiring a non-null
object with the complete profile and models shape, rejecting invalid payloads
with claudeDesktop.loadFail. In gui/src/pages/ClaudeDesktop.tsx#L219-L223, add
and use an isDesktopStatus guard so invalid successful status responses are
ignored instead of passed to setStatus.
In `@gui/src/pages/Storage.tsx`:
- Around line 809-819: Synchronize draft fields with the normalized policy
returned by the management API. In both the successful save path and the initial
save path in runNow(), reuse the response-to-draft normalization used by
loadPolicy() to update percent and related draft fields alongside setPolicy, so
floored values such as 12.9→12 are reflected in the GUI.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 59fa86dc-20a7-4ca5-8846-cc4ce80faf83
gui/src/components/MemoryObservabilityCard.tsxgui/src/pages/ClaudeDesktop.tsxgui/src/pages/Storage.tsxtests/ci-workflows.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Make apply failures keep server message text, cover the fetch-json fallback path, and only soft-skip prepush on concrete registry/network signatures so findings with words like network still gate.
|
@codex review @coderabbitai review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
✅ Action performedReview finished.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 37b3cbcf3f
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Restore manual timeout fallbacks via shared createBoundedFetch, raise doctor maxBuffer and fail on ENOBUFS, recognize ECONNRESET registry failures, and tighten action SHA pinning assertions.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: eb11a7f4e0
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Give npm ERR! its own alternative so trailing whitespace after the bang still counts as an offline/registry failure instead of gating the push.
Also recognize Node's ERR_CHILD_PROCESS_STDIO_MAXBUFFER so oversized doctor output cannot soft-skip the prepush findings gate.
|
CI is green on the latest push. Remaining inline threads look stale relative to current
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Replace execFileSync so prepush classification uses spawnSync status/error channels and cannot soft-skip oversized doctor output.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@gui/src/bounded-fetch.ts`:
- Around line 12-27: Add focused unit coverage for createBoundedFetch that
verifies signal.aborted becomes true after controller.abort() in both the native
AbortSignal.any/timeout branch and the manual setTimeout fallback branch. In the
fallback test, temporarily disable or mock AbortSignal.any and
AbortSignal.timeout on the global AbortSignal, then restore them after the test.
In `@scripts/doctor-gui-if-changed.ts`:
- Around line 98-134: Add a focused regression fixture and test for the
hard-fail branch in the doctor execution flow: create an overflow fixture that
emits more than DOCTOR_MAX_BUFFER, then extend the existing CI workflow tests to
run the script with that fixture and assert a nonzero exit code plus the
“exceeded buffer” stderr message. Ensure the test exercises the
ENOBUFS/ERR_CHILD_PROCESS_STDIO_MAXBUFFER handling in the spawnSync result.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 03211aee-273a-40ea-935d-aba7f692f77c
gui/src/bounded-fetch.tsgui/src/components/MemoryObservabilityCard.tsxgui/src/pages/ClaudeDesktop.tsxgui/src/pages/Grok.tsxgui/tests/fetch-json.test.tsscripts/doctor-gui-if-changed.tstests/ci-workflows.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Add regression tests CodeRabbit asked for, and check AbortSignal helpers with typeof so the manual timeout fallback actually runs when any/timeout are missing.
There was an error while loading. Please reload this page.
* chore(gui): restore React Doctor 100 and gate CI on findings Clear the post-cleanup regressions, pin react-doctor 0.9.2, and fail CI/prepush on any doctor finding so the score cannot silently drift again. * fix(gui): address CI/Codex follow-ups for React Doctor gate Keep Response-like test doubles working, preserve Grok/message error text, honor reconnect deadlines on non-OK healthz, and soft-skip offline npx/registry failures without letting real findings through. * fix(gui): address CodeRabbit follow-ups on doctor gate PR Extract boundedSignal, serialize Claude Desktop status polls, keep storage percent as a draft string, map trash list errors through i18n, and tighten React Doctor workflow assertions to active YAML. * fix(gui): tighten doctor offline classifier and Grok apply errors Make apply failures keep server message text, cover the fetch-json fallback path, and only soft-skip prepush on concrete registry/network signatures so findings with words like network still gate. * fix(gui): bound polls and harden doctor prepush gate Restore manual timeout fallbacks via shared createBoundedFetch, raise doctor maxBuffer and fail on ENOBUFS, recognize ECONNRESET registry failures, and tighten action SHA pinning assertions. * fix(gui): match nonterminal npm ERR! soft-skip signatures Give npm ERR! its own alternative so trailing whitespace after the bang still counts as an offline/registry failure instead of gating the push. * fix(gui): treat stdio maxBuffer overflows as doctor gate failures Also recognize Node's ERR_CHILD_PROCESS_STDIO_MAXBUFFER so oversized doctor output cannot soft-skip the prepush findings gate. * fix(gui): run React Doctor via spawnSync with explicit maxBuffer Replace execFileSync so prepush classification uses spawnSync status/error channels and cannot soft-skip oversized doctor output. * test(gui): cover bounded fetch and doctor maxBuffer hard-fail Add regression tests CodeRabbit asked for, and check AbortSignal helpers with typeof so the manual timeout fallback actually runs when any/timeout are missing.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.