feat(server): migrate openwork.json from .opencode/ to .openwork/#1570
Open
arozanov wants to merge 1 commit intodifferent-ai:devfrom
Open
feat(server): migrate openwork.json from .opencode/ to .openwork/#1570arozanov wants to merge 1 commit intodifferent-ai:devfrom
arozanov wants to merge 1 commit intodifferent-ai:devfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@arozanov is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
7ce25e1 to
7f87446
Compare
7f87446 to
7e33094
Compare
7e33094 to
90f29ed
Compare
90f29ed to
a525e0d
Compare
Moves the canonical location of openwork.json from .opencode/openwork.json to .openwork/openwork.json across server, server-v2, orchestrator, Tauri desktop, and Electron desktop. Read paths prefer .openwork/, fall back to .opencode/, default to .openwork/. Write paths always target .openwork/openwork.json. Migration copies (not moves) the legacy file on first boot. Closes different-ai#1161 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
a525e0d to
a586c2d
Compare
Collaborator
|
not sure on this one yet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1161
Moves
openwork.jsonout of.opencode/into its own.openwork/directory across all five packages: server, server-v2, orchestrator, Tauri desktop, Electron desktop.What changed
Read paths check
.openwork/openwork.jsonfirst, fall back to.opencode/openwork.json, default to.openwork/for new workspaces.Write paths always target
.openwork/openwork.json.Migration copies (not moves) the legacy file on first boot. Idempotent, never overwrites a different target, graceful on filesystem errors.
Watchers detect
openwork.jsonchanges in both directories. Server reload-watcher has a dedicated legacy watcher on.opencode/and a tree watcher on.openwork/. Tauri desktop watcher now watches.openwork/alongside.opencode/.Inbox/outbox moved from
.opencode/openwork/inboxto.openwork/inbox(server and server-v2).Export/import includes both
.opencode/and.openwork/in archives, validates at least one exists on import.Docs updated: AGENTS.md, ARCHITECTURE.md, server README, tauri-audit PRD.
New files
apps/server/src/config-migration.ts-- migration logicapps/server/src/workspace-files.ts-- path resolution with fallbackTest plan
bun testserver (15 pass)bun testserver-v2 (4 pass)cargo checkTauri desktop (compiles clean)tsc --noEmitserver (0 errors on source files)