Skip to content

refactor(ui): await runtime config reads and commands - #179544

Closed
steipete wants to merge 14 commits into
mainfrom
solid2/w-s2-runtime-config
Closed

steipete wants to merge 14 commits into
mainfrom
solid2/w-s2-runtime-config

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Family Files before→after Production LOC before→after 1 handlers 2 lifecycle 3 reads C/E/U/N before→after 4 commands C/E/U/N before→after 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs
Agents editor / non-memory 28→28 6,398→6,398 0→0 0→0 0C/0E/0U/12N→0C/0E/0U/12N 1C/0E/0U/6N→1C/0E/0U/6N 0→0 0→0 0→0 0→0 0→0 0→0
Agents memory 12→12 2,929→2,929 0→0 0→0 0C/0E/0U/5N→0C/0E/0U/5N 0C/1E/0U/2N→0C/1E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config Appearance / shared 15→15 4,481→4,482 0→0 0→0 0C/1E/0U/7N→0C/1E/0U/7N 0C/1E/0U/4N→0C/1E/0U/4N 0→0 0→0 0→0 0→0 0→0 0→0
Config other 34→35 5,695→5,778 0→0 0→0 1C/0E/0U/3N→0C/0E/0U/4N 1C/1E/0U/3N→0C/1E/0U/4N 0→0 0→0 0→0 0→0 0→0 0→0
Config health 3→3 1,352→1,352 0→0 0→0 1C/0E/0U/0N→1C/0E/0U/0N 0C/0E/0U/1N→0C/0E/0U/1N 0→0 0→0 0→0 0→0 0→0 0→0
Config memory 5→5 1,353→1,353 0→0 0→0 0C/1E/0U/1N→0C/1E/0U/1N 0C/0E/0U/2N→0C/0E/0U/2N 0→0 0→0 0→0 0→0 0→0 0→0
Config Talk 5→5 1,700→1,700 0→0 0→0 0C/0E/0U/3N→0C/0E/0U/3N 2C/0E/0U/0N→2C/0E/0U/0N 0→0 0→0 0→0 0→0 0→0 0→0
Sessions 23→23 4,193→4,193 0→0 0→0 1C/0E/0U/3N→1C/0E/0U/3N 0C/0E/0U/8N→0C/0E/0U/8N 0→0 0→0 0→0 0→0 0→0 0→0
PAGES-A total 125→126 28,101→28,185 0→0 0→0 3C/2E/0U/34N→2C/2E/0U/35N 4C/3E/0U/26N→3C/3E/0U/27N 0→0 0→0 0→0 0→0 0→0 0→0

C/E/U/N = eligible candidate / named exception / unresolved / native. Exact base: c9246f6cacdaf0cf45e1dd0bf0fdd01f538af11f; refreshed head: e4e2a9e6e3d940a637cb0fdf3353a2c76d6fee05. The Runtime read and command groups receive proposed C→N credit. The base already contains the Settings Retry/Save/Apply actions and Reload read, Agent Save/Reload, and Memory Open Config; this head completes Raw Save/Discard/Open. Other unmerged groups retain their candidate status.

Five touched production files: 1,824→1,908 (+84). Five test/support files: 1,358→1,740 (+382). No unlanded migration is counted as merged.

Problem and solution

An initial configuration read failure left Settings without a direct retry. The page now consumes the Runtime Config owner's admitted completion under Solid Loading and Errored. Loaded editors retain their drafts, DOM, and publication-recovery interlocks during refresh. Retry calls the same owner; unrelated publications do not silently re-admit a failed initial read.

Raw Save, Discard, and Open retain owner completions and show pending presentation until the operation settles or navigation retires it. Both Raw controls and the landed Session Observer use the existing synchronous command lifetime. Reselecting the effective Raw mode, including a retained dirty draft, keeps its pending operation active. Retirement releases presentation only; the plain Runtime Config owner continues recording the actual outcome. The Raw Discard owner still drains writes, preserves draft revision authority, and performs its existing connected reload or offline reset.

The refreshed head merges current main, preserving its extracted media-device owner and all eight curated-mutation guard conditions. The existing lazy boundaries, tags, CSS classes, routes, request admission, and mutation authority remain. No dependencies change. The additional code is the initial-read boundary, shared loading/error markup, Raw action presentation, and behavioral tests.

Current-head proof

Proof Result
Main integration Normal two-parent merge of exact main c9246f6; only ten Runtime files differ from the base
Frozen install pnpm install --frozen-lockfile passed with the pinned toolchain
UI typecheck pnpm tsgo:ui passed
Focused tests 67 passed, three files once each with one worker: config-page cold reads, Session Observer, and the existing config-page suite
Scoped lint / formatting / whitespace Passed
Independent review Complete refreshed diff scoped-clean through P0–P2; final source verification passed
Production Knip Exact base/head both exit 1 with byte-identical diagnostics: two unused heartbeat files (heartbeat-active-hours.ts, heartbeat-wake-policy.ts); no new finding or ignore
Paired budget proof Exact base/head build-input and publication seals; strict performance comparison passed with no warnings or violations
Targeted visual proof Four synthetic capture cases passed; Appearance and Notifications both show Loading, visible failure, and successful Retry on head; zero page errors
Full CI Fresh run required for e4e2a9e6. Previous head 431ef3a passed full CI 39741887545; that result is prior-head evidence only

The focused cases cover retained initial failures and Retry, Raw reselection, synchronous route retirement, and held/rejected Session Observer writes. Existing RouterOutlet strict-read diagnostics remained visible without assertion failures. The renderer browser test is committed and left to PR CI. No broad local suite, local E2E battery, parity run, or repeated test loop was used.

Budget proof

Both sides use exact source revisions c9246f6 and e4e2a9e6, Node 24.22.1, the same installed Solid rc.16 toolchain, disabled build/compile caches, fixed build metadata, and the same verified 20-file synthetic generated fixture. Ten generated inputs and every tracked build input were verified, then full publications were sealed. No staging or restoration was needed because the existing generated distribution already matched the canonical fixture.

Surface (gzip) Base Head Delta
Startup JS 316,277 B 316,287 B +10 B
Startup CSS 40,894 B / 1 request 40,894 B / 1 request 0 B
Chat boot JS 1,438,403 B 1,438,391 B −12 B
New Session boot JS 1,015,445 B 1,015,435 B −10 B

Startup remains below 325,000 B. Both routes and all locales are below their caps on both sides; locale deltas range from −2 to +3 B. Existing lazy boundaries remain intact, and no budget or baseline changes.

Native workflow

Native landing remains blocked by the missing or unreadable authentic Git admin entry: fatal: not a git repository: '.git/worktrees/pr-179544'. No native retry, checkout metadata repair, receipt edit, or lock bypass was attempted for this refreshed head. Source integration and fresh PR CI can proceed independently while the coordinator resolves that blocker.

Visual proof

These full frames were inspected and contain only synthetic data, at a 1440×1000 viewport in dark mode. On each base route, holding and rejecting the initial configuration read produces identical pixels and no Retry button. On head, Loading appears, rejection produces a visible error and Retry, and Retry recovers the page. The four targeted capture scripts passed without page errors.

Appearance before: rejected initial read has no Retry

Appearance after: visible initial loading

Appearance after: recoverable initial-read error

Notifications before: rejected initial read has no Retry

Notifications after: visible initial loading

