Skip to content

feat: add support for agentsock on Windows#22171

Merged
spikecurtis merged 1 commit intomainfrom
spike/21335-agentsock-windows
Feb 20, 2026
Merged

feat: add support for agentsock on Windows#22171
spikecurtis merged 1 commit intomainfrom
spike/21335-agentsock-windows

Conversation

@spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Feb 18, 2026

relates to #21335

Adds support for the agentsock and thus coder exp sync commands on Windows. This support was initially missing.

Copy link
Contributor Author

spikecurtis commented Feb 18, 2026

@spikecurtis spikecurtis requested review from SasSwart and mafredri and removed request for mafredri February 18, 2026 12:16
@spikecurtis spikecurtis marked this pull request as ready for review February 18, 2026 12:17
@spikecurtis spikecurtis force-pushed the spike/21335-agentsock-windows branch 2 times, most recently from 6513c6a to 87bb4d8 Compare February 18, 2026 12:22
logger := slog.Make().Leveled(slog.LevelDebug)
server, err := agentsocket.NewServer(logger, agentsocket.WithPath(socketPath))
require.NoError(t, err)
require.NoError(t, server.Close())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just dupes StartStop so I removed.

@spikecurtis spikecurtis force-pushed the spike/21335-agentsock-windows branch from 87bb4d8 to ec9ff80 Compare February 19, 2026 06:18
@coder-tasks
Copy link
Contributor

coder-tasks bot commented Feb 19, 2026

Documentation Check

Updates Needed

  • docs/admin/templates/startup-coordination/troubleshooting.md - The troubleshooting steps use Linux-specific commands (/proc/$(pidof -s coder)/environ, Unix socket paths like dial unix /tmp/coder-agent.sock) that won't work on Windows. Now that Windows is supported via named pipes, the doc should note Windows-equivalent steps or add platform-specific callouts for the verification command.

Automated review via Coder Tasks

Copy link
Contributor

@SasSwart SasSwart left a comment

Choose a reason for hiding this comment

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

I've spent an hour or so looking into go-winio and named pipes to gather context for this Code review. Given what I've been able to read, this looks good!

@spikecurtis spikecurtis force-pushed the spike/21335-agentsock-windows branch from 8928981 to 5531809 Compare February 20, 2026 11:52
@spikecurtis spikecurtis merged commit 1069ce6 into main Feb 20, 2026
26 checks passed
Copy link
Contributor Author

Merge activity

@spikecurtis spikecurtis deleted the spike/21335-agentsock-windows branch February 20, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants