Skip to content

refactor(ui): observe question resource operation errors - #180630

Merged
steipete merged 1 commit into
mainfrom
solid2/w-s2-recipe-audit-a-resource
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-s2-recipe-audit-a-resource

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Question-resource uploads and previews copied rejected operation errors into a local string signal. This completes the Solid 2 action-outcome recipe while preserving the existing UI and the Gateway-owned grants.

User Impact

Upload and preview errors remain visible beside the same controls. Retry clears the old error, keeps the accepted preview and uploaded selections, and shows the existing loading state. A retired request cannot publish a late failure into its successor.

Why This Change Was Made

The admitted operation now retains its rejected promise for a narrow Errored slot. Its optimistic busy flag still presents progress, and the synchronous admission, abort, target and connection checks remain unchanged. Event callers consume rejection even when the slot retires. A successful outcome maps to null, the JSX-renderable empty result.

Evidence

Proof Result
Directly changed unit file 3 tests passed; expanded coverage for upload failure retaining selections, held retry, same-tick duplicate click and retired rejection
UI typecheck Passed after normalizing successful outcomes to JSX null
Targeted lint, formatting, diff check Passed
Base/head production builds and strict performance Passed; startup 316,757 → 316,768 B gzip (+11 B, within 64 B build variance), one CSS request
Chat boot 1,440,550 → 1,440,572 B gzip (+22 B), under cap
Production Knip Same two unused heartbeat files on base and head; base additionally reports the existing tools/solid-lint eslint dependency; no new findings or ignores
Independent review Scoped clean at P0–P2 with full component and test context
Full UI/browser/real-Gateway CI Completed run 39784350285: 35 passed, 27 skipped; two inherited root failures described below

Production LOC: 359 → 368 (+9); test LOC: 256 → 282 (+26). Local async error signals: 1 → 0; memos: 1 → 2; Errored: 0 → 1. The action, optimistic flag, lazy preview and loading boundary remain unchanged. There are no effects, direct listeners, queries, production flushes or owner captures in the changed component.

Before / after

Synthetic Chromium captures use the real component and production CSS. Each pair is byte-identical. The failed preview and the held retry retain the accepted preview without recreating the control.

Before: preview failure
After: retained preview failure
Before: held preview retry
After: retained preview during retry

Inherited CI failures

The completed exact-head run has two failed root jobs. check-test-types-core-4 reports TS2353 in sessions-patch.test.ts at lines 500, 507 and 513 (the fixture does not accept patch). The same command fails with identical diagnostics on the exact tested main base b90f49b11fc; its chat E2E type graph passes. checks-ui-e2e (5/9) fails only Control UI Workboard routing > routes, pins, persists, and normalizes Workboard boards at line 156: the test waits for Workboard, while the page now renders All boards. That case also fails on protected main d5ce64b7; both the test and page are byte-identical on this run’s main base. The aggregate CI gate reflects these two failures. All other selected jobs passed or were skipped, including security-fast.

The scoped tests, typecheck, production build, performance checks, and synthetic captures remain valid. Two additional unchanged-head probes confirmed that disabling the resource or changing its request identity clears a previous failure while retaining the control. The hosted review concern did not reproduce. This PR uses the authorized inherited-failure landing route; the failed CI is not reported as green.

Keep admitted upload and preview failures in a scoped Solid outcome instead of a copied error signal. Preserve retry feedback, accepted previews, selections, and cancellation authority.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 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 22, 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-22T13:13:02.306176Z ce1b8cf PR opened
ℹ️ 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: ce1b8cf8b4

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

@steipete
steipete enabled auto-merge (squash) October 22, 2026 13:15
@steipete
steipete disabled auto-merge October 22, 2026 13:22
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@steipete
steipete merged commit 09e09dc into main Oct 22, 2026
117 of 128 checks passed
@steipete
steipete deleted the solid2/w-s2-recipe-audit-a-resource branch October 22, 2026 13:41
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…0630)

Keep admitted upload and preview failures in a scoped Solid outcome instead of a copied error signal. Preserve retry feedback, accepted previews, selections, and cancellation authority.
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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant