fix(windows): make recovery decisions observable and CLI guidance visible#1158
Merged
Conversation
…ible - daemon: log the composed typed recovery request (instance, problem code, flash_completed) or the none-composed summary (device counts) — recovery decisions drive the CLI --admin flow and must be auditable after the fact - cli: recovery guidance printed through output::warn rode the tracing WARN channel, which the default filter suppresses — the user saw no known-unhealthy diagnosis and no --admin hint. Route all recovery messaging through output::diagnostic, whose contract is exactly final operation diagnostics that must stay visible Live-verified on the wedged board: default-policy deploy now prints the exact devnode + problem code and the --admin/manual-BOOTSEL guidance without elevating. Refs #1152 #1149 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe deploy recovery flow changes several CLI messages from warnings to diagnostics and adds structured logging around RP2040 recovery-request composition. Recovery and retry behavior remain unchanged. ChangesUSB recovery observability
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1152 / meta #1149. Two gaps found during live hardware closeout on the wedged board (serial 5303284720C4641C): the daemon composed the typed recovery request silently (no audit trail), and the CLI guidance was emitted at tracing WARN, which the default filter suppresses — the user saw no diagnosis and no --admin hint. Daemon now logs composed/none-composed decisions; CLI recovery messaging moved to output::diagnostic. Live-verified: default-policy deploy prints the exact devnode (problem 28) + guidance without elevating.
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Diagnostics