Skip to content

Wrap long gateway status URLs on narrow terminals - #757

Draft
adi-IL wants to merge 1 commit into
vercel-labs:mainfrom
adi-IL:fix/status-url-wrap-618
Draft

Wrap long gateway status URLs on narrow terminals#757
adi-IL wants to merge 1 commit into
vercel-labs:mainfrom
adi-IL:fix/status-url-wrap-618

Conversation

@adi-IL

@adi-IL adi-IL commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Fixes #618. Narrow terminals were collapsing long gateway status URLs behind a leading ... on the last activity row instead of wrapping them.

Root cause: warning/danger status paint keeps a trailing recovery slice on the last row (... + suffix only), and the activity band was capped at 3 rows. That skipped the mid-message URL head once the row budget ran out.

Changes

  • Raise max_static_status_activity_rows from 3 to 8 so typical access-denied messages can wrap fully.
  • On the last truncated warning/danger row, keep head continuation + ... + recovery suffix so URL text is not jumped over.
  • Add unit coverage for the URL head case and for full wrap when rows allow.

Verification

No Zig 0.16 in this environment, so I could not run zig build test or ./zig-out/bin/fx locally. Full CI on this commit is the deterministic proof. Please smoke the access-denied status on a ~48-col terminal after CI is green.

I do not have label rights; please apply type: bug.

Checklist

  • Small, reviewable change in UI status wrap ownership
  • Unit tests for the changed path
  • Full CI green on this commit
  • Local ./zig-out/bin/fx smoke (needs Zig here or maintainer check)

Raise the static status activity row cap and keep a head continuation
on the last truncated row so mid-message URLs are not collapsed behind
a leading ellipsis. Fixes vercel-labs#618.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: URLs get cut off on narrow screens

1 participant