Match task statuses case-insensitively and report unreachable uploads honestly #11
Loading…
Reference in a new issue
No description provided.
Delete branch "b/task-status-casing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude AI Code Review
Summary: Changes upload result to a record that distinguishes unreachable servers from rejections, and matches task statuses case-insensitively.
Code Quality ⭐⭐⭐⭐☆
Clean refactor with good test coverage for the new failure-distinction and casing behavior.
Issues
🟢 UploadTracker.cs — The status
switchnow usesToUpperInvariant()but the othercaselabels (not shown fully in diff) should be verified to all be uppercase; a lowercase case label would become unreachable. Worth confirming all branches were updated.🟢 PaperlessClient.cs — Distinguishing unreachable relies on
ex.InnerException is SocketException. Some transient/DNS failures surface differently (e.g.TaskCanceledExceptionon timeout, or nested exceptions), so those still fall into the "rejected" bucket. Not a bug in the tested paths, just narrower than the description implies.Minor confirmations only; logic and tests are sound.
📊 Tokens: 4539 input + 365 output | 💰 Cost: ~$0.0318
Generated by Claude Opus 4.8 via Gitea Actions