compose/cmd
Guillaume Lours b8fba27032 fix(progress): probe stderr (not stdout) for TTY auto-detection
The progress UI writes to dockerCli.Err() but the auto-mode selector
was probing dockerCli.Out().IsTerminal(), introduced when the
EventProcessor was moved to the CLI layer. Any context that pipes
stdout while keeping stderr attached — `docker compose up | tee log`,
some CI wrappers, PowerShell native-command capture — silently
dropped to plain mode.

Align the detection with the stream the renderer actually targets,
restoring v4 behavior. Extract the switch into selectEventProcessor
so the auto-mode logic can be unit-tested with a real pty pair.

Fixes docker/compose#13570

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-06-15 14:17:07 +02:00
..
cmdtrace golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
compatibility modernize some code 2026-02-12 15:31:35 +01:00
compose fix(progress): probe stderr (not stdout) for TTY auto-detection 2026-06-15 14:17:07 +02:00
display cmd/display: left-pad timers for right-aligned column 2026-03-20 15:14:05 +01:00
formatter feat: pre-filter Desktop Logs view by Compose project 2026-05-18 17:28:03 +02:00
prompt golangci-lint: use gci formatter instead of goimports 2025-12-01 12:21:50 +01:00
main.go feat: add Docker Desktop Logs view hints and navigation shortcut 2026-04-10 15:26:08 +02:00