Skip to content

fix(tui): refine provider failure presentation - #41179

Merged
jlongster merged 3 commits into
v2from
provider-failure-ui
Aug 8, 2026
Merged

fix(tui): refine provider failure presentation#41179
jlongster merged 3 commits into
v2from
provider-failure-ui

Conversation

@jlongster

@jlongster jlongster commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • render terminal provider failures as concise inline Error: rows and remove duplicate execution-failure toasts
  • hide terminal error styling while a retry is scheduled and normalize retry/footer spacing
  • extract provider messages from small JSON HTTP error bodies while retaining the full redacted body in diagnostics

Testing

  • bun typecheck in packages/ai
  • bun test test/executor.test.ts in packages/ai
  • bun typecheck in packages/tui
  • bun test test/cli/tui/session-rows.test.ts in packages/tui
  • OpenCode Drive reproductions for malformed streams, partial disconnects, content filtering, empty responses, output truncation, late stream content, malformed tool input, retries, clean EOF, and HTTP 401

Screenshots

All screenshots were captured from the real V2 TUI with OpenCode Drive.

Malformed stream

Malformed stream

Partial output followed by disconnect

Partial disconnect

Content filter after partial output

Content filter

Empty successful response

Empty successful response

Output-limit truncation

Output-limit truncation

Content after finish

Content after finish

Malformed tool arguments

Malformed tool arguments

Provider retry before output

Provider retry

Rate-limit retry row updating in place

Rate-limit retry attempt 2

Rate-limit retry attempt 3

Clean EOF: first retry

Clean EOF first retry

Clean EOF: accumulated retries

Clean EOF accumulated retries

Clean EOF: terminal exhaustion

Clean EOF terminal exhaustion

HTTP 401 with extracted provider message

HTTP 401

@jlongster
jlongster merged commit 5e63703 into v2 Aug 8, 2026
8 of 10 checks passed
@jlongster
jlongster deleted the provider-failure-ui branch August 8, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant