triggerdotdev / trigger.dev

Trigger.dev is the open source background jobs platform for TypeScript.

Home Page:https://trigger.dev/changelog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"View logs" CLI links sometimes don't work when clicked

ky-zo opened this issue · comments

Provide environment information

N/A

Describe the bug

Screenshot 2024-06-11 at 23 41 08

After a task run, the terminal suggests going into a link:
https://cloud.trigger.dev/projects/v3/proj_id/runs/run_id​)

this doesn't work, as link must have the org info too:

https://cloud.trigger.dev/orgs/org_name/projects/v3/proj_id/runs/run_id​the

Reproduction repo

N/A

To reproduce

N/A

Additional information

No response

We use this very popular package for links – it automatically renders them in brackets like this if your terminal doesn't support links.

When it's falling back like this, sometimes the links wraps over multiple lines or in other situations VSCode doesn't interpret them correctly.

I'm going to leave this issue open but I'm not sure what a good fix for this is.

Would be good to collect some information on the environments this happens in, maybe we could detect it and render the links differently in those cases.

@ky-zo

  • What OS are you on?
  • You're running this in VSCode, what's your default terminal set to? You can check like this:
    image
  • Are you running VSCode, your terminal, or anything else with sudo?
  • Maybe you could also send us your env vars by doing a 'printenv` in the terminal this happens in and censor some bits.