You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/opencode/specs/effect/migration.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Use `InstanceState` (from `src/effect/instance-state.ts`) for services that need
9
9
Use `makeRuntime` (from `src/effect/run-service.ts`) to create a per-service `ManagedRuntime` that lazily initializes and shares layers via a global `memoMap`. Returns `{ runPromise, runFork, runCallback }`.
10
10
11
11
- Global services (no per-directory state): Account, Auth, AppFileSystem, Installation, Truncate, Worktree
12
-
- Instance-scoped (per-directory state via InstanceState): Agent, Bus, Command, Config, File, FileTime, FileWatcher, Format, LSP, MCP, Permission, Plugin, ProviderAuth, Pty, Question, SessionStatus, Skill, Snapshot, ToolRegistry, Vcs
12
+
- Instance-scoped (per-directory state via InstanceState): Agent, Bus, Command, Config, File, FileWatcher, Format, LSP, MCP, Permission, Plugin, ProviderAuth, Pty, Question, SessionStatus, Skill, Snapshot, ToolRegistry, Vcs
13
13
14
14
Rule of thumb: if two open directories should not share one copy of the service, it needs `InstanceState`.
15
15
@@ -195,7 +195,6 @@ This checklist is only about the service shape migration. Many of these services
195
195
-[x]`Config` — `config/config.ts`
196
196
-[x]`Discovery` — `skill/discovery.ts` (dependency-only layer, no standalone runtime)
197
197
-[x]`File` — `file/index.ts`
198
-
-[x]`FileTime` — `file/time.ts`
199
198
-[x]`FileWatcher` — `file/watcher.ts`
200
199
-[x]`Format` — `format/index.ts`
201
200
-[x]`Installation` — `installation/index.ts`
@@ -301,7 +300,6 @@ For each service, the migration is roughly:
301
300
-`SessionRunState` — migrated 2026-04-11. Single caller in `server/instance/session.ts` converted; facade removed.
302
301
-`Account` — migrated 2026-04-11. Callers in `server/instance/experimental.ts` and `cli/cmd/account.ts` converted; facade removed.
0 commit comments