Skip to content

fix(start-os): derive connection state from live data and rework registry availability UI - #4756

Merged
MattDHill merged 12 commits into
masterfrom
fix/registry-warning-while-connecting
Nov 17, 2026
Merged

MattDHill merged 12 commits into
masterfrom
fix/registry-warning-while-connecting

Conversation

@MattDHill

@MattDHill MattDHill commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Connection state

The header tells apart a client with no network, a client that can't reach the server, and a server whose data hasn't gone live yet. Every consumer of ConnectionService treats data as live only when it is.

Cause. ConnectionService combined browser online status with StateService's replayed state. That stays running through a server outage, because its startWith sits outside the retriggered pipeline and failed probes emit nothing. While the browser stayed online, the header kept saying Connected, service pages kept showing service status, and metrics and logs retried without waiting for the server.

Change.

  • PatchDbSource owns PATCH_LIVE: true once a live dump is applied, false on stream loss, logout or disposal.
  • ConnectionService requires it.
  • StateService exposes reachable$: null until a state probe settles, false after one fails.
  • The header shows No Internet, then Shutting down / Restarting from the last known statusInfo, then Can't reach server (new key 1300, red) or Connecting, then Connected.

Registry status is always the last known observation, through a refresh and while the server is unreachable. The restored-registry warnings that started this PR came from the localStorage snapshot freezing once the database outgrew the quota, which #4752 fixed.

Registry availability UI

Updates and installs keep working while a registry is unreachable, so registry availability is now informational where you browse and a warning where you manage registries:

  • Badges. The Updates tab keeps its count and has no warning. System and its Registries item carry the warning. In desktop navigation an item's warning replaces its count. On the mobile tab bar, the System warning sits in the badge's position and replaces the count, because Taiga's tab badge accepts only a number. Clock-sync failure is now a Metrics warning rather than a count.
  • Notice. The Updates sidebar icon, the Updates table-header status, the marketplace sidebar status and the Updates "Request failed" banner are replaced by RegistryNotice, an info notification above the content of Updates and the Marketplace. It reads "Listings may be out of date" / "StartOS can't reach this registry right now.", with Retry (the existing registry refresh) and a Manage Registries link. It follows Taiga's notification action pattern: a plain tuiButton and a tuiLink. The strings are new keys 1301 and 1302 in all five locales; the unused 'Request failed' key is removed.
  • Unreachable chip. It now uses the warning colour wherever registry status shows: the Registries column, and the shared status component the brochure also reads.
  • Notice scope. The marketplace notice renders under the shared component's URL-matched current() registry. A previous registry's cached error therefore never shows above another registry's Connect screen or above a registry still awaiting its first sync.
  • Marketplace selection. Connect and Invalid URL render inside the marketplace content, centered in it, keeping the sidebar's registry selector and their primary buttons. The content area is a size container and the blocked view fills it with 100cqb, because tui-scrollbar's internal wrapper is only as tall as its content. A remembered registry the server no longer saves falls back to the default and is forgotten, instead of forcing Connect. The fallback waits for the saved list inside the route's switchMap, so it yields to an explicit selection and to page destruction. It checks the first saved list it receives; if live data later removes that registry, the Connect screen (which keeps the selector) applies.
  • Registry selector. On the Connect and Invalid URL screens, the selector identifies an unsaved selection by its own URL rather than the replayed catalog's name. Reselecting the active registry reasserts its query parameter, so choosing the last valid registry leaves Invalid URL without reconnecting.
  • Updates in a narrow window. Updates picks its default registry from TUI_BREAKPOINT, the signal its layout uses, instead of the user-agent WA_IS_MOBILE. Previously a narrow desktop window opened on the first registry, and Back could not leave it.
  • Descriptions. Start9's registries no longer show a description banner. Custom registries keep theirs, which the registry-hosting guide tells operators to use for contact and key-verification details. Every beta, alpha and custom-registry warning stays.
  • Mobile. Marketplace content keeps a 20rem minimum and scrolls horizontally when the sidebar is open. The notice matches the cards' margins, and the search field regains its spacing. These styles live in the shared marketplace component, so the brochure gets them too.

patch-changed-metrics-clock-warning.md and patch-fixed-updates-narrow-window.md cover the Metrics indicator and the narrow-window fix. patch-fixed-server-connection-status.md covers the shipped header and service-page behaviour. The pending patch-changed-registry-sync.md is revised to describe the new registry indicators. marketplace.md now says a custom registry's description shows above its services.

Merged with master after #4755. Its resumable watchDb$ (cursor and epoch) runs inside watchLive$, which still raises PATCH_LIVE on the first applied update: a dump, or a replay closed by the current revision.

Verification

  • npm run check:ui: 281/281 pass. a pending remembered-registry fallback yields to an explicit route selection and destroying the marketplace page cancels its pending remembered-registry fallback fail against the previous route code. These fail against the previous behaviour:
    • header status separates offline, unreachable server, connecting, restarting and live, against both the old ConnectionService and the old ordering.
    • a remembered registry the server no longer saves falls back to the default.
  • registry errors warn on System and Registries while the Updates count stays pins the badge rule.
  • check:marketplace: an unsaved selection cannot inherit the previous catalog identity and reselecting the active registry repairs its route without reconnecting fail against the previous selector.
  • npm run check:rpc-clients: StartOS reports server reachability only from settled state probes and the os registry status shows the last known observation … cases pass. One test fails, Brochure reports malformed registry URLs and can load the next selection. It fails identically on master and is unrelated; it stops the npm run check chain, so every later check was run individually.
  • check:i18n (OS, tunnel, wrt), check:shared, check:marketplace, check:setup, check:tunnel, check:brochure and check:wrt pass. changelog.mjs check-version projects/start-os passes, and Prettier is clean.
  • I captured Connect and Invalid URL (desktop and mobile) and the normal listing with headless Chromium. They are centered, and the listing still scrolls vertically and, with the mobile sidebar open, horizontally.
  • I captured the mobile tab bar, the More sheet, the mobile System page and the desktop nav with headless Chromium against the mock UI.
  • I reviewed the redesign in the mock UI (ng serve, desktop and mobile widths) with the developer, including the unreachable Community registry, the Connect screen and the mobile sidebar.

🤖 Generated with Claude Code

After a page refresh the UI replays the last PatchDB snapshot from
IndexedDB until the websocket connects, so a registry that was in error
when last seen raised warnings on the Updates tab and its registry entry
before the server could confirm anything. While disconnected, every
cached registry status now reads as connecting; the live status takes
over once the connection is up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Requesting changes on 4e4f458d336910b23b99011b18917a644327de0a for two correctness issues in marketplace.service.ts:54–70:

  1. [P2] Server liveness does not establish that registry observations are live. ConnectionService combines browser online status with Boolean(StateService). The separate startup state RPC can return running before db.subscribe delivers its initial dump, including before MarketplaceService is instantiated. The connected ? cache branch then exposes the IndexedDB snapshot's old error again, so the warning can still flash during refresh. The new test's independent connection boolean does not cover this ordering.

  2. [P2] Connectivity changes now invalidate exact/source package queries. The disconnected projection creates a new object for every registry. watchRegistry$ uses reference equality, and registryReady accepts a connecting entry with cached packages, so losing connectivity restarts fetchPackage$ even though its catalog did not change. That introduces a request precisely while offline; its transport error can terminate an otherwise working package-query subscription. Reconnection also causes another request without a catalog change.

The proposal moves the neutralization to the browser-restored snapshot emitted by PatchDbSource, retaining package listings and metadata. The first live dump supplies the actual status, whether successful or failed. MarketplaceService keeps consuming the ordinary cache without connectivity-driven invalidation. This deliberately scopes the masking to restored observations; later connection loss retains the previously observed live state as before. The availability contract is recorded at that source boundary.

Proposed coverage exercises the production source and real PatchDB with startup state already running and the initial dump delayed, then checks both live success and live failure. It also covers unchanged exact queries across connection loss/restoration. These proposed tests are unexecuted; no builds, tests, typechecks, or lint were run during review. The reviewed head merges cleanly with current master. CI's automated tests, formatting/lockfiles, generated artifacts, and three binary builds are still running.

Proposed changes: 4e4f458...proposal/4756

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

… at display

Connectivity alone does not prove registry observations are live: the
startup state RPC can report running before db.subscribe delivers its
first dump, which re-exposed the restored snapshot's stale error. Mask
the IndexedDB-restored registryCache in PatchDbSource instead, so the
first live dump supplies the real status (from review proposal/4756).

A mid-session loss of the server connection still reads as connecting,
but only in registries$ and currentRegistry$, downstream of
watchRegistry$. The cache entries feeding package queries and the
marketplace$ catalog behind update refinement no longer change with
connectivity, so a connection change neither refetches an unchanged
package query nor re-runs refinement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white added a commit that referenced this pull request Nov 16, 2026
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The two earlier findings are addressed: restoring the snapshot no longer depends on startup-RPC ordering, and display masking no longer invalidates package queries or update refinement.

[P2] Actual mid-session server loss does not activate the new masking (projects/start-os/web/ui/src/app/services/marketplace.service.ts:54). ConnectionService remains true when the browser stays online and the database stream fails after startup reached running. PatchDbSource requests another state probe, but StateService does not reset its replayed value: its initial startWith(null) is outside the retriggered pipeline, and failed probes return EMPTY. Consequently, a previously failed registry continues showing its warning throughout a server outage and reconnection attempts. The new test manually sets the connection boolean false, bypassing this production behavior.

The updated proposal gives PatchDbSource ownership of an applied-live-dump availability flag. It starts false, becomes true after the dump reaches PatchDB, and clears on stream loss, logout, or disposal. Marketplace combines that flag with the existing reachability stream, retaining immediate browser-offline masking and the separation between display status and catalog/query invalidation. With the added mid-session scope, this flag covers both bootstrap and recovery; the one-shot restored-snapshot rewrite becomes unnecessary. Cached observations remain intact, and unconfirmed remains the single display-normalization implementation. The availability contract is recorded at the source owner. Existing retry timing and state-probe behavior are unchanged.

The proposed regressions cover stream failure while startup state remains running, delayed replacement dumps, confirmation after application, logout/relogin, and shutdown, plus display masking without catalog emissions or extra package queries. They are unexecuted proposals; no builds, tests, typechecks, or lint were run during review. The reviewed head merges cleanly with current master. CI's automated tests, generated artifacts, and binary builds remain pending.

Proposed changes: 8ef0c15...proposal/4756

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

…tion

ConnectionService combined browser online status with StateService's
replayed state, which stays `running` through a server outage: its
startWith sits outside the retriggered pipeline and failed probes emit
nothing. Every consumer therefore treated restored or last-known data as
live, so the header kept saying Connected, service pages kept showing
stale status, registry warnings resurfaced, and metrics/logs retried
without waiting for the server.

PatchDbSource now owns PATCH_LIVE, true once a live dump is applied and
false on stream loss, logout or disposal (from review proposal/4756).
ConnectionService requires it, which also replaces the one-shot rewrite
of the restored registry snapshot. StateService exposes reachable$, false
after a state probe fails, so the header distinguishes No Internet,
Unreachable and Connecting, with Restarting and Shutting down taking
precedence over a dropped connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill MattDHill changed the title fix(start-os): hide registry warnings until the server is connected fix(start-os): report connection and registry state only from live data Nov 16, 2026
The restored-snapshot registry errors that started this PR came from the
localStorage snapshot that stopped saving once the database outgrew the
quota, fixed by #4752. With an accurate snapshot, the last known
registry status is the right thing to show, during a refresh and while
the server is unreachable alike, so MarketplaceService no longer masks
it. Tests now assert that the last known status survives restore,
stream loss and disconnection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill MattDHill changed the title fix(start-os): report connection and registry state only from live data fix(start-os): derive connection state from the live database observation Nov 16, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at a81d23eb4a523546c06e54d59c49a48c97e2febd. The head merges cleanly with master.

This now fixes server-data availability, not registry-warning suppression. MarketplaceService matches the base: registry status and errors deliberately remain the last known observation through refreshes and server outages. Warnings therefore remain visible while disconnected. This supersedes the earlier masking proposal and avoids connectivity-driven package refetches or update refinement.

The head adopts the cross-review's source-owned live marker and requires it centrally through ConnectionService, the shared availability stream. A successful startup probe cannot substitute for an applied database dump. Stream loss, logout and disposal clear availability; recovery waits for another applied dump. Service-status displays and metrics/log recovery use that same contract, without changing stored snapshots or API schemas.

The header distinguishes No Internet, a failed server probe (Unreachable), and connection establishment (Connecting). It deliberately retains last-known Restarting/Shutting down notices during reconnection; No Internet overrides both. Existing retry intervals and state-probe timeouts are unchanged.

Implementation diff: +44 / −9 lines in 4 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: The author reports 278/278 UI tests passing, passing source-lifecycle/last-known-status and probe-result cases, and the remaining scoped typecheck/i18n/format/version checks. The full RPC-client check still has the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I built and ran this head's mock UI in Chromium solely for the screenshots, covering snapshot restoration, controlled database-stream loss, header states and service status becoming Unknown. No tests were rerun during review, and no live StartOS server or registry was exercised. CI formatting, lockfile, changelog/version and license checks have passed; automated tests, generated artifacts and binary builds remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

The selected registry's table header already shows its Unreachable
status, with the failure details and a retry, under the same condition
the banner used. Remove the banner, the requestErrors$ input that fed
only it, and its now-unused 'Request failed' translation key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at 290e46a8facbb3602b9e440244878311d349bd32. The head merges cleanly with master.

Server-data availability now requires an applied live database dump, rather than a replayed startup state. The cross-review's source-owned live marker feeds the existing ConnectionService, the shared availability stream: loss, logout and disposal clear it, and recovery waits for a replacement dump. Service-status displays and metrics/log recovery share this contract. Stored snapshots, API schemas and retry intervals are unchanged.

The header distinguishes No Internet, Connecting and Unreachable. Last-known Restarting/Shutting down notices remain visible during reconnection, with No Internet taking precedence. Registry status separately remains the last known observation, including warnings, through refreshes and outages.

The Updates page now uses its existing Unreachable badge, failure-details dialog and retry instead of a duplicate “Request failed” banner. The page-only error subscription and the unused translation in all five dictionaries are removed; the navigation warning still uses its existing service-owned error stream.

Implementation diff: +46 / −35 lines in 10 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: The author records 278/278 UI tests passing, passing source-lifecycle/last-known-status and probe-result cases, and the remaining scoped typecheck/i18n/format/version checks. The full RPC-client check retains the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I built and ran this head's mock UI in Chromium solely to refresh the affected screenshots, including the retained failure-details dialog, restored snapshot and server outage. Unchanged service/header captures are reused. No tests were rerun during review, and no live StartOS server or registry was exercised. CI Prettier, changelog/version and license checks have passed; automated tests, generated artifacts, formatting/lockfiles and binary builds remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

…er state

Registry Unreachable chips were red while the icon flagging the same
registry is yellow, so the icon read as pointing at the yellow
untrusted-signature note in package rows. registryStates.error now uses
the warning appearance and color, which every registry status display
(Updates header, marketplace chip and collapsed dot, Registries column,
brochure) reads.

The header's unreachable-server state becomes "Can't reach server", so
the same word no longer appears in red for the server and in yellow for
a registry. It stays red, alongside No Internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at ef0385beec60d4b4f8028ce53a0369e49ddf5f68. The head merges cleanly with master.

Server-data availability requires an applied live database dump, not a replayed startup state. The cross-review's source-owned live marker feeds the shared ConnectionService; loss, logout and disposal clear it, and recovery waits for a replacement dump. Service-status displays and metrics/log recovery share this contract. Stored snapshots, API schemas and retry intervals are unchanged.

The header distinguishes No Internet, Connecting and “Can't reach server,” with the new message translated in all five locales. Last-known Restarting/Shutting down notices retain precedence during reconnection; No Internet overrides both. Registry status separately remains the last known observation through refreshes and outages.

Registry Unreachable chips and collapsed dots now use the shared warning appearance/color mapping, matching the warning icons without changing their underlying error status. The Updates page retains the existing failure-details dialog and retry while removing its redundant “Request failed” banner and unused translations. Brochure stores do not populate registry-status fields, so the shared styling change does not add a brochure outage indicator or alter its fetch/error flow.

Implementation diff: +53 / −37 lines in 11 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification: The author records 278/278 UI tests passing, passing source-lifecycle/last-known-status and probe-result cases, and scoped typecheck/i18n/format/version checks. The full RPC-client check retains the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I built and ran this head's mock UI in Chromium solely for revised screenshots of Updates, expanded/collapsed marketplace status, Registries and the renamed server-outage state. Unchanged planned-operation/offline header captures are reused. No tests were rerun during review; no live StartOS server or registry was exercised. CI formatting, lockfile, changelog/version and license checks have passed; automated tests, generated artifacts and binary builds remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

… notice

Updates and installs keep working while a registry is unreachable, so
the warning belongs where registries are managed: System and its
Registries item now carry it, while the Updates tab keeps its count with
no warning. The Updates sidebar icon, the Updates table-header status
and the marketplace sidebar status give way to an informational
RegistryNotice above the content of Updates and the Marketplace: its
listings may be out of date, with Retry and Manage Registries, following
Taiga's notification action pattern.

