Repository navigation
feat(positron): brick 1 — room purpose as data (the Content dispatch key) - #1757
Merged
Merged
Conversation
…key) Makes `activity == room == content == tab` (ACTIVITY-ROOM-PATTERNS.md) literal by threading a room's ACTIVITY PURPOSE through the projection end to end: the room's projected state now carries `purpose` — the content-dispatch key a client's `Content` primitive keys on to pick the room's central widget(s). Adding an activity becomes a purpose value + a registered renderer, never a shell change. - continuum-positron: ChatViewState gains `purpose: String` (room-level, beside room_id/room_name). Neutral/opaque — positron transports it, continuum sets it. - continuum-core: the live projection populates it "chat" today; RoomPurposeSource (#6) will resolve it from the room's recipe so foundry/scada/academy rooms report their own purpose. All rooms are chat rooms until then (honest default). - ts-rs regenerated (protocol/), SDK copy synced (the generated/views vs protocol/ drift is #80; hand-synced here to keep brick 1 green). - @continuum/chat-view: ChatViewModel exposes `purpose`, so the client's Content registry (from @continuum/patterns) has its dispatch key. Verified: continuum-positron tests green, continuum-core check exit 0, chat-view + web typecheck clean, clients lint green, all client tests pass (chat-view 11, patterns 3). Next: foundry as outlier B (a second purpose value + its content projection), which proves the dispatch; then the Rust RAG RenderTarget so grounding renders from the same primitives. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 4, 2026
…ft) (#1762) * feat(sdk): #80 — automate view-payload vendoring (kill the silent drift) The SDK deliberately VENDORS continuum view payloads from the canonical ts-rs output (protocol/typescript/positron/) so a UI app depends only on @continuum/sdk-typescript and stays public-installable. But the re-vendoring was manual ("do not hand-edit; re-vendor on change") and drifted silently: ChatViewState.purpose was hand-synced (not byte-exact), ForgeViewState was never vendored at all. - scripts/vendor-views.mjs — ONE declared vendored set (chat + foundry closures), copied deterministically from protocol/. `--check` mode fails loud on drift. - Re-vendored ChatViewState (now byte-exact) + vendored ForgeViewState + ForgeModelView; barrels (views/index + SDK index) export them → the client can now import the foundry types (unblocks the foundry renderer). - Wired `vendor:views:check` into `check:clients` so future drift can't merge. Boy-scout while the gate was tightened: fixed 2 pre-existing non-null-assertion lint errors (patternProjections.spec.ts) and 1 pre-existing typecheck error (apps/tui fixture missing the now-required `purpose`) — both slipped past the CI ratchet since #1757/#1758 but the tightened check:clients surfaces them. Full check:clients green (73 client tests). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(sdk): update vendored-views barrel header for foundry + the automated script (review #1762) The header still said 'chat closure only' and 'do not hand-edit; re-vendor' — now it names the chat AND foundry closures and points at scripts/vendor-views.mjs + the check:clients drift guard. Same boy-scout discipline the header preaches. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 4, 2026
) Folds in the #1766 review's robustness findings so a version-skew is honest, not a silent hang: - chatViewModel defaults an absent `purpose` to "chat" — the legitimate additive- field back-compat (a ChatViewState IS a chat activity; server default is "chat"; a foundry room sends ForgeViewState, never a purpose-less chat). This also lets the app render against an older core that predates #1757. - ChatWidget wraps renderChat in an error boundary → a render throw (e.g. the Content registry hitting a genuinely unregistered purpose) shows a VISIBLE .render-error panel instead of a swallowed Lit update that leaves a stuck "Connecting…". Fail loud WHERE it's seen ([[fallbacks-are-illegal-fail-loud]], [[solve-for-public-users]]). - renderChat uses a stable aria-label ("conversation") instead of leaking the dispatch key into the a11y name. Verified live via CDP against the running core: the three-panel chat renders (roster member cards + conversation + compose). chat-view 14 + web 3 tests green, lint clean. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 4, 2026
…ady) (#1766) * feat(web): P3 — dispatch the center panel by room purpose (foundry-ready) The first web slice of the WorkspaceShell (LIVE-INTERFACE-BUILD-PLAN.md P3): the three-panel surface now renders its center through the pattern Content registry, keyed on the focused room's `purpose`, instead of hardcoding the conversation. - render/parts.ts — the shared member-card + message-row fragments (one place, reused by the roster Listing and the Content renderers). - content/registry.ts — the web Content registry (createContentRegistry<TemplateResult>), `chat` registered → the conversation. Foundry's model-list renderer registers the same way, keyed "foundry"; the shell doesn't change. Fail-loud on unknown purpose. - renderChat projects via chatWorkspace(vm) and routes the center on content.purpose — so the same shell renders chat today and foundry next. Chat renders identically (3 web tests green, typecheck + lint clean, bundle builds). Foundry-ready: registering a "foundry" Content renderer + subscribing to the foundry kind lights up the model list in the same shell, no layout change. Note: verified live that this correctly REQUIRES the core to send `purpose` (#1757) — a stale pre-#1757 core sends none, and the app fails loud rather than mis-render (a real deploy-skew signal; the running dev core needs a rebuild to render the new app). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): visible render errors + additive-purpose default (review #1766) Folds in the #1766 review's robustness findings so a version-skew is honest, not a silent hang: - chatViewModel defaults an absent `purpose` to "chat" — the legitimate additive- field back-compat (a ChatViewState IS a chat activity; server default is "chat"; a foundry room sends ForgeViewState, never a purpose-less chat). This also lets the app render against an older core that predates #1757. - ChatWidget wraps renderChat in an error boundary → a render throw (e.g. the Content registry hitting a genuinely unregistered purpose) shows a VISIBLE .render-error panel instead of a swallowed Lit update that leaves a stuck "Connecting…". Fail loud WHERE it's seen ([[fallbacks-are-illegal-fail-loud]], [[solve-for-public-users]]). - renderChat uses a stable aria-label ("conversation") instead of leaking the dispatch key into the a11y name. Verified live via CDP against the running core: the three-panel chat renders (roster member cards + conversation + compose). chat-view 14 + web 3 tests green, lint clean. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
activity == room == content == tab(ACTIVITY-ROOM-PATTERNS.md) literal: the room's projected state now carriespurpose— the content-dispatch key a client'sContentprimitive keys on. Adding an activity = a purpose value + a registered renderer, never a shell change.ChatViewStategainspurpose: String(neutral/opaque — positron transports, continuum sets)."chat"today;RoomPurposeSource(Build(deps): Bump actions/setup-node from 3 to 4 #6) resolves it from the room recipe next.ChatViewModelexposespurpose→ the@continuum/patternsContent registry has its key.Verified: positron tests green, core check exit 0, chat-view + web typecheck clean, lint green, all client tests pass.
Next: foundry as outlier B (second purpose + content projection), then the Rust RAG RenderTarget.
🤖 Generated with Claude Code