- Rename shared/server status fields and detectors from hostingProvider to sourceControlProvider
- Move provider schema into contracts/sourceControl and update status/event tests
- Refresh branch toolbar labels from switchRef to checkout
- Detect GitHub, GitLab, and Azure DevOps remotes in the shared parser
- Cache provider resolution and return unsupported stubs for unregistered kinds
- Remove deprecated git RPCs from the web IPC surface
- Route git workflows through source control providers
- Replace git status broadcaster with VCS status service
- Update orchestration, server, and web contracts for provider-aware git
- Replace ad hoc `succeed` casts with `Layer.mock` in integration and reactor tests
- Keep Git VCS driver fixtures type-safe while preserving existing test behavior
- Switch integration and contract tests to Effect/Vitest assertions
- Avoid platform-specific realpath assumptions in repository identity checks
- Use Path service for portable test file and worktree path handling
- Simplify shared test helpers and temp repo setup
- Switch the test layer wiring to merge Node services
- Remove unused shell/process scaffolding from the spec
- Route checkpointing and workspace services through a VCS driver registry
- Split git driver construction from the driver service wrapper
- Update tests and harnesses to mock the registry instead of the raw driver
- Introduce a dedicated `GitVcsDriver` service and `vcsLayer`
- Update server, orchestration, and workspace wiring to use the new layer
- Adjust tests and mocks for the new git-specific dependency
- Switch GitVcsDriver and VcsProcess usages to namespace imports
- Update server and integration wiring to use `.layer` consistently
- Keep test type annotations aligned with the exported service types
- Move VcsDriver and VcsProcess out of nested service/layer paths
- Update server, workspace, orchestration, and tests to use new exports
- Rename layer exports to `layer` for consistency
- Replace direct GitCore dependencies with VcsDriver and VcsProcess
- Move checkpointing, workspace, and orchestration flows onto the new VCS abstraction
- Drop workspace-specific git helpers from GitCore
OpenCode can leave the long-lived serve child in the spawned process group after the wrapper exits. Provider refresh owns only a scoped inventory probe, so cleanup targets that local process group when the refresh scope closes.
Constraint: Keep active OpenCode thread sessions scoped to their own session lifecycle.
Rejected: Disable provider refresh | would hide model and auth state changes.
Confidence: high
Scope-risk: narrow
Tested: bun run test src/provider/Layers/OpenCodeProvider.test.ts src/provider/Layers/OpenCodeAdapter.test.ts
Tested: bun fmt
Tested: bun lint
Tested: bun typecheck
Tested: bun run build:desktop