Notifications after: recoverable initial-read error

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T10:59:21.750147Z e4e2a9e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb965af950

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment thread ui/src/pages/config/view.tsx Outdated
Comment on lines +83 to +85
const result = configResult();
if (result?.ok === false) {
throw new Error(result.error);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the failed read until Retry is chosen

When the initial config.get fails in the actual ConfigRoute lifecycle, synchronizeRuntimeConfig() observes configSnapshot === null and configLoading === false and immediately calls ensureLoaded() again, replacing props.configRead before this memo can present the failed receipt. The page therefore returns to the loading state—and repeats requests on persistent failures—instead of leaving the new actionable error visible; retain the failed receipt until the user selects Retry or prevent the automatic ensure from superseding it.

AGENTS.md reference: AGENTS.md:L75-L75

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a20f495f2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment thread ui/src/pages/config/view.tsx Outdated
state().includeVirtualSections ? (
<NotificationsSection {...props} />
) : null
) : !configReady() ? null : state().formMode === "form" ? (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check failed reads before rendering virtual sections

When the initial config.get fails while activeSection is __appearance__ or __notifications__, this ternary renders the virtual section before evaluating configReady(). Because the read receipt resolves to { ok: false } rather than rejecting, Loading completes normally and Errored never receives the exception, leaving no failure message or Retry action; on Appearance, the unloaded schema also prevents access to its ui config section. Evaluate the failed receipt before selecting the virtual branches, or surface the same recovery UI within them.

AGENTS.md reference: AGENTS.md:L75-L75

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Settings observes admitted configuration reads, offers Retry, and retires pending raw-command presentation when its context changes.

Example: The initial configuration request fails on Infrastructure.

  • Before: The configuration area has no direct Retry action.
  • After: An error callout offers Retry through the existing configuration owner.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful direction with inspected visual evidence, but the new failed-read recovery remains incomplete in two concrete paths.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR is outside the ordinary contributor proof gate; four inspected synthetic screenshots show Infrastructure loading and Retry, and the body reports actual RouterOutlet recovery and held-save navigation capture, while the fifth command screenshot was inaccessible due to review infrastructure.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An initial configuration read can leave Settings without direct recovery, and pending raw commands can retain an obsolete editor during navigation.
Reason: The maintainer-authored direction addresses concrete recovery and navigation problems using existing owners.

Merge readiness

⛔ Needs changes before merge - 3 items remain

This PR provides useful Settings recovery and command presentation, but two recovery defects remain and GitHub reports a merge conflict.

Priority: P2
Reviewed head: 3406952404ec4e611209ead8fe4864dd8668c669

Before merge

  • Consume the failed read before selecting virtual sections (P2) - With configLoaded=false and a configRead resolving to { ok: false, error: "Configuration request failed" }, activeSection="appearance" or "notifications" bypasses configReady entirely. The receipt resolves rather than rejects, so neither virtual branch throws into Errored and the new error/Retry UI never appears; Loading.on alone does not consume the async result. Evaluate readiness before choosing these branches while preserving the explicit publication-recovery exception.
  • Retain a failed read until the user chooses Retry (P2) - The new presenter follows currentConfigRead directly, but synchronizeRuntimeConfig still calls ensureLoaded whenever the snapshot is missing and loading is false. After an initial failure settles, a schema publication, theme publication, or window-focus synchronization can admit a successor read without Retry and replace this receipt. The new recovery callout consequently disappears or returns to Loading on unrelated activity. Keep the failed read terminal for that connection until explicit Retry, and exercise this through the actual page owner rather than manually supplying renderer props.
  • Complete next step - Resolve the merge conflict GitHub reports for the reviewed head.

Findings

  • [P2] Consume the failed read before selecting virtual sections — ui/src/pages/config/view.tsx:648-652
  • [P2] Retain a failed read until the user chooses Retry — ui/src/pages/config/config-page-state.ts:642-645

Tests

  • Missing end-to-end proof: Add real ConfigRoute coverage for failed initial reads on Appearance and Notifications and for unrelated publications before Retry, showing the regressions fail on the original implementation.
Agent review details

How this fits together

The lazy Settings page projects the runtime configuration owner's requests and commands into Solid loading, error, and pending-operation presentation.

flowchart LR
  A[Settings navigation] --> B[Config page owner]
  B --> C[Runtime config owner]
  C --> D[Gateway RPC]
  C --> E[Read completion and state]
  E --> F[Solid config view]
  F --> B
Loading

Technical review

Best possible solution:

Consume failed reads before every section branch and retain their recovery state until explicit Retry or a genuine connection change.

Do we have a high-confidence way to reproduce the issue?

Source establishes both failed-read paths, and the prepared screenshots show Infrastructure's changed presentation; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Reusing the admitted read and plain mutation owner is appropriate, but recovery must cover virtual sections and survive unrelated publications.

Full review comments:

  • [P2] Consume the failed read before selecting virtual sections — ui/src/pages/config/view.tsx:648-652
    With configLoaded=false and a configRead resolving to { ok: false, error: "Configuration request failed" }, activeSection="appearance" or "notifications" bypasses configReady entirely. The receipt resolves rather than rejects, so neither virtual branch throws into Errored and the new error/Retry UI never appears; Loading.on alone does not consume the async result. Evaluate readiness before choosing these branches while preserving the explicit publication-recovery exception.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Retain a failed read until the user chooses Retry — ui/src/pages/config/config-page-state.ts:642-645
    The new presenter follows currentConfigRead directly, but synchronizeRuntimeConfig still calls ensureLoaded whenever the snapshot is missing and loading is false. After an initial failure settles, a schema publication, theme publication, or window-focus synchronization can admit a successor read without Retry and replace this receipt. The new recovery callout consequently disappears or returns to Loading on unrelated activity. Keep the failed read terminal for that connection until explicit Retry, and exercise this through the actual page owner rather than manually supplying renderer props.
    Confidence: 0.95
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f3211513cc6d.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/config/view.config-read.browser.test.tsx --maxWorkers=1
  • pnpm --dir ui test src/pages/config/config-page.session-observer.test.ts --maxWorkers=1
  • pnpm --dir ui test src/lib/config/runtime-config-capability.test.ts --maxWorkers=1
  • pnpm tsgo:ui
  • git diff --check

What I checked:

PR surface

Source +106, Tests +192. Total +298 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 171 65 +106
Tests 4 192 0 +192
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 363 65 +298

Review metrics

Metric Value Why it matters
Production versus test growth Production +106 lines; tests/support +192 lines The added read boundary and command lifetime serve concrete recovery and navigation behavior without introducing another authoritative configuration owner.

Labels

Label changes:

  • add P2: The remaining defects affect Settings recovery after a failed initial configuration request.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The remaining defects affect Settings recovery after a failed initial configuration request.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 6:18 PM ET / 22:18 UTC.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e6d345d0c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

activeSubsection: pageId === "mcp" ? null : selection.activeSubsection,
onRawChange: withConfigMutation((next: string) => runtimeConfig.setRaw(next)),
onFormModeChange: (mode: View.ConfigFormMode) => {
retireCommands();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve pending commands when reselecting the active mode

When an Open command is pending in the raw editor, clicking the already-selected Raw mode calls this handler through SettingsSegmented.onReselect, so retireCommands() resolves the command lifetime even though the presentation did not change. Since Open does not set an owner busy flag, the optimistic pending state clears and all raw controls are re-enabled before config.openFile settles, allowing duplicate commands or edits during the request; retire commands only when the mode actually changes.

AGENTS.md reference: AGENTS.md:L76-L76

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 72ddb2d. Reselecting Raw now preserves the pending command presentation. The comparison uses the mode currently displayed, including a retained dirty Raw draft whose stored preference remains Form. The mounted regression covers both cases, checks a single Open invocation, and verifies the button stays disabled until settlement; both failure modes were reproduced before the fix.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 72ddb2d4e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

runtimeConfig.removeFormValue(path),
),
onSectionChange: (section: string | null) => {
commands.retire();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep raw commands pending across section navigation

On the Advanced page in Raw mode, clicking any accordion section invokes this handler even though the same RawEditor remains mounted. Unconditionally retiring its lifetime clears the optimistic pending state while config.openFile can still be unresolved, re-enabling the Open control and allowing duplicate requests; retire only when navigation actually removes the command presentation.

AGENTS.md reference: AGENTS.md:L76-L76

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e80faa793b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

}
const config = runtimeConfig.state;
if (!config.configSnapshot && !config.configLoading) {
if (!config.configSnapshot && !config.configLoading && !currentConfigRead(config)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Expose failed config reads on the Updates page

When the initial config.get fails while pageId is updates, currentConfigRead(config) continues to hold the failed receipt, so this condition suppresses every later automatic ensureLoaded() call. The Updates branch in ConfigBody renders only UpdatesPage, not ConfigReadBoundary, so the user gets neither the failure nor a Retry action; the page instead derives update policy from an empty config object and unlocks its configuration controls once configLoading clears. Add read recovery to the Updates page or avoid retaining the failed receipt where no boundary consumes it.

AGENTS.md reference: AGENTS.md:L76-L76

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 431ef3a05f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Comment on lines +39 to +42
if (!props.config.configLoaded && !props.config.configRecoveryError) {
const result = configResult();
if (result?.ok === false) {
throw new Error(result.error);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Surface failed refreshes after a snapshot exists

When a reconnect or foreground refresh fails after an earlier snapshot was loaded, configLoaded remains true, so this condition never reads the failed receipt and the boundary displays neither the error nor Retry. Once configLoading clears, the editor also unlocks against the stale snapshot; retain the editor if desired, but surface the failed owner read and keep mutations interlocked until authority is restored.

AGENTS.md reference: ui/AGENTS.md:L16-L18

Useful? React with 👍 / 👎.

Comment on lines +202 to +205
!state.connected ||
state.configLoading ||
state.configSaving ||
state.configApplying ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep curated controls locked after a failed cold read

When the initial config.get fails on special routes such as Talk, Security, or Memory Settings, configSnapshot remains null but configLoading becomes false, so this predicate enables their curated controls outside ConfigReadBoundary. Those handlers call patchForm, which seeds a draft from {} and later fails autosave because no base hash exists, leaving a misleading, unsavable local configuration; include the absent/failed config read in this mutation interlock.

AGENTS.md reference: ui/AGENTS.md:L16-L18

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #180591, merged as 91ea438. The replacement was needed because the original native registration was lost during the disk-emergency cleanup. Full CI passed, and the landed tree and all reviewed files have been independently verified.

@steipete steipete closed this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant