Skip to content

refactor(ui): inline single-caller detail requests - #177705

Merged
steipete merged 1 commit into
mainfrom
solid2/w-single-caller-requests
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-single-caller-requests

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Usage details and plugin removal each call a named request wrapper exactly once. Those wrappers add no policy or ownership: the usage-detail request owner already handles target identity, cancellation and publication, and plugin consent already owns removal admission and reconciliation.

Why This Change Was Made

Inline the three requests into their existing owners and delete the unused wrapper exports. Request methods, payloads, promise normalization and mutation callbacks stay unchanged. Production LOC across four files is 1,144 → 1,121 (−23); tests are unchanged.

Evidence

Check Result
UI types (pnpm tsgo:ui, tsrs) Pass
Usage details, usage detail identity, plugin page tests 29 pass across 3 files; pinned Bun, one worker, one run
Formatter and diff check Pass
Independent Codex P0–P2 review Scoped-clean
Scoped lint Two attempts timed out after 300s preparing unchanged plugin-SDK declarations, before lint ran; delegated to PR CI
Production Knip Pass
Solid checklist 2 effects unchanged; no controllers, render effects, untrack, direct listeners, DOM queries, flush or owner captures in the changed files

No markup, stylesheet, route or startup import change. No visual capture or local build was needed. ci:full covers the shared library consumers.

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

clawsweeper Bot commented Oct 19, 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 19, 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-19T20:22:31.801304Z 9b5914b 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR inlines three single-caller Gateway requests into the Usage and Plugins page owners and removes their forwarding wrappers.

Example: Open Usage details for the raw session key global owned by agent opus.

  • Before: Forwarding helpers request the timeline and logs with key global, agentId opus, and a 1000-entry log limit.
  • After: The detail owner sends the same requests directly and retains the same results and stale-response protection.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, source-equivalent cleanup with preserved ownership and regression coverage; broad exact-head validation remains pending.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored mechanical refactor is outside the ordinary contributor proof gate; supplied evidence reports focused tests and static checks, with no live application demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: The maintainer-authored direction removes unnecessary indirection without adding state, public APIs, configuration, or user-facing behavior.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, behavior-preserving simplification with no actionable correctness or security findings; exact-head CI remains pending.

Priority: P3
Reviewed head: 9b5914b7c136ed57792c124c3cbd77fe60fc9fa3

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped-entry-point run is supplied for Usage details or confirmed plugin removal; the ordinary contributor proof gate is inapplicable to this maintainer-authored refactor.
Agent review details

How this fits together

Control UI page owners translate session selection and confirmed plugin removal into Gateway RPCs, then publish results through existing request and mutation lifecycle owners.

flowchart TD
  A[Usage selection] --> B[Usage detail owner]
  B --> C[Gateway client]
  D[Plugin removal confirmation] --> E[Plugin consent owner]
  E --> C
  C --> F[Gateway RPC handlers]
  F --> G[Page results and reconciliation]
Loading

Technical review

Best possible solution:

Retain the direct requests inside the existing owners and land the focused cleanup once required CI passes.

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

No product bug is claimed; source comparison verifies the redundant wrappers and equivalent replacement expressions.

Is this the best way to solve the issue?

Directly inlining these policy-free, single-caller functions is the smallest complete cleanup and preserves the existing lifecycle owners.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Usage detail requests and selected-session identity keeps the original intent (fix(usage): preserve the selected session owner in details #143457: Carry the selected owner through raw-key detail requests while retaining qualified-key routing and preventing stale publication; the later Solid cutover preserved this contract.)
  • Plugin uninstall request and settlement keeps the original intent (feat: add Control UI plugin management #103176: Expose plugin removal through the Control UI; subsequent lifecycle repairs retained selection during removal and reconciled warnings after settlement.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction diff removes three forwarding functions and inserts their identical request expressions into existing callers; methods, payloads, null normalization, and mutation callbacks are preserved. (ui/src/pages/usage/usage-details.ts:165, 9b5914b7c136)
  • Existing owners retain policy: Usage retains target identity and request publication checks; plugin consent still checks admission after confirmation and before queued dispatch, using the captured Gateway client. (ui/src/pages/plugins/plugins-consent.ts:158, 9b5914b7c136)
  • Current main comparison: The four affected files on fetched main match the introduced base, so this cleanup remains distinct work rather than an already implemented change. (143d60d496c5)
  • Preserved regression contracts: Existing tests cover stale Usage completion, changed session identity, confirmed removal, and rejection after Gateway replacement; these tests are unchanged and were inspected rather than executed. (ui/src/pages/plugins/plugins-page.test.ts:721, 9b5914b7c136)
  • Prior removal reconciliation: fix: prevent false errors during successful plugin uninstall #157728 explains why uninstall must retain selection until settlement and preserve late warnings; this PR leaves that reconciliation intact. (ui/src/pages/plugins/plugins-page.ts:678, e4ab2d382cb9)
  • Exact-head validation state: The CI gate is pending, with lint, test-type, and browser lanes queued; no completed failing product check was observed, and GitHub reports the PR mergeable. (9b5914b7c136)

Likely related people:

  • Peter Steinberger: Raw commit 96a0e72 adds ui/src/pages/usage/detail-controller.ts:27 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 96a0e72498bd; files: ui/src/pages/usage/detail-controller.ts)
  • Patrick Erichsen: Raw commit e4ab2d3 adds ui/src/pages/plugins/plugins-page.ts:365 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e4ab2d382cb9; files: ui/src/pages/plugins/plugins-page.ts)

PR surface

Source -23. Total -23 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 11 34 -23
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 11 34 -23

Labels

Label changes:

  • add P3: This removes redundant internal forwarding without changing supported user behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This removes redundant internal forwarding without changing supported user behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 19, 2026, 4:38 PM ET / 20:38 UTC.

@steipete
steipete enabled auto-merge (squash) October 19, 2026 21:00
@steipete
steipete merged commit 5452830 into main Oct 19, 2026
107 of 108 checks passed
@steipete
steipete deleted the solid2/w-single-caller-requests branch October 19, 2026 21:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Oct 19, 2026
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...
vincentkoc added a commit that referenced this pull request Oct 19, 2026
#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
openclaw#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (openclaw#177614)
  fix(release): tag restart plugin cohorts consistently (openclaw#177725)
  refactor(ui): inline single-caller detail requests (openclaw#177705)
  chore(i18n): refresh native locales (openclaw#177721)
  refactor(codex): drop unread private runtime reports (openclaw#177689)
  refactor(ui): consolidate static artwork registries (openclaw#177692)
  refactor(ui): derive settings schema analysis in the view (openclaw#177624)
  refactor(media): consolidate capability defaults and compression grids (openclaw#177665)
  refactor(auth): bind OAuth managers to native provider operations (openclaw#177676)
  refactor(ui): remove redundant component rendering layers (openclaw#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082)
  fix(agents): report failed secret input prompt delivery (openclaw#177688)
  refactor(ui): share chat message render contracts (openclaw#177668)
  fix(ui): settle model status after overlapping publication (openclaw#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670)
  refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635)
  refactor: fold private operation helpers into their callers (openclaw#177655)
  refactor(ui): remove unused chat leaf element adapters (openclaw#177582)
  perf(talk): use published authority for foreign voice writes (openclaw#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant