Merge pull request #3624 from gsd-build/fix/3591-bug-gsdtools-native-runtime-drops-workst

fix(3591): forward workstream to native registry dispatch
This commit is contained in:
Tom Boucher
2026-05-15 23:04:16 -04:00
committed by GitHub
3 changed files with 191 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
issue: 3591
---
**`createGSDToolsRuntime` now forwards the workstream to native registry dispatch** — the closure passed to `QueryNativeDirectAdapter.dispatch` previously called `registry.dispatch(command, args, projectDir)` and silently dropped `opts.workstream`. As a result, GSDTools-native query handlers ran against the root `.planning/` tree even when the GSDTools instance was created with a `workstream`. The closure now passes `opts.workstream` as the 4th argument, matching the `QuerySubprocessAdapter` path that already forwards it. Every native dispatch through the runtime bridge now routes planning-path queries to `.planning/workstreams/<name>/` when a workstream is set.