Skip to content

refactor(ui): use native actions for Meetings summaries and downloads - #179773

Closed
steipete wants to merge 3 commits into
mainfrom
solid2/w-s2-meetings-actions
Closed

steipete wants to merge 3 commits into
mainfrom
solid2/w-s2-meetings-actions

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Meetings summary generation and transcript downloads still encode pending presentation in manually persisted operation states. Native Solid actions now own that temporary presentation through two optimistic flags. The request owner keeps admission, live Gateway and authorization checks, publication, terminal outcomes, and explicit retry policy.

Each admitted request has a completion receipt. Cancellation aborts the request and settles the receipt immediately, so an unresolved old RPC cannot hold a replacement request's UI. Request work stays outside the action's held snapshot, and route consumers read the latest navigation so tabs remain responsive during generation and selection changes retire the old presentation. No new state owner, lifecycle effect, dependency, route boundary, tag, class, or selector is introduced.

Production lines: 619 → 668 (+49). The growth expresses the cancellation-settled receipt and separates live authority from transactional presentation. Tests add 161 lines covering replacement notes/downloads while a cancelled request remains unresolved, plus same-meeting tab navigation during pending operations.

Evidence

Replacement head: 585be2a38e57dc4aef236f341d5920bf0c6d1436. It incorporates the official-main Usage, reconnect-animation, and chat-retention fixture repairs.

Check Result
UI typecheck Passed with the default tsrs runner
Summary tests 9/9 passed on pinned Bun, including the new pending-tab regression
Download tests 2/2 passed on pinned Bun
Scoped lint / formatting Passed; two existing lifecycle-listener warnings retained
Independent review P0–P2 review found the working-tree fix correct and no additional defects; the index-only finding was resolved by staging the exact reviewed blobs
Production Knip Passed on current head; no new ignores (20m 0.9s)
Base/head build and strict performance Fresh current-head pair passed with zero strict violations
Synthetic before/after captures Three original state pairs and both fresh pending-tab states are inspected and byte-identical; fresh bounds, text, and request counts match
Controller guard / diff Passed; no baseline or allowance changes
Full PR CI Run 39673933788: all three UI unit shards, both real-Gateway shards, and eight of nine UI E2E shards pass; the sole failure is the stale sharing-heading assertion below

The pending-summary tab test failed before the fix because Transcript stayed unselected until the RPC settled. It now passes while generation remains pending and occurs only once. Current local action tests use the repository runner with one worker and --configLoader runner; the original UI-package test evidence used Node. No broad local E2E or parity suite was run.

The fresh pair uses baseline c6f1d3df983d210e1a54e4aeb8d9618ddf866d22 and current head 585be2a38e57dc4aef236f341d5920bf0c6d1436, Node 26.12.0 on the same machine, fixed build metadata, and the supported build cache disabled. Both builds and strict scans passed; the paired check reports zero violations.

Surface Base Head
Startup JS gzip / requests 325,365 B / 9 325,371 B / 9
Startup CSS gzip / requests 40,780 B / 1 40,780 B / 1
Chat boot JS gzip / requests 1,442,760 B / 27 1,442,777 B / 27
New-session boot JS gzip / requests 1,020,262 B / 22 1,020,288 B / 22
Lazy Meetings JS gzip / raw 9,185 B / 28,327 B 9,356 B / 28,973 B

Startup and both route raw bytes and all CSS bytes are unchanged. Startup/chat/new gzip deltas (+6/+17/+26 B) stay within the 64 B build-variance allowance. The 171 B lazy Meetings growth carries cancellation-settled action presentation without entering startup.

Fresh captures use synthetic “Design review” notes at 1,440 × 1,400, bind the built commit, and navigate Transcript then Summary while requests are held. Both states have byte-identical before/after full images and reader crops; bounds, text, request counts, and zero browser errors match. The baseline router restarts summary work during query navigation and drops the export-pending presentation: summary/export request counts are 2/1 after Transcript and 3/1 after returning to Summary on both sides. The capture preserves that existing route behavior; the focused unit regression separately proves once-only pending work within the mounted page instance.

The first capture fixture incorrectly assumed a single summary request through route navigation; the baseline exposed that assumption, and the corrected pair records and compares the per-frame counts. One head attempt was terminated by the native 120-second no-output watchdog before test execution; a single serialized retry used the same build, fixture, and watchdog and passed. No assertion or product timeout was weakened. Playwright capture uses Node; ordinary unit proof uses pinned Bun.

The original three paired states below remain evidence for pending operations, visible failures, and retries completing notes plus a real browser download. Those original pairs are inspected and byte-identical. The four fresh pending-tab images appended below extend proof to the current head.

Current CI follow-through

Run 39673933788 on the current head fails only Chat boot render storm > prewarms session actions after a busy cold load without building unrelated menus or losing the draft, at chat-boot-render-storm.e2e.test.ts:233. It still waits for “Message permissions,” which main #179752 renamed to “Session members.” #179730 owns the missed test update; this PR will consume it from official main.

The newly completed scheduled main run 39679539559, at 399a360f, fails this exact test name at 233:73 with the same 30-second “Message permissions” locator timeout (job 119498588185). It is the sole UI failure there; all three UI unit shards, eight other E2E shards, and both real-Gateway shards pass. The remaining CI failure therefore qualifies as inherited under the matching-name rule. CI remains failed, and native review, source, security, mergeability, and landing-order gates remain required. No merge intent is armed.

Solid Checklist

Item in touched production file Before → after
1. Conditional intrinsic handler binding 0 → 0
2. Component cleanup calls 3 → 3; separately owned lifecycle work; one primitive cleanup retained
3. Admitted archive read wrappers 3 → 3; existing request authority retained
4. Manual mutation pending presentation 2 → 0; two native actions and optimistic flags
5. Manual render-module loaders 0 → 0
6. Copied collection signals 2 → 2; reader store and draft lifecycle are separately owned work
7. Hand-written createComponent 0 → 0
8. Throw-only context wrappers 0 → 0
9. Native sibling Loading groups 0 → 0
10. createRoot/getOwner/runWithOwner 0 → 0

createEffect remains 1. createSignal remains 10, createOptimistic 0 → 2, action 0 → 2, latest 0 → 1. Render effects, untrack, direct DOM listeners/queries, and flush remain zero. Terminal success/error states remain owner facts to preserve retry suppression and visible failure outcomes; there is no parallel loading flag. No affects/refresh is added because the existing owner-fed writable reads have no native refreshable slot.

before-pending-reader

after-pending-reader

before-failed-reader

after-failed-reader

before-completed-reader

after-completed-reader

Before: Meetings pending-transcript

After: Meetings pending-transcript

Before: Meetings pending-summary-return

After: Meetings pending-summary-return

@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 🔄 Running since 2026-10-21T20:51:41.675804Z 585be2a 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: d8b249d0b5

ℹ️ 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/meetings/meetings-page.tsx Outdated
createEffect(
() => ({ snapshot: projection.read().snapshot, search: routeSearch() }),
// Navigation must retire pending actions before their held frame can commit.
() => ({ snapshot: projection.read().snapshot, search: latest(routeSearch) }),

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 Release held operations on tab-only navigation

When a summary or export is pending and routeSearch changes only the tab or a list filter, latest(routeSearch) lets this effect observe the staged URL, but neither the selector nor query branch resolves the operation's completion receipt. The action therefore continues holding the route transaction, so normal consumers such as readerTab() retain the previous route until the RPC settles—up to 120 seconds for summary generation—and clicking Transcript can appear stuck. Settle the presentation hold on every same-page route change without necessarily aborting the underlying request.

AGENTS.md reference: ui/AGENTS.md:L19-L19

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@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. clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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 maintainer review before merge.

What this changes

This PR moves Meetings summary and download progress presentation into native Solid actions with cancellation-settled completion receipts.

Example: Generate notes for “Design review,” then select another meeting before generation finishes.

  • Before: The page manually manages loading presentation around the request.
  • After: Cancellation releases the old action’s presentation immediately, while request guards reject its late result.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and has distinct behavioral regressions, but the replacement navigation repair has test-level rather than shipped-page evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected original-candidate screenshots support pending/error presentation, while the replacement navigation behavior is supported by reported in-process tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Meeting summary generation and downloads must retain clear progress, failure, retry, and navigation behavior while adopting native Solid presentation.
Reason: Maintainer authorship establishes direction, and the patch preserves existing domain ownership without adding configuration, public contracts, dependencies, or persistence.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-approved refactor preserves request ownership and addresses the earlier tab-navigation finding; no actionable introduced defect was found.

Priority: P3
Reviewed head: 585be2a38e57dc4aef236f341d5920bf0c6d1436

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Replacement-head browser evidence for pending tab navigation and replacement-operation settlement remains pending; only the summary-tab test has an explicitly reported red/green result.
Agent review details

How this fits together

The Meetings page translates route selection and Gateway capabilities into transcript reads, summary requests, browser downloads, and visible operation outcomes.

flowchart LR
  Route[Route selection] --> Page[Meetings page]
  Page --> Owner[Request admission and scope]
  Owner --> Gateway[Gateway transcript RPCs]
  Gateway --> Owner
  Owner --> Presentation[Solid action presentation]
  Presentation --> View[Meeting reader and downloads]
Loading

Technical review

Best possible solution:

Keep request authority and terminal outcomes in the existing owner while native actions own temporary progress presentation.

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

This is a refactor rather than a demonstrated current-main bug; the reported red/green tab regression concerns the earlier PR candidate, and no target code was executed during this review.

Is this the best way to solve the issue?

The change follows the existing Solid recipe: synchronous request admission remains authoritative, cancellable receipts bound presentation lifetime, and each added test protects a distinct visible failure.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Summary admission, retry suppression, and terminal outcomes keeps the original intent (7a932d9: Generate missing summaries automatically while retaining visible failures, explicit retries, stored notes, and current request authority.)
  • Solid Meetings page and operation presentation keeps the original intent (d64ce70: Port Meetings to Solid while preserving routes, selectors, Gateway contracts, and existing domain ownership.)
  • Prepared-route request admission and post-publication work keeps the original intent (1cc1efe: Move summary-generation and focus work to requesting operations while retaining live route, connection, and authorization checks.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +49, Tests +161. Total +210 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 126 77 +49
Tests 2 161 0 +161
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 287 77 +210

Labels

Label changes:

  • add P3: This is a focused internal presentation refactor with no intended change to supported Meetings workflows.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 is a focused internal presentation refactor with no intended change to supported Meetings workflows.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show pending tab navigation and replacement-operation completion through the browser page on the reviewed head.

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, 5:52 PM ET / 21:52 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #180367, merged as 7a54826 and verified on main. The replacement carries the reviewed Meetings Actions change through the current native workflow, with passing full UI/Gateway CI and preserved visual/startup proof.

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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