Commit Graph

46 Commits

Author SHA1 Message Date
src-opn
d5459798b2 chore: bump version to 0.11.203 2026-04-07 10:49:19 -07:00
ben
b3afb8a176 fix(app): keep React session transcript stable across switches (#1365)
* feat(app): add React markdown and transcript parity

Render React session messages with a proper markdown stack, Solid-style user and assistant layouts, and structured tool-call cards so the React path matches the existing transcript experience more closely.

* feat(app): drive React sessions through useChat streaming

Move the React session path to a custom useChat transport backed by the existing OpenCode event stream so transcript state, sending, and streaming are owned by React instead of snapshot polling.

* fix(app): remount React session island per chat

Reset the React session surface when the workspace or session changes so an in-flight useChat stream from one chat cannot continue writing into another chat after a switch.

* fix(app): scope React stream deltas to one session

Reject message.part.delta updates that do not belong to the active session so concurrent OpenCode event streams cannot interleave transcript text across chats in the React session surface.

* fix(app): cache React transcript state per session

Persist streamed UI messages in TanStack query cache per workspace/session so revisiting a running chat shows the last known partial transcript instead of starting empty on remount.

* feat(app): keep React session state in shared sync cache

Move React session transcript ownership out of the mounted chat view by sharing one query client across islands and applying workspace event updates into per-session query cache, mirroring the global sync pattern used by OpenCode.

* fix(app): keep React session sync alive across chat switches

Mount the workspace-scoped React session sync above the per-chat session island so switching chats no longer tears down the event subscription that keeps transcript state updating in the background.

* Revert "fix(app): keep React session sync alive across chat switches"

This reverts commit 15f37a09c1.

* Revert "feat(app): keep React session state in shared sync cache"

This reverts commit 49df59d6ef.

* fix(app): keep React session streams alive across switches

Move React session streaming state into a shared app-level runtime backed by one query client and a workspace-scoped event sync reducer so leaving and returning to a running session restores the current transcript instead of showing an empty pane or leaking between chats.

* fix(app): preserve beginning of streamed text across session switches

Create text parts on first delta arrival instead of silently dropping deltas that arrive before the part shell exists, and ensure the message shell is present before appending any delta. This fixes the bug where switching away from a streaming session and coming back would show only later lines, missing the beginning of the response.

* fix(app): preserve streamed text when re-selecting a busy session

When switching back to a session that is still streaming, the server snapshot returns empty text for in-progress parts. The reconcile call in selectSession was overwriting the locally accumulated text with that empty snapshot. Now both the Solid and React paths preserve the longer local text when the session status is busy.
2026-04-06 08:13:05 -07:00
ben
9365e7d397 feat(app): add incremental React session path (#1362)
* 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.
2026-04-05 16:46:06 -07:00
src-opn
ff981742bb chore: bump version to 0.11.202 2026-04-04 13:13:29 -07:00
Benjamin Shafii
15725dfb31 chore: bump version to 0.11.201 2026-04-03 18:28:44 -07:00
Benjamin Shafii
548a03b616 fix(app): devtools, session load churn, and stream batch flicker
- Add solid-devtools Vite plugin with locator (jsx/component locations) and
  @solid-devtools/overlay, loaded before render in dev only.
- Treat baseline message fetch as complete for empty transcripts so
  ensureSessionLoaded does not refetch on every prefetch/subagent ensure.
- When streaming delivers the first rows while non-idle, sync the batched
  message list immediately so the blueprint empty state does not flash.

Made-with: Cursor
2026-04-03 18:13:49 -07:00
Benjamin Shafii
5cc7bbdd87 chore: bump version to 0.11.200 2026-04-03 07:51:45 -07:00
Benjamin Shafii
4a3e43e597 chore: bump version to 0.11.199 2026-04-01 18:48:35 -07:00
Source Open
c1e12a41fb feat(ui): add shared seeded paper gradients (#1288)
* feat(ui): add shared seeded paper gradients

Centralize the Paper mesh and grain wrappers so React and Solid apps can reuse the same deterministic seed-based visuals without repeating shader config. Add a standalone demo surface and update existing consumers so the shared package is easier to validate and evolve.

* fix(ui): resolve shared package from source

Point the shared UI package exports at source files so Next builds do not depend on a prebuilt dist directory. Add Next transpilation for @openwork/ui in Landing and Den Web so monorepo and Vercel builds resolve the package consistently.

---------

Co-authored-by: src-opn <src-opn@users.noreply.github.com>
2026-04-01 18:14:14 -07:00
ben
bac168928b feat(debug): capture and export developer logs (#1280)
Developer mode already emitted useful workspace/session/perf logs, but they
mostly lived in the console and only a subset made it into exportable debug
artifacts. That made it hard to collect a clean report from users when chasing
racy workspace bugs.

Add a shared dev-log buffer, feed it from the existing app/workspace/session
and perf debug emitters, surface the log stream in Settings > Debug, and make
it copyable/exportable alongside the existing runtime debug report.
2026-04-01 13:44:36 -07:00
ben
c688fbefb5 fix(session): recover after immediate send failures (#1283) 2026-04-01 13:39:37 -07:00
Benjamin Shafii
0d93d5d7a7 Revert "feat(session): render streamed file mentions as cards"
This reverts commit ed20f1c4b3.
2026-03-31 18:14:32 -07:00
Benjamin Shafii
25a508d7bd feat(session): render streamed file mentions as cards
Break assistant text into stable blocks so streaming stays responsive and tool-created files surface as openable transcript cards instead of getting buried in prose.
2026-03-31 18:14:31 -07:00
Benjamin Shafii
761796fd33 chore: bump version to 0.11.198 2026-03-30 22:30:04 -07:00
Benjamin Shafii
020d763667 chore: bump version to 0.11.197 2026-03-30 21:50:48 -07:00
Benjamin Shafii
53b8964dc3 Merge branch 'dev' of https://github.com/different-ai/openwork into dev 2026-03-30 19:52:21 -07:00
Benjamin Shafii
663e357b00 chore: bump version to 0.11.196 2026-03-30 13:56:06 -07:00
src-opn
9d5b14b4f4 chore: bump version to 0.11.195 2026-03-27 14:29:11 -07:00
src-opn
41d93e2ece chore: bump version to 0.11.194 2026-03-26 13:15:32 -07:00
Benjamin Shafii
da74ba9a75 chore: bump version to 0.11.193 2026-03-25 21:53:12 -07:00
Benjamin Shafii
5f30ad2a87 chore: bump version to 0.11.192 2026-03-25 14:56:33 -07:00
Omar McAdam
6c9700ce85 chore: bump version to 0.11.191 2026-03-24 17:34:29 -07:00
Benjamin Shafii
6c22f80018 chore: bump version to 0.11.190 2026-03-24 16:01:42 -07:00
Benjamin Shafii
a7fa0312cf chore: bump version to 0.11.189 2026-03-24 09:39:37 -07:00
Benjamin Shafii
c9e00db612 chore: bump version to 0.11.188 2026-03-24 09:29:02 -07:00
Benjamin Shafii
5d1c6a28a2 chore: bump version to 0.11.187 2026-03-24 07:37:58 -07:00
Benjamin Shafii
b77c254d3d Merge branch 'dev' of https://github.com/different-ai/openwork into dev 2026-03-24 06:39:55 -07:00
Benjamin Shafii
30737e99a2 chore: bump version to 0.11.186 2026-03-23 22:45:54 -07:00
Benjamin Shafii
7e4e8ec153 fix(session): keep workspace history scoped during local reconnects
Use the active workspace root instead of stale engine directories when reloading local sessions so workspace creation, switching, and restart flows do not hide another workspace's history. Add a regression check for stale session loads overwriting sidebar and route state.
2026-03-23 22:36:57 -07:00
Omar McAdam
5584dfd652 chore: bump version to 0.11.185 2026-03-23 22:03:43 -07:00
Benjamin Shafii
09204a02ff chore: bump version to 0.11.184 2026-03-23 07:33:50 -07:00
Benjamin Shafii
160198ab94 chore: bump version to 0.11.183 2026-03-22 21:59:34 -07:00
Benjamin Shafii
9b089bf9cf hello 2026-03-22 20:15:16 -07:00
Benjamin Shafii
7a0e31d004 chore: bump version to 0.11.182 2026-03-22 18:18:18 -07:00
Benjamin Shafii
abcfdfc745 chore: bump version to 0.11.181 2026-03-22 09:31:39 -07:00
Benjamin Shafii
093ee573a0 chore: bump version to 0.11.180 2026-03-22 09:29:16 -07:00
Jan Carbonell
5f0434568f chore: bump version to 0.11.179 2026-03-21 22:33:09 -07:00
Benjamin Shafii
1cc5360f62 chore: bump version to 0.11.178 2026-03-21 19:37:02 -07:00
Omar McAdam
9603be37d2 chore: bump version to 0.11.177 2026-03-20 13:24:23 -07:00
Omar McAdam
47b6f7e37a chore: bump version to 0.11.176 2026-03-20 12:51:31 -07:00
Benjamin Shafii
da0cd71c7e chore: bump version to 0.11.175 2026-03-19 22:21:17 -07:00
Benjamin Shafii
9f3890f609 chore: bump version to 0.11.174 2026-03-19 18:59:35 -07:00
Omar McAdam
5f0e11ceca chore: bump version to 0.11.173 2026-03-19 15:41:22 -07:00
Omar McAdam
d47a194d93 chore: bump version to 0.11.172 2026-03-19 15:07:12 -07:00
Benjamin Shafii
10ec28d6dc chore: bump version to 0.11.171 2026-03-19 14:01:13 -07:00
Omar McAdam
2b91b4d777 refactor: repo folder structure (#1038)
* refactor(repo): move OpenWork apps into apps and ee layout

Rebase the monorepo layout migration onto the latest dev changes so the moved app, desktop, share, and cloud surfaces keep working from their new paths. Carry the latest deeplink, token persistence, build, Vercel, and docs updates forward to avoid stale references and broken deploy tooling.

* chore(repo): drop generated desktop artifacts

Ignore the moved Tauri target and sidecar paths so local cargo checks do not pollute the branch. Remove the accidentally committed outputs from the repo while keeping the layout migration intact.

* fix(release): drop built server cli artifact

Stop tracking the locally built apps/server/cli binary so generated server outputs do not leak into commits. Also update the release workflow to check the published scoped package name for @openwork/server before deciding whether npm publish is needed.

* fix(workspace): add stable CLI bin wrappers

Point the server and router package bins at committed wrapper scripts so workspace installs can create shims before dist outputs exist. Keep the wrappers compatible with built binaries and source checkouts to avoid Vercel install warnings without changing runtime behavior.
2026-03-19 11:41:38 -07:00