Skip to content

fix: redraw before notify and warn on unsupported capability paths#320

Merged
barrettruth merged 1 commit intomainfrom
fix/logger-visibility
Apr 18, 2026
Merged

fix: redraw before notify and warn on unsupported capability paths#320
barrettruth merged 1 commit intomainfrom
fix/logger-visibility

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

In fzf-lua terminal mode, top-level warnings and picker-local notifications were easy to miss. Two underlying issues: the logger was calling vim.notify and then vim.cmd.redraw(), which is the exact ordering Neovim docs warn about (:help :echo-redraw) because a later redraw can wipe the message. Separately, several picker-level capability failures were emitted as info rather than warn, so genuine lack-of-support conditions were presented at the lowest severity.

Solution

Flip the logger to redraw before notifying so the message lands after the terminal settles, and upgrade four capability-failure paths in lua/forge/pickers.lua from info to warn: missing check log URL, skipped-check job, no structured checks support, and no structured CI support. Specs updated accordingly and two new picker specs cover the unsupported structured-checks and structured-CI branches. Closes #281 and #291.

Logger notified before redrawing, which could wipe messages while the
fzf-lua terminal window was active. Redraw first so the message lands
after the terminal settles.

Also reclassify picker-level unavailable/unsupported capability paths
from info to warn:

- logs not available, use browse to view
- no log available - job was not started
- structured checks not available for this forge
- structured CI data not available for this forge

Closes #281
Closes #291
@barrettruth barrettruth merged commit bcb86ab into main Apr 18, 2026
8 checks passed
@barrettruth barrettruth deleted the fix/logger-visibility branch April 18, 2026 22:29
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.

logging

1 participant