Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

304 B
Raw Blame
//go:build !windows

package tui

import (
	"os/exec"
	"syscall"
)

// detach keeps a started magpie out of this one's session, so it outlives
// it and its terminal.
func detach(cmd *exec.Cmd) {
	if cmd.SysProcAttr == nil {
		cmd.SysProcAttr = &syscall.SysProcAttr{}
	}
	cmd.SysProcAttr.Setsid = true
}