The Marketplace Connect and invalid-URL screens now render inside the
marketplace content, keeping the sidebar's registry selector, and a
remembered registry the server no longer saves falls back to the default
instead of forcing Connect. Start9's registries no longer show their
description banner; custom registries keep theirs, which operators use
for contact and key-verification details, and every beta, alpha and
custom-registry warning stays. On mobile the marketplace content keeps a
20rem minimum and scrolls horizontally, the notice matches the cards'
margins, and the search field regains its spacing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill MattDHill changed the title fix(start-os): derive connection state from the live database observation fix(start-os): derive connection state from live data and rework registry availability UI Nov 17, 2026
helix-white added a commit that referenced this pull request Nov 17, 2026
Proposed changes for #4756. Reuse the shared marketplace's selected-catalog guard for notices, cancel automatic fallback with its route, and surface System warnings in desktop and mobile navigation. Proposed lifecycle regressions are unexecuted; the implementing author verifies adoption.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed 569438cf5c589c7600c27e2572765b636bf0a5a0 against the last approved head. The live-database availability fix and deliberate last-known registry-status policy remain sound. Requesting changes for three regressions in the new UI:

  1. [P2] The Marketplace notice can describe—and retry—the wrong registry. In projects/start-os/web/ui/src/app/routes/portal/routes/marketplace/marketplace.component.ts:69–70, registry() replays the previous store when the next URL has no cache entry. After browsing failed registry A, navigating to unsaved B shows A's error above B's Connect screen, but Retry refreshes B. A newly saved B awaiting its first cache entry is similarly called unreachable without that observation; an invalid URL can retain A's notice too. The proposal moves notice projection under the shared marketplace's existing URL-matched current() guard and unblocked-content branch. This reuses the same selection owner as the catalog instead of adding another matching predicate.

  2. [P2] The automatic fallback survives the route that requested it. selectSaved() awaits firstValueFrom(registries$) outside the route subscription's teardown. A fresh authenticated browser can enter the portal before its first database dump. If the user supplies an explicit registry URL or leaves Marketplace while that dump is pending, the old continuation still clears remembered storage and navigates when data arrives. The proposal keeps the wait inside the route's switchMap and places destruction teardown downstream. Two unexecuted regressions exercise delayed initial dumps with real PatchDB, superseding selection and page destruction.

  3. [P2] System's new registry warning is absent on mobile and masked by desktop update counts. components/tabs.component.ts reads only getCount('system'); System is also excluded from its More menu, so it never consumes the new warning. In components/header/navigation.component.ts, the count branch wins whenever an OS update is available. Removing the Updates warning therefore leaves these supported navigation states without the promised registry warning. The proposal consumes the existing System warning on the mobile tab and prioritizes warnings in desktop navigation. Updates retains its count. Existing backup warnings receive the same visibility rather than introducing a registry-specific exception; the badge contract is recorded at BadgeService.

Unresolved scope: the fallback validates the first saved-registry observation, which can be browser-restored. If that snapshot still saves A but the subsequent live dump removes it, the already-added ?registry=A follows the Connect flow rather than falling back. The proposal preserves this behavior. Please settle whether the fallback guarantee includes that restored-to-live transition or intentionally covers only the initial saved list.

Proposed changes: 569438c...proposal/4756

The reviewed head merges cleanly with master. This was a code-only review: no builds, tests, typechecks, lint or runtime captures were run, and the proposed tests are unexecuted. The implementing author verifies adopted changes. CI formatting/lockfiles, Prettier, changelog/version, license and SDK/runtime/script checks have passed; other tests, generated artifacts and binary builds remain pending. Superseded full-page screenshots have been retired; the unchanged header-state montage remains.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

helix-white commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Resolved: e68d97880702b686f522544f1f9d928d25be9cfe integrates the base and now merges cleanly with master. The earlier base-integration blocker below is cleared.

