Skip to content

[codex] Remove project script port defaults#131

Draft
germanescobar wants to merge 1 commit into
mainfrom
codex/remove-script-port-defaults
Draft

[codex] Remove project script port defaults#131
germanescobar wants to merge 1 commit into
mainfrom
codex/remove-script-port-defaults

Conversation

@germanescobar

Copy link
Copy Markdown
Owner

Summary

  • Stop exporting Controller-owned CLIENT_BASE_PORT=4500 and API_BASE_PORT=3100 into project script environments.
  • Update the managed controller-scripts guidance so project scripts define their own base ports and only use Controller's PORT_OFFSET for isolation.
  • Adjust the project script environment test to assert the default port vars are absent.

Root Cause

Controller was treating its own app defaults as generic project script defaults. Projects that consumed those env vars could accidentally start services on Controller's ports when the Run button executed their scripts.

Validation

  • npm test -- server/lib/__tests__/project-scripts.test.ts
  • bash -n .coding-orchestrator/setup.sh && bash -n .coding-orchestrator/run.sh in /Users/germanescobar/Projects/pocs/market-trends

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.

1 participant