Kit Langton
cb588ab4b9
fix(bus): acquire PubSub subscription eagerly to close /event race
...
`bus.subscribe(def)` and `bus.subscribeAll()` previously returned a
`Stream` whose underlying `PubSub.subscribe` ran lazily on first pull
(via `Stream.unwrap`). When a Stream was built in one place and consumed
in another — e.g. the `/event` SSE handler, which returns the stream
inside `HttpServerResponse.stream` for the body-pump fiber to consume
later — any publish in the hand-off window was lost.
The `/event` handler's `Stream.concat(server.connected, events)` shape
made this concrete: the events stream's PubSub.subscribe was only run
*after* `server.connected` was emitted and flushed to the socket, so
publishes that landed between the client receiving `server.connected`
and the body-pump fiber pulling from `events` were silently dropped.
SDK consumers (`client.event.subscribe()`, the Slack bot,
`opencode run --attach`) hit this routinely because they typically
subscribe and then trigger something that publishes (e.g.
`sdk.part.update`).
Change the bus interface so subscribe / subscribeAll return
`Effect<Stream, never, Scope>`. The subscription is now acquired
eagerly when the caller yields the effect, lives in the caller's
scope, and is released by the scope's finalizer. Any publish after
`yield*` is buffered into the subscription queue regardless of when
the consumer activates.
Migrated callers:
- /event handler (handlers/event.ts)
- plugin/index.ts
- project/project.ts
- project/vcs.ts
- share/share-next.ts
Regression tests added:
- test/bus/bus-effect.test.ts — 3 unit tests for eager subscribe,
including the /event-shape Stream.concat pattern.
- test/server/httpapi-event-diagnostics.test.ts — 7 diagnostic
tests (D1-D7) isolating each variable in the publisher chain. D7
(no-op AppRuntime warmup) is the smallest regression trigger.
- test/server/httpapi-sdk.test.ts — end-to-end SDK subscription
through /event during a sync.run-driven publish.
2026-05-16 22:32:55 -04:00
opencode
f80651fa91
sync release versions for v1.15.3
2026-05-16 14:07:33 +00:00
Shoubhit Dash
68af95390d
fix: hide task background instructions by default ( #27872 )
2026-05-16 19:18:15 +05:30
opencode-agent[bot]
321db7a819
chore: generate
2026-05-16 13:27:23 +00:00
Dax Raad
6d2219e001
fix(cli): preserve instance context in async commands
2026-05-16 09:25:45 -04:00
opencode-agent[bot]
dd432e3cde
chore: generate
2026-05-16 13:21:57 +00:00
Dax Raad
77db212a0a
fix read stream byte cap
2026-05-16 09:20:35 -04:00
opencode
f56263791c
sync release versions for v1.15.2
2026-05-16 12:53:10 +00:00
Dax Raad
88363f1ed9
fixed issue in opencode run
2026-05-16 08:27:25 -04:00
Dax
53849bd866
fix(sync): publish events on injected project bus ( #27825 )
compliance-close / close-non-compliant (push) Has been cancelled
beta / sync (push) Has been cancelled
docs-update / update-docs (push) Has been cancelled
deploy / deploy (push) Has been cancelled
generate / generate (push) Has been cancelled
nix-eval / nix-eval (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
nix-hashes / update-hashes (push) Has been cancelled
publish / version (push) Has been cancelled
publish / build-cli (push) Has been cancelled
publish / sign-cli-windows (push) Has been cancelled
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=arm64 host:macos-26 platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Has been cancelled
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=x64 host:macos-26-intel platform_flag:--mac --x64 target:x86_64-apple-darwin]) (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-ubuntu-2404-arm platform_flag:--linux --arm64 target:aarch64-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:windows-2025 platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Has been cancelled
publish / publish (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
test / e2e (linux) (push) Has been cancelled
test / e2e (windows) (push) Has been cancelled
typecheck / typecheck (push) Has been cancelled
containers / build (push) Has been cancelled
stats / stats (push) Has been cancelled
close-prs / close (push) Has been cancelled
close-issues / close (push) Has been cancelled
2026-05-16 05:56:49 +00:00
opencode
e33912bfee
sync release versions for v1.15.1
2026-05-16 05:44:44 +00:00
Aiden Cline
548648a3d9
core: reduce prompts for shell, todowrite, and task tools ( #26821 )
2026-05-16 00:18:47 -05:00
Dax Raad
042e6a5c86
tui: newly pinned sessions now append to the end of the list instead of jumping to the top
2026-05-15 23:57:40 -04:00
Dax Raad
e36d6a0cbe
core: clarify postinstall error message when binary is missing
...
Users installing with pnpm or --ignore-scripts now see a clear explanation
of why the native binary is missing and exact steps to fix it. The shell
script wrapper provides more actionable guidance than the previous Node.js
fallback that only suggested running the postinstall script without context
about why it wasn't run automatically.
2026-05-15 23:12:00 -04:00
Sebastian
cc9c0b15c7
Revert "add dialog prompt submit keybind ( #27807 )" ( #27815 )
2026-05-16 04:44:32 +02:00
Kit Langton
f3b0d3d7ac
fix(tui): dedupe consecutive prompt history entries ( #27816 )
2026-05-16 02:36:35 +00:00
Sebastian
d441e931f9
add dialog prompt submit keybind ( #27807 )
2026-05-16 03:11:46 +02:00
opencode-agent[bot]
d6b23fd8f6
chore: generate
2026-05-16 00:44:10 +00:00
Kit Langton
5911bd532d
fix(tui): show config error details on startup ( #27803 )
2026-05-15 20:42:56 -04:00
Dax Raad
2385123f03
Fix thinking toggle defaults
2026-05-15 20:27:36 -04:00
Dax
09549661e1
Fix npm CLI binary installation ( #27801 )
2026-05-15 18:43:37 -04:00
Sebastian
0f31fd631b
Fix multiline mentions ( #27649 )
2026-05-15 23:04:20 +02:00
Sebastian
aa07e21945
handle undefined tips ( #27635 )
2026-05-15 23:04:00 +02:00
Shoubhit Dash
f060874b29
feat(tui): add minimal thinking mode with click-to-expand ( #27623 )
2026-05-16 02:09:58 +05:30
Shoubhit Dash
65f96a5851
refactor(instance): retire WithInstance adapter ( #27782 )
2026-05-16 01:30:07 +05:30
Aiden Cline
48122b31cc
fix(tool): bridge custom tool zod metadata ( #27770 )
2026-05-15 14:50:21 -05:00
opencode-agent[bot]
0df2f5b45f
chore: generate
2026-05-15 19:48:45 +00:00
Shoubhit Dash
499e8e4b78
test(instance): add effect-native fixture helpers ( #27781 )
2026-05-16 01:17:37 +05:30
Shoubhit Dash
f33b4455a1
feat(tui): enable pinned session switching ( #27780 )
2026-05-16 01:10:16 +05:30
Shoubhit Dash
a24abd2b11
refactor(lsp): require explicit instance context ( #27767 )
2026-05-16 00:46:27 +05:30
opencode-agent[bot]
d44bef2107
chore: generate
2026-05-15 18:45:24 +00:00
Shoubhit Dash
f99339e525
fix(tui): keep session switching pinned-only ( #27775 )
2026-05-16 00:14:07 +05:30
Shoubhit Dash
2b0e72ab79
refactor(workspace): centralize adapter invocation ( #27768 )
2026-05-15 23:59:01 +05:30
Shoubhit Dash
2fdee50b3b
refactor(acp): extract runtime reentry ( #27769 )
2026-05-15 23:58:52 +05:30
opencode-agent[bot]
48293c5271
chore: generate
2026-05-15 17:37:07 +00:00
Shoubhit Dash
0c9cfe923f
refactor(instance): remove legacy runtime fallback ( #27757 )
2026-05-15 23:05:44 +05:30
opencode-agent[bot]
9975c1ed1c
chore: generate
2026-05-15 15:12:20 +00:00
Aiden Cline
ef7d801271
fix(tool): preserve custom tool arg descriptions ( #27750 )
...
Co-authored-by: khimaros <231498+khimaros@users.noreply.github.com >
2026-05-15 10:11:01 -05:00
opencode-agent[bot]
eb630075c3
chore: generate
2026-05-15 15:01:55 +00:00
Shoubhit Dash
a2392ca60d
refactor(worktree): provide runtime reentry refs ( #27754 )
2026-05-15 20:30:29 +05:30
opencode-agent[bot]
f9371eb66c
chore: generate
2026-05-15 14:36:04 +00:00
Shoubhit Dash
fa9a2cb24d
refactor(instance): remove remaining bind call sites ( #27731 )
2026-05-15 20:04:42 +05:30
Aiden Cline
c2ffd7cf14
fix: markdown table rendering ( #27747 )
2026-05-15 09:22:24 -05:00
Shoubhit Dash
1c7c03332e
test(workspace): avoid legacy instance reads ( #27727 )
2026-05-15 17:07:21 +05:30
opencode-agent[bot]
984eefa6f8
chore: generate
2026-05-15 11:02:14 +00:00
Shoubhit Dash
bf64f8cbb5
refactor(cli): dispose bootstrap instance explicitly ( #27721 )
2026-05-15 16:30:54 +05:30
opencode-agent[bot]
727a83aa7a
chore: generate
2026-05-15 10:46:06 +00:00
Shoubhit Dash
e65383810a
refactor(tool): read repo overview directory from instance state ( #27717 )
2026-05-15 16:14:49 +05:30
Shoubhit Dash
12b666e2c9
refactor(project): import instance context directly ( #27714 )
2026-05-15 15:59:56 +05:30
Shoubhit Dash
356f684186
refactor(flags): migrate skip migrations flag ( #27705 )
2026-05-15 14:54:29 +05:30