SetSink (notice/notice.go)

pi-go · internal/notice/notice.go · go · MIT
auth

Package notice carries short, user-facing messages raised while pi-go starts up or reconfigures itself — a skipped MCP server, a rerouted docs source, a blocked skill, an OAuth re-login. These are not diagnostics, and os.Stderr is the wrong place for them once a front end owns th

// Source: https://github.com/dimetron/pi-go | License: MIT | Copyright 2026 Dmytro Rashko
// Provided via justclaw.it.com; keep this notice with the code.
// Package notice carries short, user-facing messages raised while pi-go starts
// up or reconfigures itself — a skipped MCP server, a rerouted docs source, a
// blocked skill, an OAuth re-login.
//
// These are not diagnostics, and os.Stderr is the wrong place for them once a
// front end owns the terminal: the TUI paints its frame with direct cursor
// control, so a stray write lands in the middle of the layout and stays there
// until the next full repaint, and the ACP server interleaves them with its
// protocol stream. Routing them through a sink lets the front end render them
// where the user is already looking.
//
// The default

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key