Kit Langton
2a0c9da40b
Merge branch 'dev' into kit/effect-bus
2026-03-19 12:22:09 -04:00
Kit Langton
81f71c9b30
fix(bus): GlobalBus bridge for InstanceDisposed + forceInvalidate + Effect tests
...
Legacy subscribeAll delivers InstanceDisposed via GlobalBus because
the fiber starts asynchronously and may not be running when disposal
happens. This bridge can be removed once upstream PubSub.shutdown
properly wakes suspended subscribers.
Add forceInvalidate in Instances that closes the RcMap entry scope
regardless of refCount. Standard RcMap.invalidate bails when
refCount > 0 — an upstream issue (Effect-TS/effect-smol#1799 ).
Add PubSub shutdown finalizer to Bus layer so layer teardown
properly cleans up PubSubs.
Add Effect-native tests proving forkScoped + scope closure works
correctly: ensuring fires when the scope closes, streams receive
published events.
Remove stale GlobalBus disposal test (instance.ts responsibility).
2026-03-19 12:17:39 -04:00
Aiden Cline
aeece6166b
ignore: revert 3 commits that broke dev branch ( #18260 )
2026-03-19 11:15:07 -05:00
Kit Langton
0d7e62a532
fix forked prompt attachments losing file parts ( #17815 )
2026-03-19 12:00:32 -04:00
opencode-agent[bot]
d178d8249f
chore: generate
2026-03-19 14:00:32 +00:00
Shoubhit Dash
e6f5214779
feat: add git-backed session review modes ( #17961 )
2026-03-19 19:29:29 +05:30
Kit Langton
992f4f794a
fix(bus): use GlobalBus for InstanceDisposed in legacy subscribeAll
...
The sync callback API can't wait for async layer acquisition, so
delivering InstanceDisposed through the PubSub stream is a race
condition. Instead, the legacy subscribeAll adapter listens on
GlobalBus for InstanceDisposed matching the current directory.
The Effect service's stream ending IS the disposal signal for
Effect consumers — this is only needed for the legacy callback API.
Also reverts forceInvalidate, fiber tracking, priority-based
disposal, and other workaround attempts. Clean simple solution.
2026-03-19 09:40:39 -04:00
Kit Langton
f3cf519d98
feat(bus): migrate Bus to Effect service with PubSub internals
...
Add Bus.Service as a ServiceMap.Service backed by Effect PubSub:
- publish() pushes to per-type + wildcard PubSubs and GlobalBus
- subscribe() returns a typed Stream via Stream.fromPubSub
- subscribeAll() returns a wildcard Stream
Legacy adapters wrap the Effect service:
- publish → runPromiseInstance
- subscribe/subscribeAll → runCallbackInstance with Stream.runForEach
Other changes:
- Register Bus.Service in Instances LayerMap
- Add runCallbackInstance helper to effect/runtime
- Remove unused Bus.once (zero callers)
- Skip PubSub creation on publish when no subscribers exist
- Move subscribe/unsubscribe logging into the Effect service layer
2026-03-18 21:36:04 -04:00
Kit Langton
645c15351b
test(bus): add comprehensive test suite for Bus service
...
Covers publish/subscribe, multiple subscribers, unsubscribe, subscribeAll,
once, GlobalBus forwarding, instance isolation, disposal, and async subscribers.
2026-03-18 21:05:36 -04:00
Kit Langton
f63a2a2636
fix(bus): tighten GlobalBus payload and BusEvent.define types
...
Constrain BusEvent.define to ZodObject instead of ZodType so TS knows
event properties are always a record. Type GlobalBus payload as
{ type: string; properties: Record<string, unknown> } instead of any.
Refactor watcher test to use Bus.subscribe instead of raw GlobalBus
listener, removing hand-rolled event types and unnecessary casts.
2026-03-18 20:57:08 -04:00
Kit Langton
84e62fc662
fix(session): preserve tagged error messages ( #18165 )
2026-03-18 20:36:53 -04:00
Luke Parker
5d2f8d77f9
fix: restore recent test regressions and upgrade effect beta ( #18158 )
2026-03-19 09:54:01 +10:00
Kit Langton
81be544981
feat(filesystem): add AppFileSystem service, migrate Snapshot ( #18138 )
2026-03-18 19:52:43 -04:00
opencode-agent[bot]
773c1192dc
chore: generate
2026-03-18 23:45:03 +00:00
Kit Langton
5ddfe4ada5
chore: type Provider.list() as Record<ProviderID, Info>, delete dead code ( #18123 )
2026-03-18 19:43:12 -04:00
Luke Parker
54ed87d53c
fix(windows): use cross-spawn for shim-backed commands ( #18010 )
2026-03-19 08:49:16 +10:00
opencode-agent[bot]
c3ddc85cca
chore: generate
compliance-close / close-non-compliant (push) Has been cancelled
deploy / deploy (push) Has been cancelled
docs-locale-sync / sync-locales (push) Has been cancelled
generate / generate (push) Has been cancelled
nix-eval / nix-eval (push) Has been cancelled
publish / version (push) Has been cancelled
publish / build-cli (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-4vcpu-ubuntu-2404 target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-4vcpu-windows-2025 target:x86_64-pc-windows-msvc]) (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-8vcpu-ubuntu-2404-arm target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-tauri (map[host:macos-latest target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-tauri (map[host:macos-latest target:x86_64-apple-darwin]) (push) Has been cancelled
publish / build-tauri (map[host:windows-2025 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-windows-2025 platform_flag:--win target:x86_64-pc-windows-msvc]) (push) Has been cancelled
publish / build-electron (map[host:macos-latest platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[host:macos-latest platform_flag:--mac --x64 target:x86_64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[host:windows-2025 platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / publish (push) Has been cancelled
test / unit (linux) (push) Has been cancelled
test / unit (windows) (push) Has been cancelled
test / e2e (linux) (push) Has been cancelled
test / e2e (windows) (push) Has been cancelled
typecheck / typecheck (push) Has been cancelled
beta / sync (push) Has been cancelled
containers / build (push) Has been cancelled
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Has been cancelled
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Has been cancelled
nix-hashes / compute-hash (macos-15-intel, x86_64-darwin) (push) Has been cancelled
nix-hashes / compute-hash (macos-latest, aarch64-darwin) (push) Has been cancelled
storybook / storybook build (push) Has been cancelled
nix-hashes / update-hashes (push) Has been cancelled
2026-03-18 17:37:40 +00:00
Kit Langton
a800583aea
refactor(effect): unify service namespaces and align naming ( #18093 )
2026-03-18 13:34:36 -04:00
opencode-agent[bot]
0292f1b559
chore: generate
2026-03-18 02:01:02 +00:00
Kit Langton
5dfe86dcb1
refactor(truncation): effectify TruncateService, delete Scheduler ( #17957 )
2026-03-17 21:59:54 -04:00
Ariane Emory
4b4dd2b882
fix: Add apply_patch to EDIT_TOOLS filter ( #18009 )
2026-03-17 20:11:42 -05:00
opencode-agent[bot]
bc949af623
chore: generate
2026-03-18 01:05:16 +00:00
Kit Langton
9e7c136de7
refactor(snapshot): effectify SnapshotService ( #17878 )
2026-03-17 21:04:16 -04:00
Luke Parker
cb69501098
test(opencode): deflake file and tool timing ( #17859 )
2026-03-17 00:49:04 +00:00
Kit Langton
3849822769
refactor(skill): effectify SkillService as scoped service ( #17849 )
2026-03-16 23:51:07 +00:00
Kit Langton
69381f6aea
refactor(file): effectify FileService as scoped service ( #17845 )
2026-03-16 16:18:39 -04:00
Kit Langton
335356280c
refactor(format): effectify FormatService as scoped service ( #17675 )
2026-03-16 15:58:36 -04:00
Kit Langton
2cbdf04ec9
refactor(file-time): effectify FileTimeService with Semaphore locks ( #17835 )
2026-03-16 18:23:13 +00:00
Kit Langton
e5cbecf17c
fix+refactor(vcs): fix HEAD filter bug and effectify VcsService ( #17829 )
2026-03-16 13:59:11 -04:00
Kit Langton
9e740d9947
stack: effectify-file-watcher-service ( #17827 )
2026-03-16 13:18:40 -04:00
Kit Langton
469c3a4204
refactor(instance): move scoped services to LayerMap ( #17544 )
2026-03-16 12:55:14 -04:00
Johannes Loher
e718db624f
fix(core): consider code: context_length_exceeded as context overflow in API call errors ( #17748 )
2026-03-16 10:25:24 -05:00
Luke Parker
59c530cc6c
fix(opencode): teach Kit's test what an ID is ( #17745 )
2026-03-16 18:08:27 +10:00
Jason Quense
c2ca1494e5
fix(opencode): preserve prompt tool enables with empty agent permissions ( #17064 )
...
Co-authored-by: jquense <jquense@ramp.com >
2026-03-15 23:01:46 -05:00
Kit Langton
f015154314
refactor(permission): effectify PermissionNext + fix InstanceState ALS bug ( #17511 )
2026-03-14 18:28:00 +00:00
opencode-agent[bot]
b698f14e55
chore: generate
2026-03-14 15:59:01 +00:00
Kit Langton
cec1255b36
refactor(question): effectify QuestionService ( #17432 )
2026-03-14 11:58:00 -04:00
Michael Dwan
4b9b86b544
fix(opencode): lost sessions across worktrees and orphan branches ( #16389 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com >
2026-03-13 15:51:55 -04:00
Kit Langton
c7a52b6a2d
feat(schema): scaffold effect-to-zod bridge ( #17273 )
2026-03-13 10:59:57 -04:00
Shoubhit Dash
d4ae13f2a0
fix(opencode): serialize config bun installs ( #17342 )
2026-03-13 17:58:00 +05:30
Adam
843f188aaa
fix(app): support text attachments ( #17335 )
2026-03-13 06:58:24 -05:00
Shoubhit Dash
9457493696
perf(server): paginate session history ( #17134 )
2026-03-13 15:48:43 +05:30
Aiden Cline
f8475649da
chore: cleanup migrate from global code ( #17292 )
deploy / deploy (push) Has been cancelled
generate / generate (push) Has been cancelled
nix-eval / nix-eval (push) Has been cancelled
publish / version (push) Has been cancelled
storybook / storybook build (push) Has been cancelled
test / unit (linux) (push) Has been cancelled
test / unit (windows) (push) Has been cancelled
typecheck / typecheck (push) Has been cancelled
publish / build-cli (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-4vcpu-ubuntu-2404 target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-4vcpu-windows-2025 target:x86_64-pc-windows-msvc]) (push) Has been cancelled
publish / build-tauri (map[host:blacksmith-8vcpu-ubuntu-2404-arm target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-tauri (map[host:macos-latest target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-tauri (map[host:macos-latest target:x86_64-apple-darwin]) (push) Has been cancelled
publish / build-tauri (map[host:windows-2025 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:aarch64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:x86_64-unknown-linux-gnu]) (push) Has been cancelled
publish / build-electron (map[host:blacksmith-4vcpu-windows-2025 platform_flag:--win target:x86_64-pc-windows-msvc]) (push) Has been cancelled
publish / build-electron (map[host:macos-latest platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[host:macos-latest platform_flag:--mac --x64 target:x86_64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[host:windows-2025 platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / publish (push) Has been cancelled
test / e2e (linux) (push) Has been cancelled
test / e2e (windows) (push) Has been cancelled
2026-03-12 23:54:11 -05:00
Michael Dwan
b94e110a4c
fix(opencode): sessions lost after git init in existing project ( #16814 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com >
2026-03-12 23:18:59 -05:00
Tom Ryder
4a2a046d79
fix: filter empty content blocks for Bedrock provider ( #14586 )
2026-03-12 22:13:09 -05:00
Kit Langton
dd68b85f58
refactor(provider): effectify ProviderAuthService ( #17227 )
2026-03-13 02:08:37 +00:00
Kit Langton
1cb7df7159
refactor(provider): flow branded ProviderID/ModelID through internal signatures ( #17182 )
2026-03-12 14:48:17 +00:00
Kit Langton
c45467964c
feat(id): brand ProviderID and ModelID ( #17110 )
2026-03-12 09:27:52 -04:00
Kit Langton
2a4dedc210
feat(id): brand PermissionID, PtyID, QuestionID, and ToolID ( #17042 )
2026-03-12 01:49:57 +00:00
Kit Langton
090f636354
feat(id): brand PartID through Drizzle and Zod schemas ( #16966 )
2026-03-11 23:40:50 +00:00