mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5754] [bug]: Switching Environments does not update Current #2245
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
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'.
Deployment Type
Hoppscotch Cloud
Version
No response
@Fran2007 commented on GitHub (Jan 7, 2026):
Hi, i'd like to work on this issue. Let me know if i can take it.
@liyasthomas commented on GitHub (Jan 7, 2026):
@Fran2007 you can pick this up.
@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.
@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.
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.