Skip to content

Port cloud workspaces onto v2.83.1 - #580

Draft
Anjiro81 wants to merge 1 commit into
aebrer:masterfrom
Anjiro81:port/cloud-workspaces-2.83.1
Draft

Anjiro81 wants to merge 1 commit into
aebrer:masterfrom
Anjiro81:port/cloud-workspaces-2.83.1

Conversation

@Anjiro81

Copy link
Copy Markdown
Contributor

What

Rebuilds the downstream cloud workspaces feature on top of upstream v2.83.1.

The local downstream checkout was a squashed 2.79.0 snapshot with no shared
history with this repository, so it could not be merged forward. This branch
re-applies that feature delta onto v2.83.1 and resolves the drift.

Scope (64 files)

  • @dreb/coding-agent: core/cloud-workspaces (registry, storage, session
    storage, types), cloud CLI command, settings-manager and entrypoint wiring,
    ./cloud-workspaces package export, SDK example + docs.
  • @dreb/dashboard: /api/cloud-workspaces* server module, Cloud Workspaces
    screen, project-directory selector, client store/api/protocol wiring, styles.
  • Tests for both packages, plus the source-only scripts/dreb-cloud.mjs
    launcher.

Conflict resolutions (3 files)

File Resolution
packages/coding-agent/docs/dashboard.md kept the upstream Settings description, re-added the Cloud Workspaces screen row
packages/dashboard/src/client/screens/fleet.tsx kept both the upstream RenameSessionModal and the downstream ProjectDirectorySelector imports (both are used)
packages/dashboard/src/server/server.ts merged upstream resolveSessionDirectory/fileApi/filesHomeDir/memoryApi overrides with downstream cloudWorkspaceRegistry/cloudSessionStorage/sessionInventoryRoot/sessionStorageBaseCwd; kept the upstream case-insensitive API_PATH_PATTERN boundary check

packages/dashboard/test/cloud-workspaces.test.ts now supplies the
renameSession stub that upstream made a required DashboardServerOptions
field.

Verification

  • tsgo --noEmit: clean
  • pre-commit hook (biome check --error-on-warnings, tsgo, full test.sh):
    8326 passed, 0 failed, 756 skipped
  • dashboard suite: 2215/2215, including 52 real-browser cloud-workspace tests
  • coding-agent cloud-workspace suites: 310 passed
  • live smoke run on a spare port: /api/cloud-workspaces and
    /api/cloud-workspaces/session-storage return 200 against an existing
    registry without creating runtimes or reading transcripts

Opened as a draft: it is a large downstream feature drop and needs a review
of the intended upstream scope before it should be merged.

Rebuilds the downstream cloud-workspaces feature (coding-agent core module,
CLI command, dashboard server/client surface, docs and tests) on top of
upstream v2.83.1 instead of the older 2.79.0 snapshot.

Conflict resolutions:
- dashboard docs: kept the upstream Settings description, re-added the
  Cloud Workspaces screen row.
- fleet.tsx: kept both the upstream rename-session modal and the downstream
  project-directory selector imports (both are used).
- server.ts: merged the upstream session/file/memory test overrides with the
  downstream cloud-workspace registry and session-storage options; kept the
  upstream case-insensitive API_PATH_PATTERN boundary.
- cloud-workspaces test fixture: supplies the now-required renameSession stub.

Verification: tsgo --noEmit clean; dashboard suite 2215/2215 passing
(including 52 real-browser cloud-workspace tests); coding-agent
cloud-workspace suites 310 passing; live server on a spare port serves
/api/cloud-workspaces and /api/cloud-workspaces/session-storage.
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