Skip to content

log history init failure via slog instead of stderr#2561

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/find-direct-stderr-stdout-error-prints-b-9f2af65c
Apr 28, 2026
Merged

log history init failure via slog instead of stderr#2561
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/find-direct-stderr-stdout-error-prints-b-9f2af65c

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 28, 2026

Writing directly to os.Stderr while the Bubble Tea TUI is starting up can corrupt the alt-screen rendering, and it was also inconsistent with the surrounding code (the sibling tuistate.New() failure right above it already uses slog.Warn).

Switch the history.New() failure path in pkg/tui/tui.go to use slog.Warn so it lands in the debug log like every other non-fatal TUI startup error.

@dgageot dgageot requested a review from a team as a code owner April 28, 2026 07:33
@dgageot dgageot merged commit 84f50c0 into docker:main Apr 28, 2026
9 checks passed
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