-
Notifications
You must be signed in to change notification settings - Fork 35
Show Remote SSH Output panel on workspace start #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
bbb0391 to
92b1788
Compare
719de6f to
fe6d1dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not had a chance to try it yet, but it is looking really good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking really good! I think we just need to tweak how we handle the timeout and error states, and then we are good to go.
e3c9e7f to
ae04b2c
Compare
…tial ones beforehand
ae04b2c to
ad6ea8c
Compare
ad6ea8c to
bc4ba72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!! I experimented with it and it has a few quirks when I try to stop my workspace while it waits for scripts, but otherwise looks excellent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the scope ballooned on this lol but this is really cool, it can handle anything thrown at it. Just noticed one more small thing where I get no agent script log the second time, but otherwise looks good!
| this.maybeNotifyOutdated(workspace); | ||
| this.maybeNotifyAutostop(workspace); | ||
| this.maybeNotifyDeletion(workspace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was thinking about this some more, and we probably want to skip the deletion notification while in the setup phase too, otherwise I think we would get one notification here, and then another from the error thrown during setup.
Autostop and outdated I think are OK to show even during setup.
| case "stopping": | ||
| // Clear the agent ID since it could change after a restart | ||
| this.agentId = undefined; | ||
| progress?.report({ message: "Waiting for workspace build..." }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about putting the build state in here? Waiting for workspace build: stopping or Waiting for workspace to queue/start/stop if we want to be fancy.
| case "starting": | ||
| case "stopping": | ||
| // Clear the agent ID since it could change after a restart | ||
| this.agentId = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to clear the agent socket here as well or something, when I stop my workspace and it starts again, I do not see the agent script logs the second time.
Or, maybe we clear the socket when the agent closes, or both.
Closes #626