[GH-ISSUE #5754] [bug]: Switching Environments does not update Current #2245

Open
opened 2026-03-16 23:42:47 +03:00 by kerem · 4 comments
Owner

Originally created by @edmound-hubbard-enverus on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5754

Originally assigned to: @Fran2007 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Chrome

Operating System

macOS

Bug Description

Path: /documentation/features/environments

Documentation mentions the 'Current' should change when the Environment becomes active. This does not happen. When you select environment the initial values are set, but when you make any API calls it refers to 'Current'. Need to edit and select 'Replace all Current with Initial'.

Image

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @edmound-hubbard-enverus on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5754 Originally assigned to: @Fran2007 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Chrome ### Operating System macOS ### Bug Description Path: /documentation/features/environments Documentation mentions the 'Current' should change when the Environment becomes active. This does not happen. When you select environment the initial values are set, but when you make any API calls it refers to 'Current'. Need to edit and select 'Replace all Current with Initial'. <img width="1108" height="195" alt="Image" src="https://github.com/user-attachments/assets/a5c0bd95-364e-4520-a015-7d8706d41df9" /> ### Deployment Type Hoppscotch Cloud ### Version _No response_
Author
Owner

@Fran2007 commented on GitHub (Jan 7, 2026):

Hi, i'd like to work on this issue. Let me know if i can take it.

<!-- gh-comment-id:3716866696 --> @Fran2007 commented on GitHub (Jan 7, 2026): Hi, i'd like to work on this issue. Let me know if i can take it.
Author
Owner

@liyasthomas commented on GitHub (Jan 7, 2026):

@Fran2007 you can pick this up.

<!-- gh-comment-id:3716946622 --> @liyasthomas commented on GitHub (Jan 7, 2026): @Fran2007 you can pick this up.
Author
Owner

@Fran2007 commented on GitHub (Jan 7, 2026):

Hi @liyasthomas, thanks for assigning me this issue.

I've opened PR #5756 which addresses the environment synchronization problem by keeping the selected environment index in sync with CurrentValueService.

Please let me know if any additional changes or tests are needed. Happy to iterate on it.

<!-- gh-comment-id:3720152744 --> @Fran2007 commented on GitHub (Jan 7, 2026): Hi @liyasthomas, thanks for assigning me this issue. I've opened PR #5756 which addresses the environment synchronization problem by keeping the selected environment index in sync with `CurrentValueService`. Please let me know if any additional changes or tests are needed. Happy to iterate on it.
Author
Owner

@nivedin commented on GitHub (Jan 19, 2026):

@edmound-hubbard-enverus Thanks for opening the issue, and sorry for the delayed response from my end. We need a few more details regarding the bug you mentioned.

Documentation mentions that ‘Current’ should change when the environment becomes active. This does not happen. When you select an environment, the initial values are set, but when you make any API calls it refers to ‘Current’. You need to edit and select ‘Replace all Current with Initial’.

The Current value is used at runtime when a request is executed, and it falls back to the Initial value only if the Current value is empty. Each environment has its own set of variables and associated Current values. So when we toggle the selected environment, the Current value is auto-populated if it has already been set previously.

Could you please check if this clarifies the issue? If not, kindly attach a screen recording of the behavior you’re seeing so we can better understand the problem.

<!-- gh-comment-id:3767293395 --> @nivedin commented on GitHub (Jan 19, 2026): @edmound-hubbard-enverus Thanks for opening the issue, and sorry for the delayed response from my end. We need a few more details regarding the bug you mentioned. > Documentation mentions that ‘Current’ should change when the environment becomes active. This does not happen. When you select an environment, the initial values are set, but when you make any API calls it refers to ‘Current’. You need to edit and select ‘Replace all Current with Initial’. The Current value is used at runtime when a request is executed, and it falls back to the Initial value only if the Current value is empty. Each environment has its own set of variables and associated Current values. So when we toggle the selected environment, the Current value is auto-populated if it has already been set previously. Could you please check if this clarifies the issue? If not, kindly attach a screen recording of the behavior you’re seeing so we can better understand the problem.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2245
No description provided.