Skip to content

refactor: own session settings observations in Solid - #174139

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-session-settings
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom-components-session-settings

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Session settings still depend on a menu-wide controller host to refresh descriptor metadata and release observations when the menu closes.

User Impact

No intended user-visible change. Sidebar and chat-header settings retain their communication controls, retries, compact navigation, keyboard behavior, and current-session checks.

Why This Change Was Made

The settings observation now belongs to the Solid menu owner. Its factory preserves immediate capability observation and descriptor admission, derives communication state directly from the capability-owned observation, and releases it on close or disposal. This completes removal of the shared menu host and its broad revision plumbing after the owner-menu port.

The shared SessionDetailsController remains unchanged because the Sessions page also consumes its synchronous observation policy; its lifetime and admission policy remain outside this menu refactor. This change removes menu lifecycle machinery without duplicating that policy or changing the page lane's design. The directly coupled chat-header edit only removes the obsolete adapter dependency.

Evidence

Proof Result
Lit-to-Solid codemod dry run Lifecycle diagnostics handled in the factory; existing bridge focus settlement retained
Communication-menu tests 7/7 passed before integration (18.76 s); corrected reconnect case passed on the integrated final source (1 passed, 6 skipped; 17.06 s)
UI typecheck Passed
Targeted lint / format / diff checks Passed; existing structured-class warning in unchanged chat-header JSX
Production Knip Same failure on head and exact base: unused readRuntimePromptImageOrder in src/media/media-facts.ts
Independent review Scoped-clean; no actionable P0–P2 findings
Merge-base build + strict startup check Passed at 28f8cab70da15789b92ac2962dc6101f5a95f890
Head build + strict startup check Passed
Startup JavaScript 339,419 → 339,438 B gzip (+19 B); raw bytes 1,033,631 and 7 requests unchanged
Startup CSS 38,786 B gzip unchanged; 1 request
Full UI PR CI Requested with ci:full

The focused test file covers stale target descriptors, connection replacement with a retired pending reply, visible descriptor errors and retry, sparse communication edits, disabled reasons, compact navigation, and focus. The initial local run identified strict-read diagnostics at the imperative descriptor synchronization call; it now has the same explicit untracked snapshot semantics as the removed adapter. Broad browser and Gateway proof belongs to PR CI. Production Knip fails identically on head and base 28f8cab70da15789b92ac2962dc6101f5a95f890, solely for the unrelated media export; the saved patch was restored byte-for-byte after baseline attribution.

This is a lifecycle refactor with unchanged markup/styles, so no visual screenshots are claimed. No local E2E/parity suite or remote testing lease was used.

Touched production metric Before After
LOC 2,103 2,025
Controller-pattern references 6 0
createEffect calls 1 1
untrack calls 1 1
addEventListener calls 3 3

Production delta: −78 LOC across seven files, including deletion of the 45-line host adapter. Tests add 74 lines for two public behavior regressions; overall delta −4 lines. The remaining effect observes the external descriptor owner; its untracked admission call retains deliberate synchronous owner reads. Startup imports and lazy boundaries are unchanged.

Full CI attribution

Full ci:full run 38891413536 completed on this exact head. All UI units, six mocked E2E shards, both real-Gateway shards and security passed. Three mocked E2E shards failed:

Failed case Result and attribution
Plugin skill bundle routes: opens the full bundle from installed settings without installing it Computed lineClamp empty instead of2; plugin renderer, CSS and test are unchanged. Test never opens a session menu. Root cause undiagnosed; plainly unrelated.
Models page keeps controls separate and publishes discovery into a passive picker at1440/1100/768/640/390px (five cases) Expected6 labels, got7. The tested baseline already includes Utility Fallback Model added by#173906; owner/test inputs unchanged by this PR.
Control UI app theme artwork: shares one readable app canvas across new, chat, and settings without losing drafts Composer scrollWidth351 vs clientWidth348. Composer rendering/CSS unchanged; no session menu opens and new observations remain inactive. Root cause undiagnosed; plainly unrelated.

All seven cases passed latest scheduled main run 38887900861, which preceded the utility fallback addition. This is the campaign-authorized plainly unrelated admin route, not a matching-main-failure claim. Exact CI merge 172f86fca555435600df8460093e9f8e0e824e0d has baseline 3b2eba7836a3f83522be66cd42db1619aab4c736 and reviewed head cedf8642d75828f15d53a74814357f53de4c7aef; its real delta is only these eight intended files. Native evidence records checkout, failure names, source hashes and complete job accounting.

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

clawsweeper Bot commented Oct 16, 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.

@steipete
steipete marked this pull request as ready for review October 16, 2026 11:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-16T11:11:23.511383Z cedf864 Draft marked ready
ℹ️ 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: cedf8642d7

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

close,
);
const view = useSessionMenuEntries(host, actions, readState, revision);
const view = useSessionMenuEntries(host, actions, readState);

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.

P1 Badge Regenerate the boot manifest after removing the controller

Removing the controller from both session-menu entry paths changes the captured startup module graph, but ui/config/control-ui-boot-modules.json:2308 still lists the now-deleted ui/src/components/session-menu-controllers.ts. This leaves the generated chunking input inconsistent with the source and can produce incorrect boot-group measurements; run pnpm ui:boot-manifest:gen and commit its output before verifying the build.

AGENTS.md reference: ui/AGENTS.md:L80-L81

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Moves session-settings observation lifecycle into a Solid factory and removes the shared menu controller adapter.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The source change is focused and appears correct; runtime evidence is limited to the reported harness and startup checks, and CI failure attribution remains unresolved.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored lifecycle refactor is outside the ordinary contributor proof gate; supplied evidence covers mounted menus with mocked Gateway transport and build/startup checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No user-visible defect is claimed; session settings retain their existing behavior while legacy menu-wide lifecycle coupling is removed.
Reason: The maintainer-directed change reduces production code, completes both menu callers, and preserves the existing capability and admission owner.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful, maintainer-directed lifecycle refactor with no concrete introduced defect found; failing UI checks still need attribution.

Priority: P3
Reviewed head: cedf8642d75828f15d53a74814357f53de4c7aef

Before merge

  • Complete next step - Classify the model-layout, plugin-skills, and mobile-composer CI failures using matching base evidence or a demonstrated diff cause before landing.

Findings

None.

Tests

  • Missing end-to-end proof: The added reconnect and retry cases are not shown failing on the base, and no shipped-menu lifecycle run is supplied.
Agent review details

How this fits together

Sidebar and chat-header menus consume Gateway-backed session descriptors through the existing session capability and expose communication settings through shared menu controls.

flowchart TD
A[Sidebar and header menus] --> B[Solid settings lifetime]
B --> C[Session details owner]
C --> D[Session capability]
D --> E[Gateway descriptor reads]
D --> F[Communication controls]
F --> G[Existing session actions]
Loading

Technical review

Best possible solution:

Retain the focused Solid lifecycle cutover and existing descriptor owner, then settle the failing CI checks through the repository’s failure-attribution policy.

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

This PR describes a behavior-preserving refactor; source inspection verifies its callers and ownership boundaries, and no target code was executed.

Is this the best way to solve the issue?

The change removes the obsolete host adapter while preserving the shared synchronous descriptor policy used by the Sessions page.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session settings observations keeps the original intent (550fc18: Provide per-session communication controls using capability-owned descriptors and current-session checks.)
  • Solid menu controller adapter and revision plumbing changes intended behavior with a stated reason (4818138: Bridge legacy controller lifetimes while moving shared session presentation to Solid.)
  • Shared header and sidebar presentation keeps the original intent (5b5a18c: Use one shared menu presentation while preserving host-specific actions and authorization.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -78, Tests +74. Total -4 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 94 172 -78
Tests 1 74 0 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 168 172 -4

Review metrics

Metric Value Why it matters
Production versus test LOC Production −78 LOC; tests +74 LOC Removing the shared adapter reduces production machinery while the added tests exercise reconnect and descriptor-retry behavior through mounted menus.

Labels

Label changes:

  • add P3: This is a focused maintenance refactor with no intended user-visible behavior change or established urgent regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a focused maintenance refactor with no intended user-visible behavior change or established urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 16, 2026, 7:21 AM ET / 11:21 UTC.

@steipete
steipete merged commit bc8b7dd into main Oct 16, 2026
158 of 169 checks passed
@steipete
steipete deleted the solid2/w-idiom-components-session-settings branch October 16, 2026 11:39
@steipete

Copy link
Copy Markdown
Contributor Author

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

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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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