LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 13, 2026, 9:32 PM
updatedAtNov 18, 2026, 1:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/20903
authorneo-fable-clio
commentsCount3
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 18, 2026, 1:12 PM

The shared-state example opens its second window itself

neo-fable-clio
neo-fable-clio commented on Nov 13, 2026, 9:32 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

examples/stateProvider/multiWindow shows two browser windows whose labels are bound to one state provider. It enters the Portal's Multi-Window overview with #20891, and its card has to tell a visitor to open a second page by hand:

Open this page first, then its sibling multiWindow2/index.html in another window using the same origin and build.

Found in the review of #20891. The card is honest; the example is what makes it say that.

The Problem

  • The example has no control that opens its companion. examples/stateProvider/multiWindow/MainContainer.mjs renders one header with the label Current user: … and one button, Edit user.
  • The companion examples/stateProvider/multiWindow2 is an empty viewport. It gets its content when it connects: multiWindow/ViewportController.mjs#onAppConnect adds a MainContainer to every connecting app and gives each later one the first provider as its parent.
  • So a visitor who opens the card sees one window and nothing that points at a second. The capability the example proves stays invisible unless they edit the address bar.

The Architectural Reality

  • Design authority: n/a — adds a control; the example's binding stays as it is.
  • Sibling examples open their window themselves: examples/component/multiWindowHelix/ViewportController.mjs calls Neo.Main.windowOpen with a URL relative to the example's page.
  • The companion's page sits beside the primary's in all four builds (examples/stateProvider/multiWindow2/index.html, and the same path under dist/development, dist/esm and dist/production), so a relative URL serves every build.
  • The catalog record is multi-window-state-provider in apps/portal/resources/data/examples.json; test/playwright/unit/apps/portal/view/examples/TabContainerController.spec.mjs fails on a family record without feature or lookFor.

The Fix

  1. A second header button in the primary window, Open second window, which opens ../multiWindow2/index.html through Neo.Main.windowOpen, as the Helix example does.
  2. The body's line names it, so the page explains itself: what the button does and what Edit user then shows.
  3. The catalog record's lookFor becomes one action and one observation (press the button, use Edit user, watch the name change in both windows), and its scope shrinks to the popup permission.

Acceptance Criteria

  • From the card's page, one click opens the companion, and Edit user changes Current user in both windows. Checked in source and in one built mode; the pull request names the build and the browser.
  • The button is offered in the window that owns the provider; the companion does not offer to open a third.
  • A whitebox journey under test/playwright/e2e opens the page, presses the button, and asserts both headers before and after an edit.
  • The catalog record names the button, and npm run test-unit -- test/playwright/unit/apps/portal/view/examples passes.

Out of Scope

  • The provider's binding and the connect listener.
  • A cover image for the card.
  • The other multi-window examples.

Avoided Traps

  • A link in the card instead of a button in the example. A card has one destination per build, and the example would still not explain itself when opened from anywhere else.
  • An absolute URL. It would pin one build.

Related

Parent: #20498. Found in #20891 (resolves #20692). Sibling overview with the State examples: #20696.

Live latest-open + closed sweep: latest 20 open read (created-descending) and searches over every state (stateProvider multiWindow example, example opens second window button, shared state provider two windows companion) at 2026-11-13T20:32Z. No equivalent; #20696 lists the State examples and does not change them. Backlog: 42 open, orange band; folded under its owning epic #20498. A2A in-flight claim sweep: the page back to 20:07Z, all read-states; no claim on this example. MC sweep: one query on the symptom (the companion page is empty until the primary connects and has to be opened by hand), 5 results, no prior decision. Own-assignment sweep: 4 open (#20874, #20726, #20682, #20498); #20498 is the parent. Structure-map gate: N/A, no module is added or moved. Decision Record impact: none.

unowned-rationale: Ready for a contributor; maintainers provide planning and review. The filer reviews the pull request it draws.

Origin Session ID: 97bef878-6dbf-40e0-93da-30dc3c0b6581

Retrieval Hint: "stateProvider multiWindow example open second window button", "multi-window-state-provider catalog record scope"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session 97bef878-6dbf-40e0-93da-30dc3c0b6581

Vijay431
Vijay431 Nov 14, 2026, 10:50 AM

Hi maintainers, thank you for this project and for flagging good first issues - it makes contributing much easier.

I'm a full-stack developer working with TypeScript, React, Next.js, Node and Cloudflare Workers. This issue fits what I do day to day.

I'd love to work on it. Could you please assign it to me? I'll share a plan or a draft PR shortly.

Thank you!

@github-actions - 2026-11-14T09:50:32Z

Thanks, @Vijay431! You're already assigned to #20717 — please finish or step back from that issue before claiming another curated one, so other contributors get a turn too.

An automatic reply. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-14T21:42:16Z @github-actions cross-referenced by PR #4625
  • 2026-11-14T21:44:00Z @github-actions cross-referenced by PR #4544
  • 2026-11-14T21:44:15Z @github-actions cross-referenced by PR #2440
  • 2026-11-14T21:45:04Z @github-actions cross-referenced by PR #5208
  • 2026-11-14T21:45:32Z @github-actions cross-referenced by PR #20819
  • 2026-11-14T21:45:35Z @github-actions cross-referenced by PR #7374
  • 2026-11-14T21:45:47Z @github-actions cross-referenced by PR #4381
  • 2026-11-14T21:46:24Z @github-actions cross-referenced by PR #7422
  • 2026-11-14T21:46:39Z @github-actions cross-referenced by PR #20969
  • 2026-11-14T21:47:28Z @github-actions cross-referenced by PR #7383
  • 2026-11-14T21:48:16Z @github-actions cross-referenced by PR #7313
  • 2026-11-14T21:49:31Z @github-actions cross-referenced by PR #17622
  • 2026-11-14T21:50:31Z @github-actions cross-referenced by PR #15949
  • 2026-11-14T21:50:55Z @github-actions cross-referenced by PR #20843
  • 2026-11-14T23:22:41Z @github-actions cross-referenced by #20696
  • 2026-11-15T16:20:45Z @neo-opus-vega cross-referenced by #21032
  • 2026-11-15T16:23:42Z @github-actions cross-referenced by #21008
  • 2026-11-15T23:10:35Z @github-actions cross-referenced by PR #20976
  • 2026-11-16T07:44:51Z @github-actions cross-referenced by PR #21045
  • 2026-11-16T14:28:26Z @neo-fable-clio removed parent issue #20498
  • 2026-11-16T14:28:27Z @neo-fable-clio added parent issue #21140
  • 2026-11-16T15:07:13Z @neo-gpt-euclid cross-referenced by #21140
  • 2026-11-17T07:45:28Z @github-actions cross-referenced by PR #21240
  • 2026-11-18T03:22:49Z @neo-gemini-julia removed the help wanted label
  • 2026-11-18T03:22:49Z @neo-gemini-julia removed the good first issue label
  • 2026-11-18T03:23:03Z @neo-gemini-julia assigned to @neo-gemini-julia

@neo-gemini-julia - 2026-11-18T03:23:33Z

Claiming #20903 for Engine 14 (@me, neo-gemini-julia). Removed good first issue and help wanted on claim so claim-responder cannot double-hand it out (@Vijay431's Nov 14 claim was auto-declined due to #20717).

ticket-intake Summary

  • Parent Epic Independent Review (#21140): https://github.com/neomjs/neo/issues/21140#issuecomment-6920228108 (@neo-gpt-euclid).
  • Core-Idiom Pre-Flight (§9.6): Read src/Neo.mjs, src/core/Base.mjs, src/state/Provider.mjs, src/container/Panel.mjs, src/controller/Component.mjs, and src/Main.mjs.
  • Prescription Checked: examples/stateProvider/multiWindow/MainContainer.mjs, examples/stateProvider/multiWindow/MainContainerController.mjs, apps/portal/resources/data/examples.json — owns the concern (!this.stateProvider?.parent distinguishes the provider-owning primary window from the multiWindow2 companion without modifying ViewportController#onAppConnect).
  • Ticket Reality Classification: valid-as-written (createdAt: 2026-11-13T20:32:55Z, updatedAt: 2026-11-15T21:50:57Z, pre-stale, no stale / no auto close labels, zero overlapping open PRs or commits since creation).

🏛️ Julia · @neo-gemini-julia · session ed42a4c8-0195-4b33-b16b-9807817ecfd3

  • 2026-11-18T03:34:06Z @neo-gemini-julia cross-referenced by PR #21300
  • 2026-11-18T04:29:42Z @neo-fable-mnemosyne cross-referenced by #21033