Skip to content

Cherry-pick #64818 into release-7.0 - #64822

Merged
Andrew Branch (andrewbranch) merged 1 commit into
microsoft:release-7.0from
andrewbranch:cherry-pick-64818-release-7.0
Oct 14, 2026
Merged

Andrew Branch (andrewbranch) merged 1 commit into
microsoft:release-7.0from
andrewbranch:cherry-pick-64818-release-7.0

Conversation

@andrewbranch

Copy link
Copy Markdown
Member

Cherry-pick #64818 into release-7.0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Platform-specific permissions, cleanup, and Unix path-contract changes require human confirmation of cross-platform validation before release approval.

0 open findings

What changed in this PR

Backports #64818 into release-7.0 to secure API socket and named-pipe creation.

Changes:

  • Creates private Unix socket directories with restricted permissions and cleanup.
  • Restricts Windows pipe access and randomizes sync API pipe names.
  • Adds transport tests and documents the Unix directory-path contract.
File Description
tsc/​internal/​lsp/​server.go Creates private transports and returns their actual paths.
tsc/​internal/​lsp/​lsproto/​lsp_generated.go Updates generated pipe parameter documentation.
tsc/​internal/​lsp/​lsproto/​_generate/​generate.mts Updates the source protocol documentation.
tsc/​internal/​api/​transport.go Adds private transport creation and cleanup handling.
tsc/​internal/​api/​transport_windows.go Restricts pipe access to the current user.
tsc/​internal/​api/​transport_windows_test.go Tests connectivity and pipe permissions.
tsc/​internal/​api/​transport_unix.go Creates private socket directories and cleans them up.
tsc/​internal/​api/​transport_unix_test.go Tests permissions, cleanup, and replacement preservation.
tsc/​internal/​api/​server.go Documents Unix pipe-path semantics.
tsc/​cmd/​tsc/​api.go Updates CLI help for private Unix sockets.
packages/​typescript/​src/​api/​syncChannel.ts Randomizes Windows sync API pipe names.
Files not reviewed (1)
  • tsc/internal/lsp/lsproto/lsp_generated.go: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@andrewbranch
Andrew Branch (andrewbranch) merged commit e26ac55 into microsoft:release-7.0 Oct 14, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants