Skip to content

fix: correct environment.json ports to object form (unblocks new agents) - #196

Merged
axelmarciano merged 1 commit into
mainfrom
cursor/fix-env-ports-4984
Aug 29, 2026
Merged

fix: correct environment.json ports to object form (unblocks new agents)#196
axelmarciano merged 1 commit into
mainfrom
cursor/fix-env-ports-4984

Conversation

@axelmarciano

@axelmarciano axelmarciano commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Problem

Opening a new Cloud Agent on main fails with:

Invalid type required number

.cursor/environment.json (merged in #193) declared ports as an array of bare numbers:

"ports": [3000, 5173]

But the Cursor environment schema requires ports to be an array of objects, each with a required integer port. The number/object type mismatch is what produces Invalid type required number, and it blocks new agents from starting.

Fix

"ports": [
  { "name": "api", "port": 3000 },
  { "name": "dashboard", "port": 5173 }
]

Validated against the official schema (ports = objects with integer port, terminals = objects, name/install/start = strings). No other changes.

This is a follow-up to #193, which was merged before the fix landed.

Open in Web Open in Cursor 

Summary by CodeRabbit

  • Chores
    • Updated development environment port configuration to include named port entries.

…e, port})

Co-authored-by: axel.marciano <axel.marciano@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ae7fac3e-c389-431d-986d-ab562b63662a

📥 Commits

Reviewing files that changed from the base of the PR and between 68a6d26 and 9a0e70c.

📒 Files selected for processing (1)
  • .cursor/environment.json

📝 Walkthrough

Walkthrough

The Cursor environment configuration changes the ports array from numeric values to objects with explicit names and port numbers for the API and dashboard.

Changes

Cursor environment configuration

Layer / File(s) Summary
Named port configuration
.cursor/environment.json
The ports array defines api on port 3000 and dashboard on port 5173 using named objects.

Estimated code review effort: 1 (Trivial) | ~2 minutes


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@axelmarciano
axelmarciano merged commit a9cdc36 into main Aug 29, 2026
4 of 5 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in expo-open-ota Aug 29, 2026
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