Skip to content

Conversation

@lbogdan
Copy link
Contributor

@lbogdan lbogdan commented Apr 24, 2019

The communication between (c)lient -> SSE (m)anager is as follows:

  • c -> m sandbox:restart-container
  • m -> c sandbox:stop
  • m -> c sandbox:status payload {"status":"starting-container","progress":{"current":1,"total":3}}
  • m -> c sandbox:status payload {"status":"installing-packages","progress":{"current":2,"total":3}}
  • m -> c sandbox:status payload {"status":"starting-sandbox","progress":{"current":3,"total":3}}
  • m -> c sandbox:start

This is just a draft, it still needs additional UI states / updating; we should probably have a "restarting container" status and update the UI accordingly.

Fixes #1461 .

lbogdan and others added 6 commits April 24, 2019 16:33
- Introduce separate state for container
- Disable button if the container is not started
- Disable Terminal button if you don't own the sandbox
@CompuIves CompuIves marked this pull request as ready for review April 29, 2019 10:42
@CompuIves CompuIves merged commit 3bd6966 into codesandbox:master Apr 29, 2019
SaraVieira pushed a commit that referenced this pull request Apr 30, 2019
* Add "Restart Container" button.

* UI Improvements for SSE

- Introduce separate state for container
- Disable button if the container is not started
- Disable Terminal button if you don't own the sandbox

* Updates

* Only reset files to container if we're sure it received it

* Return back to codesandbox.io

* Remove old comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌈 Feature: Allow users to Hard Reboot Container Sandboxes

2 participants