Skip to content

feat(app): add incremental React session path - #1362

Merged
benjaminshafii merged 9 commits into
devfrom
feat/react-session-incremental-adoption
Apr 5, 2026
Merged

benjaminshafii merged 9 commits into
devfrom
feat/react-session-incremental-adoption

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • add workspace-scoped session read APIs on the OpenWork server, including validated list/detail/messages/snapshot read models
  • route mounted OpenWork session reads through those new APIs in the current app client so session data no longer depends on direct proxy reads
  • add a feature-gated React session path with a read-only transcript, owned composer surface, and transition/debug model for incremental replacement of the Solid session UI

Verification

  • pnpm --filter openwork-server typecheck
  • pnpm --filter openwork-server test
  • bun test src/session-read-model.e2e.test.ts
  • pnpm install
  • pnpm --filter @openwork/app typecheck
  • pnpm --filter @openwork/app build

Benjamin Shafii added 5 commits April 5, 2026 12:39
Expose workspace-scoped session list, detail, message, and snapshot reads so the client can fetch session data without depending on activation choreography.
Use the new workspace-scoped session read endpoints for mounted OpenWork clients so the current frontend stops depending on direct session proxy reads for list, detail, message, and todo loading.
Introduce a feature-gated React island for the session transcript so we can replace the session surface incrementally while keeping the Solid shell intact.
Extend the feature-gated React session island to own its draft, prompt send, stop flow, and snapshot polling so the session body can evolve independently from the Solid composer.
Keep the React session surface stable during session switches by tracking rendered vs intended session state and exposing a developer debug panel for render-source and transition inspection.
@vercel

vercel Bot commented Apr 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview, Comment Apr 5, 2026 11:32pm
openwork-den Ready Ready Preview, Comment Apr 5, 2026 11:32pm
openwork-den-worker-proxy Ready Ready Preview, Comment Apr 5, 2026 11:32pm
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 5, 2026 11:32pm
openwork-share Ready Ready Preview, Comment Apr 5, 2026 11:32pm

@github-actions

github-actions Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Copy the incremental React adoption PRD into the OpenWork repo so the migration plan lives next to the implementation and PR branch.
Replace the shortened repo copy with the full incremental React adoption PRD so the implementation branch and product plan stay in sync.
Add dedicated Tauri dev and debug-build entrypoints for the React session path and honor a build-time React session flag before local storage so the alternate shell is easy to launch and reproduce.
Keep the new app working against older OpenWork servers by falling back to the original mounted OpenCode session reads when the workspace-scoped session read APIs are unavailable.
@benjaminshafii
benjaminshafii merged commit 9365e7d into dev Apr 5, 2026
9 checks passed
benjaminshafii pushed a commit that referenced this pull request May 15, 2026
* feat(server): add workspace session read APIs

Expose workspace-scoped session list, detail, message, and snapshot reads so the client can fetch session data without depending on activation choreography.

* feat(app): route mounted session reads through OpenWork APIs

Use the new workspace-scoped session read endpoints for mounted OpenWork clients so the current frontend stops depending on direct session proxy reads for list, detail, message, and todo loading.

* feat(app): add React read-only session transcript

Introduce a feature-gated React island for the session transcript so we can replace the session surface incrementally while keeping the Solid shell intact.

* feat(app): add React session composer surface

Extend the feature-gated React session island to own its draft, prompt send, stop flow, and snapshot polling so the session body can evolve independently from the Solid composer.

* feat(app): add React session transition model

Keep the React session surface stable during session switches by tracking rendered vs intended session state and exposing a developer debug panel for render-source and transition inspection.

* docs(prd): add React migration plan to repo

Copy the incremental React adoption PRD into the OpenWork repo so the migration plan lives next to the implementation and PR branch.

* docs(prd): sync full React migration plan

Replace the shortened repo copy with the full incremental React adoption PRD so the implementation branch and product plan stay in sync.

* feat(desktop): add React session launch modes

Add dedicated Tauri dev and debug-build entrypoints for the React session path and honor a build-time React session flag before local storage so the alternate shell is easy to launch and reproduce.

* fix(app): fall back to legacy mounted session reads

Keep the new app working against older OpenWork servers by falling back to the original mounted OpenCode session reads when the workspace-scoped session read APIs are unavailable.
benjaminshafii pushed a commit that referenced this pull request May 15, 2026
* feat(server): add workspace session read APIs

Expose workspace-scoped session list, detail, message, and snapshot reads so the client can fetch session data without depending on activation choreography.

* feat(app): route mounted session reads through OpenWork APIs

Use the new workspace-scoped session read endpoints for mounted OpenWork clients so the current frontend stops depending on direct session proxy reads for list, detail, message, and todo loading.

* feat(app): add React read-only session transcript

Introduce a feature-gated React island for the session transcript so we can replace the session surface incrementally while keeping the Solid shell intact.

* feat(app): add React session composer surface

Extend the feature-gated React session island to own its draft, prompt send, stop flow, and snapshot polling so the session body can evolve independently from the Solid composer.

* feat(app): add React session transition model

Keep the React session surface stable during session switches by tracking rendered vs intended session state and exposing a developer debug panel for render-source and transition inspection.

* docs(prd): add React migration plan to repo

Copy the incremental React adoption PRD into the OpenWork repo so the migration plan lives next to the implementation and PR branch.

* docs(prd): sync full React migration plan

Replace the shortened repo copy with the full incremental React adoption PRD so the implementation branch and product plan stay in sync.

* feat(desktop): add React session launch modes

Add dedicated Tauri dev and debug-build entrypoints for the React session path and honor a build-time React session flag before local storage so the alternate shell is easy to launch and reproduce.

* fix(app): fall back to legacy mounted session reads

Keep the new app working against older OpenWork servers by falling back to the original mounted OpenCode session reads when the workspace-scoped session read APIs are unavailable.
@benjaminshafii
benjaminshafii deleted the feat/react-session-incremental-adoption branch May 15, 2026 17:37

This branch was successfully deployed

5 active deployments
Preview – openwork-den-worker-proxy — fecb9527 Deployed Apr 5, 2026 by vercel[bot]
Preview – openwork-den — fecb9527 Deployed Apr 5, 2026 by vercel[bot]
Preview – openwork-landing — fecb9527 Deployed Apr 5, 2026 by vercel[bot]
Preview – openwork-app — fecb9527 Deployed Apr 5, 2026 by vercel[bot]
Preview – openwork-share — fecb9527 Deployed Apr 5, 2026 by vercel[bot]
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.

1 participant