Preserve picker request failure details through picker.session #431
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim#431
Loading…
Add table
Add a link
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?
Problem
forge.picker.sessioncurrently collapses request and decode failures tofalse, nil. That drops stderr/stdout and JSON decode context before picker-specific code can decide whether the fetch failed, the response failed to decode, or the result was simply empty.This makes many picker failures degrade into generic messages like
failed to fetch ..., and it blocks follow-up fixes that want to distinguish empty results from real transport/parse failures.Proposed solution
Preserve structured failure details through
request_json,decode_json,prefetch_json, andpick_jsonso picker callers can surface real request/decode errors without reimplementing command parsing.Notes