Skip to content

Keep report URLs on one line in narrow consoles - #596

Merged
omer-roth merged 1 commit into
cycodehq:mainfrom
WaleedMahamid:fix/report-url-wrapping
Nov 18, 2026
Merged

omer-roth merged 1 commit into
cycodehq:mainfrom
WaleedMahamid:fix/report-url-wrapping

Conversation

@WaleedMahamid

Copy link
Copy Markdown
Contributor

Problem

When the CLI runs without a terminal (CI logs such as Jenkins), rich falls back to an 80-column console and wraps the Report URL line. Report URLs for EU tenants are 83 characters long, so the last three characters of the aggregation ID move to the next line:

Report URL: 
https://app.eu.cycode.com/cli-logs-aggregation/01234567-89ab-cdef-0123-456789abc
def

The CI log viewer turns only the first line into a link, so the link is cut short and the report page returns 404. US report URLs are exactly 80 characters and happen to fit, which is why this shows up for EU tenants.

Fix

Print report URLs with soft_wrap=True so they are never wrapped, in both the single-URL and multiple-URL branches of TextPrinter.print_report_urls. The table and rich printers delegate to the same method.

Tests

Two new tests in tests/cli/printers/test_text_printer.py print an 83-character URL through an 80-column console and assert it stays on one line (single URL and multiple URLs). Both fail without the fix.

Full suite locally: 1563 passed, 1 skipped.

🤖 Generated with Claude Code

Comment thread cycode/cli/printers/text_printer.py Resolved
Comment thread tests/cli/printers/test_text_printer.py Resolved
@WaleedMahamid
WaleedMahamid force-pushed the fix/report-url-wrapping branch from 9dac6b9 to ff93890 Compare November 18, 2026 14:45
Without a terminal (CI logs such as Jenkins) rich falls back to an
80-column console and wraps the report URL. EU report URLs are 83
characters long, so the last three characters of the aggregation ID
moved to the next line and the link shown in the log returned 404.

Print report URLs with soft_wrap so they are never wrapped, and cover
the single and multiple URL cases with an 80-column console.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@WaleedMahamid
WaleedMahamid force-pushed the fix/report-url-wrapping branch from ff93890 to 8d8e61f Compare November 18, 2026 14:48
@omer-roth
omer-roth self-requested a review November 18, 2026 14:56
@omer-roth
omer-roth merged commit 3ae06ee into cycodehq:main Nov 18, 2026
23 checks passed
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.

2 participants