[PR #13593] feat: enhanced workspace support with additional settings and creation dialog #14725

Open
opened 2026-02-16 18:19:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13593

State: open
Merged: No


Summary

This PR implements enhanced workspace support as described in #13592.

Changes

  • Backend: Added worktree_settings to project schema. Updated Worktree.create to support custom branches, symlinks, and copies.
  • Frontend:
    • Added "Enable workspaces" toggle and the following configuration fields to DialogEditProject:
      • Default base branch
      • Symlinks
      • Copies
    • Created DialogCreateWorkspace for workspace creation, with the following fields:
      • Workspace name
      • Branch name
      • Base branch
    • Improved error handling for invalid base branches.
  • i18n: Added English and Spanish translations.

Screenshots

image image

Verification

  • Added backend tests in packages/opencode/test/project/worktree-settings.test.ts to verify symlink/copy logic and base branch selection.
  • Verified UI changes manually (see screeshots above).
  • Ran bun typecheck.

Closes #13592

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13593 **State:** open **Merged:** No --- ## Summary This PR implements enhanced workspace support as described in #13592. ## Changes - **Backend**: Added `worktree_settings` to project schema. Updated `Worktree.create` to support custom branches, symlinks, and copies. - **Frontend**: - Added "Enable workspaces" toggle and the following configuration fields to `DialogEditProject`: - Default base branch - Symlinks - Copies - Created `DialogCreateWorkspace` for workspace creation, with the following fields: - Workspace name - Branch name - Base branch - Improved error handling for invalid base branches. - **i18n**: Added English and Spanish translations. ## Screenshots <img width="498" height="684" alt="image" src="https://github.com/user-attachments/assets/3f003e47-1aac-467b-971a-00999db8f0d0" /> <img width="498" height="386" alt="image" src="https://github.com/user-attachments/assets/78b63122-e994-4981-ba59-aa9d44e066fa" /> ## Verification - Added backend tests in `packages/opencode/test/project/worktree-settings.test.ts` to verify symlink/copy logic and base branch selection. - Verified UI changes manually (see screeshots above). - Ran `bun typecheck`. Closes #13592
yindo added the pull-request label 2026-02-16 18:19:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14725