Inline comments in .env cause whitespace issues when pasted into Cloud Agent env

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

Pasting this into the Cloud Agent env causes DB_HOST value to have trailing whitespace:

DB_USER=root
DB_HOST=localhost     # please fill this in

Steps to Reproduce

Included in the description

Expected Behavior

Trailing whitespace should not be included in env.

Operating System

MacOS

Version Information

This is not relevant.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. That makes sense. It looks like the env parser treats everything after = as the value, without stripping inline comments or trailing spaces.

As a temporary workaround, please remove inline comments before adding the values:

DB_USER=root
DB_HOST=localhost

I’ve passed this on to the team.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.