Repository navigation
fix(gateway-protocol): include SessionWorktreeInfo and SessionsCreateResult in type-only exports - #100871
Closed
cxbAsDev wants to merge 1 commit into
Closed
fix(gateway-protocol): include SessionWorktreeInfo and SessionsCreateResult in type-only exports#100871cxbAsDev wants to merge 1 commit into
cxbAsDev wants to merge 1 commit into
Conversation
…teResult in type-only block
Contributor
Author
|
Closing this PR because upstream/main has independently fixed the same |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an upstream
mainbreakage wherepackages/gateway-protocol/src/index.tsfailed TypeScript checks becauseSessionWorktreeInfoandSessionsCreateResultwere exported through the mixed type/value export block but were not included in the explicitexport type { ... }block. This causedtsgo:core/tsgo:extensionsto report them as unused, and the plugin-sdk boundary declaration emit to report duplicate identifiers, which in turn failedcheck-lint,check-prod-types,check-test-types, and the extension boundary checks for any PR rebased on currentmain.Why This Change Was Made
The recently introduced gateway-protocol barrel (
packages/gateway-protocol/src/index.ts) exports session-related types in two places: a mixedexport { ... } from "./schema.js"block and a dedicatedexport type { ... }block.SessionWorktreeInfoandSessionsCreateResultwere missing from the type-only block, leaving their value bindings unread inside the module. Adding them to the type-only block satisfies TypeScript without changing the public export surface.User Impact
No direct user-facing change. This restores a green CI baseline for builds and PRs that depend on the gateway-protocol barrel.
Evidence
Before this change, on a clean
upstream/maincheckout:After this change:
CI checks that were failing on unrelated PRs because of this file (
check-lint,check-prod-types,check-test-types,check-additional-extension-*) should now be unblocked.