Report terminal spawn and exit failures for live CI views #641

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

Parent: #634

Problem

Terminal-backed CI watch/live-tail paths call termopen() and do not report spawn failure or terminal job exit status. If the CLI is missing, auth fails before output, or the process exits immediately, Forge may leave the user with an unhelpful terminal buffer.

Scope

  • Improve lua/forge/term.lua around termopen() return values and exit callbacks.
  • Apply to CI watch, live tail, and terminal summary views.
  • Preserve normal TTY behavior for successful processes.
  • Add tests around terminal spawn failure if feasible with the existing test harness.

Non-goals

  • Do not replace terminal views with parsed buffers.
  • Do not parse TTY output.
Parent: #634 ## Problem Terminal-backed CI watch/live-tail paths call `termopen()` and do not report spawn failure or terminal job exit status. If the CLI is missing, auth fails before output, or the process exits immediately, Forge may leave the user with an unhelpful terminal buffer. ## Scope - Improve `lua/forge/term.lua` around `termopen()` return values and exit callbacks. - Apply to CI watch, live tail, and terminal summary views. - Preserve normal TTY behavior for successful processes. - Add tests around terminal spawn failure if feasible with the existing test harness. ## Non-goals - Do not replace terminal views with parsed buffers. - Do not parse TTY output.
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#641
No description provided.