# Environment secrets not working in Origin repo based Project

**URL:** <https://forum.cursor.com/t/environment-secrets-not-working-in-origin-repo-based-project/174847>\
**Category:** Bug Reports\
**Tags:** origin, projects, cloud-agents\
**Created:** [October 15, 2026, 10:08am UTC](https://forum.cursor.com/t/environment-secrets-not-working-in-origin-repo-based-project/174847 "2026-10-15T10:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [October 15, 2026, 10:43am UTC](https://forum.cursor.com/t/environment-secrets-not-working-in-origin-repo-based-project/174847/5 "2026-10-15T10:43:29Z")

</div>

Hey @sam74s, thanks for the detailed report and the IDs, they made this quick to trace.

What’s going on: your Project started on the temporary repository that a new project gets before it’s named. After you named it `sam74s/aiao-v3`, the Project’s agents kept starting on that earlier temporary name. Because of that, they don’t match the environment you set up for `sam74s/aiao-v3`, and secret injection is skipped for them. That’s why every worker reports no environment, why all four variables are unset, and why the active build id is refused. I’ve flagged this to the team.

In the meantime, could you try this and tell me what you see?

1. Open a new Cloud Agent (not inside the existing Project) and pick `sam74s/aiao-v3` as the repository.
2. Pick the `sam74s/aiao-v3` environment if you’re asked for one.
3. Once it starts, ask it to run `test -n "$NAME" && echo set || echo unset` for each of the four names. Values won’t be printed.
4. Reply with whether each one says set or unset, and the agent’s ID.

If that works, a new Project created from `sam74s/aiao-v3` should get the secrets too.

On the environment panel: secrets are saved on their own from the Secrets section (New Secret), and the Save button only covers changes to the install and start scripts. If a secret you added there no longer appears in the Secrets list after you reload the page, please tell me which page you added it from.

---

_[View the full topic](https://forum.cursor.com/t/environment-secrets-not-working-in-origin-repo-based-project/174847)._
