Retain fetch, decode, and parser detail in edit-open flows #637

Closed
opened 2026-05-06 19:55:42 +00:00 by barrettruth · 0 comments
Owner

Parent: #634

Problem

PR and issue edit-open flows fetch details, decode JSON, and parse backend payloads before opening compose buffers. Fetch failures and parser failures are currently collapsed into broad messages such as failed to parse PR details, losing the decode/parser reason and any useful command output.

Scope

  • Improve failure messages in the load_details path.
  • Distinguish command failure, JSON decode failure, and backend parser failure.
  • Preserve bounded diagnostic details without exposing raw Lua tracebacks in normal UI.
  • Add tests for invalid JSON and parser exceptions.

Non-goals

  • Do not fix unrelated backend parser bugs in this issue.
  • Do not redesign compose buffers.
Parent: #634 ## Problem PR and issue edit-open flows fetch details, decode JSON, and parse backend payloads before opening compose buffers. Fetch failures and parser failures are currently collapsed into broad messages such as `failed to parse PR details`, losing the decode/parser reason and any useful command output. ## Scope - Improve failure messages in the `load_details` path. - Distinguish command failure, JSON decode failure, and backend parser failure. - Preserve bounded diagnostic details without exposing raw Lua tracebacks in normal UI. - Add tests for invalid JSON and parser exceptions. ## Non-goals - Do not fix unrelated backend parser bugs in this issue. - Do not redesign compose buffers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#637
No description provided.