gitpod-io / gitpod-io/gitpod

On workspace restart: browser tabs don't reopen non-default workspaces

Open
#1,647 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

editor: theia meta: never-stale type: feature request
Dominant language
TypeScript
Stars
13.8k
Forks
1.4k
Avg merge
17h 58m
Merged PRs (30d)
5

Description

Describe the bug

This is probably between bug report and feature request as I couldn't find documentation for my workflow:
I have a project with one main language (python) and a subproject in a different language (C++). For plugins to work nicely I open the subproject in a separate tab (<default_workspace_url>/mysubfolder). This works nicely.
However, if the gitpod workspace is stopped and restarted, both browser tabs open the root workspace and the state (e.g. open files) of the subproject-workspace is lost. (workspace is used for two different things in gitpod? for the gitpod workspace instance and the theia workspace?)

Steps to reproduce
  1. Start a workspace
  2. Open a sub-folder of the root workspace in a new browser tab and open some files
  3. Stop and restart the gitpod workspace (keeping browser tabs open)
  4. Both browser tabs open the root workspace and only the state of the root workspace is persisted
Expected behavior

Instead of 4 above, I would expect that each browser tab re-opens with the correct (sub-)workspace and previous state of each workspace.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the restart flow: open a root workspace and a sub-folder workspace in separate browser tabs, then stop and restart the workspace. Trace the browser-tab restoration and workspace-state persistence entry points; done means each tab reopens its correct sub-workspace with its previous state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, developer-experience, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.