Skip to content

Add real collaborative Cowork editors - #22

Merged
gitcommit90 merged 3 commits into
mainfrom
feat/cowork-real-editors-collaboration
Jul 27, 2026
Merged

Add real collaborative Cowork editors#22
gitcommit90 merged 3 commits into
mainfrom
feat/cowork-real-editors-collaboration

Conversation

@gitcommit90

Copy link
Copy Markdown
Owner

Outcome

Cowork now provides real file-backed collaborative editors instead of placeholder surfaces: CodeMirror for Notes, Docs, and Code; embedded Excalidraw for Whiteboards; Excalidraw-backed presentations; and authenticated Yjs presence and synchronization over the existing channel workspace.

The Cowork agent panel still creates an ordinary channel thread. Its first message adds the validated open workspace path and active co-viewers server-side, with no parallel agent harness or document store.

Safety and continuity

  • Membership-gated collaboration sockets and supported workspace roots only
  • Same-origin self-hosted Excalidraw fonts/assets with a fail-closed build rewrite
  • Editor/canvas nodes, focus, cursor, draft, scroll, and presence preserved across shell/theme updates
  • External agent/Terminal edits refresh clean documents; stale drafts require confirmation
  • Dirty rooms flush during shutdown; deleted or moved paths cannot reconnect stale sockets
  • Excalidraw transitive high/moderate advisories resolved with narrow patched overrides

Verification

  • npm run typecheck
  • npm run build
  • npm test: 117 native assertions plus 104 passing contracts, 2 expected default browser-discovery skips
  • onboarding browser: 20/20
  • brief regression browser: 38/38
  • two-user Cowork browser: pass
  • feedback browser: pass
  • production-data browser: 18/18 against a disposable live-data copy
  • real terminal reconnect browser: pass
  • mobile browser: 4/4
  • site: 5/5
  • npm audit --omit=dev: 0 high, 0 critical; 17 pre-existing Spectrum/OpenTelemetry moderate findings whose suggested fix is a breaking Spectrum downgrade
  • git diff --check

Versioned as 0.0.18 with release pins, changelog, README, and user guide updated.

Signed-off-by: Joseph Yaksich gitcommit90@users.noreply.github.com

Replace the placeholder Cowork surfaces with CodeMirror, Excalidraw-backed whiteboards and slides, authenticated Yjs collaboration, file presence, and context-aware normal channel threads. Preserve file-backed workspace semantics, harden editor lifecycle and dependency assets, add two-user browser coverage, and bump the release to 0.0.18.

Signed-off-by: Joseph Yaksich <gitcommit90@users.noreply.github.com>
Comment thread test/workspace-interactions.mjs Fixed
Signed-off-by: Joseph Yaksich <gitcommit90@users.noreply.github.com>
Keep the connected-key form mounted until the authoritative provider refresh completes so a fast second add cannot target stale controls, and use a type-only Yjs server import to avoid duplicate module instances.

Signed-off-by: Joseph Yaksich <gitcommit90@users.noreply.github.com>
@gitcommit90
gitcommit90 merged commit 87a9f73 into main Jul 27, 2026
5 checks passed
@gitcommit90
gitcommit90 deleted the feat/cowork-real-editors-collaboration branch July 27, 2026 07:34
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.

2 participants