Skip to content

fix(inventory): surface failed scan errors in host inventory tab#191

Merged
simonjcarr merged 1 commit into
mainfrom
fix/inventory-failed-scan-visibility
Apr 15, 2026
Merged

fix(inventory): surface failed scan errors in host inventory tab#191
simonjcarr merged 1 commit into
mainfrom
fix/inventory-failed-scan-visibility

Conversation

@simonjcarr
Copy link
Copy Markdown
Collaborator

Summary

  • When a software_inventory task fails (agent returns exit_code != 0), the inventory tab now shows a red error banner with the agent's raw output (the progress log)
  • This makes it immediately clear when a scan failed and why — without needing to SSH in or dig through logs
  • Only shown when there's no active scan in progress; the banner is dismissed automatically when a subsequent scan succeeds

Why

AlmaLinux 9 and Ubuntu hosts are completing scans with exit_code=0 but writing 0 packages, or failing silently. The UI was showing an empty inventory with no indication of what went wrong. This change surfaces the failure state directly in the UI.

Test plan

  • Trigger a rescan on a host where the agent fails
  • Confirm the red "Last scan failed" banner appears with the agent output
  • Trigger a successful rescan — banner should disappear

🤖 Generated with Claude Code

When a software_inventory task fails (agent exits with non-zero code),
the UI now shows the failure and the agent's raw output so the root
cause is visible without needing to check logs manually.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@simonjcarr simonjcarr merged commit cb94381 into main Apr 15, 2026
8 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.

1 participant