@MattDHill Confirmed a real base-integration conflict: PR head 569438cf5c589c7600c27e2572765b636bf0a5a0 versus current master 362bbd1f561f4b9ff352debdfcc8f7da3ad337cc (#4755, browser-revision database resumption). git merge-tree --write-tree reports conflicts in:

  • projects/start-os/web/ui/src/app/services/patch-db/patch-db-source.ts
  • shared-libs/ts-modules/scripts/patch-db-source.test.mjs

The integration needs to retain both the cursor/epoch resumption path and this PR's source-owned live-availability/loss handling. Please merge the current base in the author branch and re-request review after resolving it alongside the outstanding review findings.

This is the reviewer session, with no implementation takeover; I have not changed or pushed the PR branch. The automatic branch-repair instruction was misrouted here (tracked in Start9Labs/helix-startos-internal#71). No builds or tests were run.

MattDHill and others added 2 commits November 16, 2026 18:03
… nav warnings

From review proposal/4756:
- The marketplace notice renders under the shared component's
  URL-matched current() registry, so a previous registry's cached error
  no longer appears above another registry's Connect screen or a newly
  added registry awaiting its first sync.
- The remembered-registry fallback waits for the saved list inside the
  route's switchMap with destruction teardown downstream, so a pending
  fallback yields to an explicit selection or page destruction.
- Desktop navigation shows an item's warning in place of its count.

The mobile System tab shows the System warning in the badge's position,
replacing its count, since Taiga's tab badge accepts only a number.
Clock-sync failure becomes a Metrics warning rather than a count. Updates
picks its default registry from TUI_BREAKPOINT, the signal its layout
uses, instead of the user-agent WA_IS_MOBILE: in a narrow desktop window
it opened on the first registry and Back could not leave it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g-while-connecting

Resolve PatchDbSource against #4755: its resumable watchDb$ (cursor and
epoch) runs inside watchLive$, which still raises PATCH_LIVE on the
first applied update, a dump or a replay closed by the current revision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white added a commit that referenced this pull request Nov 17, 2026
Proposed changes for #4756. Reuse the selected registry identity for the button and custom row, and let reselecting the active registry repair a malformed query without refetching. Preserve task-wrapped validation and selection sequencing. Proposed tests are unexecuted; the author verifies adopted changes.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed e68d97880702b686f522544f1f9d928d25be9cfe. All three previous findings are addressed: notices use the selected catalog guard, fallback waits are cancelled with navigation/destruction, and System warnings reach desktop/mobile navigation. The base integration preserves cursor/epoch resumption and live availability after the initial applied dump or acknowledged replay. The clarified first-observation fallback policy is accepted: later live removal deliberately shows Connect.

Requesting changes for two remaining regressions exposed by keeping the selector mounted on Connect and Invalid URL views:

  1. [P2] Selecting the last valid registry cannot recover an Invalid URL view. After browsing saved A, open an invalid registry URL. The page correctly retains A as the last valid currentRegistryUrl$, but MarketplaceRegistrySelectComponent.connect() immediately returns when A is chosen. It never repairs the registry query parameter, so the Invalid URL view remains. Before this PR, the selector was not rendered in that state. Reselection must still navigate to the valid URL, without reconnecting/refetching an unchanged catalog.

  2. [P2] The selector can identify unsaved B as the previously viewed registry A. In shared-libs/ts-modules/marketplace/src/components/registry-select.component.ts:44, an unsaved selection has no saved data().current, so the label falls back to fetched().info.name. The replayed catalog can still be A. The newly visible selector therefore shows A's name beside B's Connect screen and URL. The notice guard fixes the notice, not this independent identity path.

The proposal reuses the existing unsaved registry identity for both the button and dropdown row, removing the redundant catalog subscription; both application pages already observe their catalogs. Reselection reasserts the query URL through the same navigation primitive used for ordinary changes. Validation stays inside the existing task wrapper, and unchanged selection does not reconnect. It records these contracts at the selector and reuses the existing Loading translation.

Proposed changes: e68d978...proposal/4756

Proposed class-level regressions cover stale identity, same-registry route repair and ordinary selection sequencing, retaining the existing invalid-input case. They are unexecuted. No builds, tests, typechecks, lint or runtime captures were run during this review. The reviewed head merges cleanly with master. Current formatting/version/license and several test/build checks pass; start-core tests, generated artifacts and remaining binaries are still pending. The author verifies adopted changes. The superseded header-navigation montage has been retired.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

…valid URL

From review proposal/4756. With the selector now mounted beside the
Connect and Invalid URL screens:
- An unsaved selection is identified by its own URL in both the button
  and the dropdown row, instead of the replayed catalog's name, which
  could still be the previously viewed registry. The redundant
  currentRegistry$ subscription goes.
- Reselecting the active registry reasserts its registry query
  parameter, so choosing the last valid registry leaves an Invalid URL
  view, without reconnecting or refetching the unchanged catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at 23899674c0ea19dfe92974d849ef89383c6a0e56. The head merges cleanly with current master, and the outstanding selector findings are addressed.

Server availability. A replayed startup running state no longer establishes a live connection. The cross-review's source-owned live marker feeds the existing ConnectionService after the database consumer applies the subscription's initial update: a dump, or the replay acknowledged at the current revision after #4755. Stream loss, logout and disposal clear it. Service status becomes Unknown, and metrics/log recovery shares that availability contract. Existing stored snapshots, API schemas and retry intervals are unchanged.

The header distinguishes No Internet, Connecting and “Can't reach server.” Last-known Restarting/Shutting down notices retain precedence while reconnecting; No Internet overrides both. Registry status independently remains the last known observation through restoration and server outages. It is deliberately not masked by client connectivity, and connectivity changes do not invalidate exact package queries or update refinement.

Registry UI. Marketplace and Updates show “Listings may be out of date” with the existing refresh action and a Manage Registries link. Cached listings, update counts and available actions remain visible; the notice does not guarantee that a subsequent download can reach its asset source. An unavailable empty catalog retains loading placeholders. Registry errors warn on System and Registries instead of Updates. Desktop warnings replace counts, and mobile System places its warning in the numeric badge's position. Clock-sync failure becomes a Metrics warning, visible in desktop navigation and the mobile More sheet rather than contributing to numeric counts. Registry-management Unreachable chips use the shared warning appearance and retain failure details.

Selection and layout. The head adopts the cross-review's URL-scoped notice, cancellable fallback and selector corrections. Connect and Invalid URL retain the selector; unsaved selections identify their own URL, and reselecting the last valid registry repairs an invalid query without reconnecting. A removed remembered selection falls back to the default using the first saved list, which may be restored. A later live removal intentionally shows Connect rather than changing the selection again. Connecting an unsaved registry still requires its explicit trust-bearing action.

The shared marketplace suppresses description banners for known Start9 registries while retaining custom descriptions and beta/alpha/custom warnings. Its mobile content has a chosen 20rem minimum, requiring horizontal scrolling with an expanded sidebar. These shared changes also reach the brochure without changing its registry fetch/error workflow. Updates now uses the layout breakpoint rather than device detection, fixing initial selection and Back in narrow desktop windows.

Implementation diff: +374 / −281 lines in 19 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification. The author records 281/281 UI tests, passing scoped checks, and negative regressions for the previous fallback and selector behavior. The full RPC-client check retains the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I built and ran this head's mock development UI in Chromium solely for the attached desktop/narrow-window screenshots. The final capture run completed with no page errors, covering cached browsing, notices, selector recovery, navigation warnings, restored state and server-loss/header states. Capture-locator and stale build-cache setup failures were corrected before that final run. No tests were rerun during review; no live StartOS server, registry or installation was exercised. Current CI tests, formatting/lockfiles, changelog/version, licenses and tunnel package builds have passed; OS base binaries, the StartWRT binary and Generated Bindings & MCP Catalog remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

helix-white commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Retained mock-UI captures from 23899674c0ea19dfe92974d849ef89383c6a0e56, still representative of 4039d07b076676d16d27607ee328f51626f4c354. Superseded Connect/Invalid URL images are removed and replaced in the newer screenshot comment. These use controlled fixture data at desktop and 430px widths; no live server or registry is represented.

Updates retains cached rows and green counts beneath the informational registry notice.

Marketplace keeps cached service tiles beneath the registry notice, without a known-registry description banner.

A narrow desktop window opens Updates on the registry list.

Narrow-window Updates detail retains Back, the notice, and cached update rows.

System and Registries show their warnings; the System tab warning replaces its numeric badge.

The More sheet shows the green Updates count and the Metrics clock-sync warning.

The expanded narrow-window Marketplace sidebar retains the 20rem content minimum.

Registry management uses the shared warning-colored Unreachable status and retry.

Controlled stream loss shows Can't reach server and Unknown service status.

Current header states, top to bottom: Restarting, Shutting down, and No Internet.

A restored snapshot retains its last-known registry notice while the header waits in Connecting.

Inside the marketplace's scroll area the block status sat at the top:
tui-scrollbar's internal content wrapper is only as tall as its content,
so the block status's full-height centering had nothing to fill. The
content area is now a size container and the blocked view fills it with
100cqb. Its buttons also inherited the marketplace's flat-grayscale
button defaults; they are explicitly primary again, as they were as
full-page screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at e15cf9aee8ffa2bbd804f3aaaf34d163da99adbb. The head merges cleanly with current master. Since the previous approval, only the blocked-view layout and primary-button presentation changed; the functional findings remain addressed.

Server availability. A replayed startup running state no longer establishes a live connection. The cross-review's source-owned live marker feeds the existing ConnectionService after the database consumer applies the subscription's initial update: a dump, or the replay acknowledged at the current revision after #4755. Stream loss, logout and disposal clear it. Service status becomes Unknown, and metrics/log recovery shares that availability contract. Existing stored snapshots, API schemas and retry intervals are unchanged.

The header distinguishes No Internet, Connecting and “Can't reach server.” Last-known Restarting/Shutting down notices retain precedence while reconnecting; No Internet overrides both. Registry status independently remains the last known observation through restoration and server outages. It is deliberately not masked by client connectivity, and connectivity changes do not invalidate exact package queries or update refinement.

Registry UI. Marketplace and Updates show “Listings may be out of date” with the existing refresh action and a Manage Registries link. Cached listings, update counts and available actions remain visible; the notice does not guarantee that a subsequent download can reach its asset source. An unavailable empty catalog retains loading placeholders. Registry errors warn on System and Registries instead of Updates. Desktop warnings replace counts, and mobile System places its warning in the numeric badge's position. Clock-sync failure becomes a Metrics warning, visible in desktop navigation and the mobile More sheet rather than contributing to numeric counts. Registry-management Unreachable chips use the shared warning appearance and retain failure details.

Selection and layout. The head adopts the cross-review's URL-scoped notice, cancellable fallback and selector corrections. Connect and Invalid URL are centered in the content pane with large primary actions, retaining the selector. A size container supplies the blocked view's height through 100cqb, avoiding dependence on the scrollbar's content-height wrapper. Normal listings keep their existing flow. Unsaved selections identify their own URL, and reselecting the last valid registry repairs an invalid query without reconnecting. A removed remembered selection falls back to the default using the first saved list, which may be restored. A later live removal intentionally shows Connect rather than changing the selection again. Connecting an unsaved registry still requires its explicit trust-bearing action.

The shared marketplace suppresses description banners for known Start9 registries while retaining custom descriptions and beta/alpha/custom warnings. Its mobile content has a chosen 20rem minimum, requiring horizontal scrolling with an expanded sidebar. These shared changes also reach the brochure without changing its registry fetch/error workflow. Updates now uses the layout breakpoint rather than device detection, fixing initial selection and Back in narrow desktop windows.

Implementation diff: +391 / −282 lines in 19 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification. The author records 281/281 UI tests, passing scoped checks, and negative regressions for the previous fallback and selector behavior. The full RPC-client check retains the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I reused the prior code review and unchanged captures from 23899674c, and built this head's mock development UI in Chromium solely to refresh desktop/430px Connect and Invalid URL images and capture normal listings. The capture run reported no page errors. The superseded blocked-view images are removed; the unchanged browsing, navigation and server-state images remain. No tests were rerun during review; no live StartOS server, registry or installation was exercised. Current CI Prettier, formatting/lockfiles, changelog/version, licenses and SDK/runtime/script checks pass. Core/library tests, generated bindings/catalog and OS/WRT/tunnel builds remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

The blocked view gets the same side padding as the catalog header and
cards: 2rem, and 1rem on mobile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at 4039d07b076676d16d27607ee328f51626f4c354. The head merges cleanly with current master. The padding-only delta introduces no correctness findings; the earlier functional findings remain addressed.

Server availability. A replayed startup running state no longer establishes a live connection. The cross-review's source-owned live marker feeds the existing ConnectionService after the database consumer applies the subscription's initial update: a dump, or the replay acknowledged at the current revision after #4755. Stream loss, logout and disposal clear it. Service status becomes Unknown, and metrics/log recovery shares that availability contract. Existing stored snapshots, API schemas and retry intervals are unchanged.

The header distinguishes No Internet, Connecting and “Can't reach server.” Last-known Restarting/Shutting down notices retain precedence while reconnecting; No Internet overrides both. Registry status independently remains the last known observation through restoration and server outages. It is deliberately not masked by client connectivity, and connectivity changes do not invalidate exact package queries or update refinement.

Registry UI. Marketplace and Updates show “Listings may be out of date” with the existing refresh action and a Manage Registries link. Cached listings, update counts and available actions remain visible; the notice does not guarantee that a subsequent download can reach its asset source. An unavailable empty catalog retains loading placeholders. Registry errors warn on System and Registries instead of Updates. Desktop warnings replace counts, and mobile System places its warning in the numeric badge's position. Clock-sync failure becomes a Metrics warning, visible in desktop navigation and the mobile More sheet rather than contributing to numeric counts. Registry-management Unreachable chips use the shared warning appearance and retain failure details.

Selection and layout. The head adopts the cross-review's URL-scoped notice, cancellable fallback and selector corrections. Connect and Invalid URL are centered in the content pane with large primary actions, retaining the selector. They share the catalog's side gutters: 2rem on desktop and 1rem at the mobile breakpoint. A size container supplies the blocked view's height through 100cqb, avoiding dependence on the scrollbar's content-height wrapper. Normal listings keep their existing flow. Unsaved selections identify their own URL, and reselecting the last valid registry repairs an invalid query without reconnecting. A removed remembered selection falls back to the default using the first saved list, which may be restored. A later live removal intentionally shows Connect rather than changing the selection again. Connecting an unsaved registry still requires its explicit trust-bearing action.

The shared marketplace suppresses description banners for known Start9 registries while retaining custom descriptions and beta/alpha/custom warnings. Its mobile content has a chosen 20rem minimum, requiring horizontal scrolling with an expanded sidebar. These shared changes also reach the brochure without changing its registry fetch/error workflow. Updates now uses the layout breakpoint rather than device detection, fixing initial selection and Back in narrow desktop windows.

Implementation diff: +393 / −283 lines in 19 files (excludes lockfiles, tests, docs, release notes, and changelog).

Verification. The author records 281/281 UI tests, passing scoped checks, and negative regressions for the previous fallback and selector behavior. The full RPC-client check retains the reported pre-existing Brochure reports malformed registry URLs and can load the next selection failure, also reproduced by the author on master.

I reused the prior code review and unchanged browsing, navigation and server-state captures. I built this head's mock development UI in Chromium solely to refresh the four desktop/430px Connect and Invalid URL images, replacing the superseded blocked-view captures. The capture run reported no page errors. No tests were rerun during review; no live StartOS server, registry or installation was exercised. Current CI Prettier, formatting/lockfiles, changelog/version, licenses and SDK/runtime/script checks pass. Core/library tests, generated bindings/catalog and OS/WRT/tunnel builds remain pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Current blocked-view captures from 4039d07b076676d16d27607ee328f51626f4c354: mock UI at desktop and 430px widths, with 2rem/1rem side gutters. Unchanged browsing, warning and server-state captures remain at #4756 (comment).

Desktop Connect retains centered content, its primary action and the selector, with side gutters.

Desktop Invalid URL retains its centered message and primary action within the content gutters.

Narrow-window Connect has 1rem side gutters beside the collapsed sidebar.

Narrow-window Invalid URL wraps within 1rem side gutters and retains its primary action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants