Skip to content

Expose Solo region state before a component mounts - #3296

Merged
dr0uleau merged 5 commits into
mainfrom
nexus/expose-solo-region-state-without-a-mounted-view-930ed091
Nov 11, 2026
Merged

dr0uleau merged 5 commits into
mainfrom
nexus/expose-solo-region-state-without-a-mounted-view-930ed091

Conversation

@dr0uleau

@dr0uleau dr0uleau commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Why

A plugin can change a saved Solo region filter before its component mounts. It needs the same state that the host gives the component.

What

SoloRegionHandle.state(binding) exposes get(), set(value), and subscribe(listener). Component props use the same state path.

How

The API reuses the existing device record and its 16 KiB limit. Bindings include scope, viewer, and incarnation. Binding abort and source disposal remove subscriptions. The last write wins. No relay reads or writes are added.

Closes #3295.

Risk

The region state path serves plugins in the sidebar. Reads throw for an ended binding or unreadable state without an accepted memory value. Existing saved keys and UI controls stay the same.

Testing

The shipping review finds one cache-order defect. The fix preserves a newer write from a subscriber and restores the prior cache when a write fails. The regression fails before the fix and passes after it. The human author explicitly waives the manual test for this API-only change. One new browser case checks real storage events between windows and restore after reload. Vitest covers the other state and lifetime cases. No browser cases are removed.

Bigger picture

Consumers must require a host release with this API before they depend on it.

buzz-review-completed

Generated with Codex

dr0uleau and others added 3 commits November 11, 2026 10:34
Co-authored-by: Codex <[email protected]>
Signed-off-by: Daniel Rouleau <[email protected]>
Co-authored-by: Codex <[email protected]>
Signed-off-by: Daniel Rouleau <[email protected]>
Co-authored-by: Codex <[email protected]>
Signed-off-by: Daniel Rouleau <[email protected]>
@dr0uleau
dr0uleau requested review from gilgtm and kazemek21 November 11, 2026 18:42
dr0uleau and others added 2 commits November 11, 2026 10:51
Co-authored-by: Codex <[email protected]>
Signed-off-by: Daniel Rouleau <[email protected]>
Co-authored-by: Codex <[email protected]>
Signed-off-by: Daniel Rouleau <[email protected]>
@dr0uleau
dr0uleau requested a review from a team November 11, 2026 18:55
@dr0uleau
dr0uleau marked this pull request as ready for review November 11, 2026 19:17

@gilgtm gilgtm 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.

🤖 No P0/P1 findings in the deep dual review of b52c5ec against main at 42dd143.

Posted by duel-review skill [driver: codex(high), mode: deep-dual, review synthesized by codex(high)]

@dr0uleau
dr0uleau merged commit 40a00b7 into main Nov 11, 2026
66 checks passed
@dr0uleau
dr0uleau deleted the nexus/expose-solo-region-state-without-a-mounted-view-930ed091 branch November 11, 2026 19:43
tlongwell-block added a commit that referenced this pull request Nov 11, 2026
* origin/main: (121 commits)
  Expose Solo region state before a component mounts (#3296)
  fix(builderlab): say a 401 was refused, not expired, and show each sign-in failure once (#3241)
  feat(agents): file new Solo chats in explicit personal workspaces (#2857)
  perf(css): limit broad style invalidation (#3267)
  Delay and fade in the Bestie badge celebration (#3292)
  fix(github): show private-repo body images from signed links (#3252)
  NEXUS-4029: Preserve semantic chips in the core composer (#2303)
  Make plugin signature enforcement opt-in (#2212)
  NEXUS-4156: Add workspace Leads and choose a chat's workspace (#2788)
  feat(plugins): report conclusively retired update providers (#3263)
  feat(messages): let attachment renderers open files from the host file card (#2239)
  feat(charts): bundle a Charts code-block renderer (#3226)
  Expose native reply grouping through Conversation.ui (#3245)
  NEXUS-4163: Keep plugin-owned chat deletion in Solo (#2787)
  NEXUS-4156: Expose Solo Workspaces to plugin regions (#2786)
  NEXUS-4022: Start region chats in the New Chat editor (#2784)
  feat(link-previews): unfurl web links below messages by default (#3225)
  fix(messages): keep names in literal Markdown as written when editing (#2834)
  feat(plugins): fetch a packaged managed plugin policy from a URL (#2504)
  fix(goose): enable deferred tool loading for goose agents (#3227)
  ...

Signed-off-by: Tyler Longwell <[email protected]>
Co-authored-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@buzz.block.builderlab.xyz>
joahg added a commit to joahg/buzz-app that referenced this pull request Nov 11, 2026
* origin/main:
  NEXUS-4029: Offer folder chips in the composer (block#2789)
  perf(css): narrow effort button invalidation (block#3297)
  NEXUS-4433: Expose saved plugin installation source kind (block#3242)
  fix(identity): keep an unbacked key safe on Replace and unblock a corrupt saved key (block#3233)
  Expose Solo region state before a component mounts (block#3296)
  fix(builderlab): say a 401 was refused, not expired, and show each sign-in failure once (block#3241)
  feat(agents): file new Solo chats in explicit personal workspaces (block#2857)
  perf(css): limit broad style invalidation (block#3267)
  Delay and fade in the Bestie badge celebration (block#3292)
  fix(github): show private-repo body images from signed links (block#3252)
  NEXUS-4029: Preserve semantic chips in the core composer (block#2303)
  Make plugin signature enforcement opt-in (block#2212)
  NEXUS-4156: Add workspace Leads and choose a chat's workspace (block#2788)
  feat(plugins): report conclusively retired update providers (block#3263)
  feat(messages): let attachment renderers open files from the host file card (block#2239)
  feat(charts): bundle a Charts code-block renderer (block#3226)
  Expose native reply grouping through Conversation.ui (block#3245)

Signed-off-by: Joah Gerstenberg <[email protected]>

# Conflicts:
#	src/features/conversation/ComposerCompletions.test.tsx
#	src/features/conversation/ComposerCompletions.tsx
#	src/features/messages/MessageComposer.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose Solo region state before a component mounts

2 participants