Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Feat: Support running Cortex natively on Windows (no WSL)

Aperta
#1,520 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, devops

Direzione di ricerca

Start with the Windows build failures listed in the issue: core/bootstrap/bootstrap.go, cmd_bob_launch.go, setup_unsupervised.go, cmd_service_platform.go, and setup_probe.go. Then audit the POSIX assumptions named in the issue and check the existing launchd and systemd service implementations. Done means Cortex and agentop build and run natively on Windows, the listed platform needs are addressed, and CI checks Windows builds.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Motivation

Some users run coding agents (e.g. opencode) on locked-down Windows VDIs. These don't support virtualization, so WSL isn't an option. Today Cortex only builds and installs on Linux and macOS.

Current state (GOOS=windows GOARCH=amd64 go build on main)
  • cmd/cortex fails in one place: core/bootstrap/bootstrap.go:67 uses syscall.SIGUSR1 (the log-level toggle). With that guarded, the proxy may build as-is.
  • cmd/agentop fails on:
    • cmd_bob_launch.go:220 and setup_unsupervised.go:30: SysProcAttr{Setsid: true}
    • cmd_service_platform.go:342,421 and setup_probe.go:213: syscall.Kill, including Kill(pid, 0) used as a liveness probe
Work needed
  1. Move the Unix-only signal and process code behind _unix.go/_windows.go files:
    • Replace the SIGUSR1 toggle on Windows (e.g. a stats/admin endpoint or an agentop command).
    • Detach processes with CREATE_NEW_PROCESS_GROUP/DETACHED_PROCESS instead of Setsid.
    • Check liveness with OpenProcess instead of Kill(pid, 0).
  2. Add a service backend: agentop service install only knows launchd and systemd. Windows needs a Task Scheduler logon task or a Windows service, or should fall back to --no-service plus the built-in supervisor (cmd/cortex/supervise.go).
  3. Audit the remaining POSIX assumptions:
    • cmd_exec.go relays SIGHUP.
    • Shell-based installer (install.sh) → PowerShell installer or a release zip.
    • $HOME/~/.config paths → %APPDATA%/os.UserConfigDir.
    • File permissions and locking.
    • Trusting the CA cert for the TLS bridge in the Windows cert store.
    • Launching agents (opencode etc.) from agentop.
  4. CI: add a GOOS=windows cross-compile job so it doesn't regress, and ideally a windows-latest test run.

The build results only cover compilation. Nothing has been run on Windows yet, so step 3 is a list of things to check, not confirmed bugs.

Requested by Lucas Showerman (opencode on a client Windows VDI).

Lingua principale
Go
Stelle
21
Fork
43
Merge medio
14h 25m
PR unite (30g)
245

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rossoctl/cortex

Tutte le issue di rossoctl/cortex

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.