scanDelta swallows search errors ai:claude-sonnet-5-5 #50
Labels
No labels
nagonag
nagonag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
IUS/xr-invoiced#50
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Priority: minor
Found by a 100 Go Mistakes review (#52/#53 error handling). Verified by reading the code.
Where:
internal/app/app.go:~305-320(SearchUIDserror branches, "search uids" / "search modseq")Problem: A failing
SearchUIDsis logged andscanDeltareturnsnil, so startup/reconnect proceeds as if the delta scan succeeded (state is not advanced, but the caller is not told). On an already broken connection the first IDLE fails and triggers a reconnect, which masks the original problem.Fix: Return the wrapped error, or at least record it via
activity.RecordError().(co)authored by ai:claude-sonnet-5-5