Skip to content

[BUG]Unable to Save API Keys as environment variable when running in local server #2488

@csaikarthikreddy-create

Description

Describe the bug
When running SIM in the local environment and trying to use the Copilot for developing the workflow, we are faced with an error. Although the API key was created in the cloud SIM environment we are unable to save the API key as an enviroment variable in the settings folder. The "Save" option does not function as intended. When we move to a different option the API key saved is lost.

To Reproduce
Steps to reproduce the behavior:

  1. Run the npx simstudio or use docker compose
  2. Open in the UI browser
  3. Create an API key for the copilot on the sim.ai web app.
  4. Go to settings in the local server running at localhost:3000
  5. Click on Environment->Add->Save
  6. Now move to another tab such as tools. Move back to the enviroment and the API key is missing

Expected behavior
API Keys are not saving while using local server.

Screenshots
After Saving the Key
Image
After moving to a different setting option and returning back to the environment option
Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions