[GH-ISSUE #3864] [bug]: Switching context doesn't invalidate environment variables and requests #1356

Open
opened 2026-03-16 19:58:07 +03:00 by kerem · 3 comments
Owner

Originally created by @jobartim44 on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3864

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I change my Workspace the environment variables are still set. I use generic variables along my different workspace and collections like <<base_url>> so this is source of mistake if they are not unset.

The same way I would like request tabs to be closed when switching my workspace.

Steps to reproduce

Configure différent workspaces with environment variables having the same name.
Swith workspace, don't select any environment, variables are still set.

Environment

Production

Version

Self-hosted

Originally created by @jobartim44 on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3864 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I change my Workspace the environment variables are still set. I use generic variables along my different workspace and collections like <<base_url>> so this is source of mistake if they are not unset. The same way I would like request tabs to be closed when switching my workspace. ### Steps to reproduce Configure différent workspaces with environment variables having the same name. Swith workspace, don't select any environment, variables are still set. ### Environment Production ### Version Self-hosted
Author
Owner

@jobartim44 commented on GitHub (Feb 27, 2024):

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

<!-- gh-comment-id:1967310167 --> @jobartim44 commented on GitHub (Feb 27, 2024): If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.
Author
Owner

@nivedin commented on GitHub (May 15, 2024):

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements.

<!-- gh-comment-id:2111908938 --> @nivedin commented on GitHub (May 15, 2024): > If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb. Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements.
Author
Owner

@jobartim44 commented on GitHub (May 21, 2024):

If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb.

Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements.

I like to only have opened tabs that related to the current workspace. The easier way is to close every tabs when switching from one workspace to another. But if this action closed every request tabs we should have something to show. It could be an empty panel or tab (watever the way it takes). We could also have quick actions in this 'welcome' tab like creating a new request.

<!-- gh-comment-id:2121919950 --> @jobartim44 commented on GitHub (May 21, 2024): > > If we close every tabs, we should have an empty panel. This is not possible at the moment we always need to have an open request atb. > > Thank you for sharing your observation. Could you please provide more insight into the use case for this feature? Understanding its intended purpose will help us address any limitations or consider potential improvements. I like to only have opened tabs that related to the current workspace. The easier way is to close every tabs when switching from one workspace to another. But if this action closed every request tabs we should have something to show. It could be an empty panel or tab (watever the way it takes). We could also have quick actions in this 'welcome' tab like creating a new request.
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#1356
No description provided.