Skip to content

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Oct 17, 2025

Closes #626

@EhabY EhabY force-pushed the show-remote-ssh-output-on-start branch from bbb0391 to 92b1788 Compare October 17, 2025 13:13
@johnstcn johnstcn requested a review from code-asher October 20, 2025 14:11
@EhabY EhabY force-pushed the show-remote-ssh-output-on-start branch 2 times, most recently from 719de6f to fe6d1dc Compare October 23, 2025 10:31
Copy link
Member

@code-asher code-asher left a 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!

Copy link
Member

@code-asher code-asher left a 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.

@EhabY EhabY force-pushed the show-remote-ssh-output-on-start branch from e3c9e7f to ae04b2c Compare October 30, 2025 12:11
@EhabY EhabY force-pushed the show-remote-ssh-output-on-start branch from ae04b2c to ad6ea8c Compare October 30, 2025 12:46
@EhabY EhabY force-pushed the show-remote-ssh-output-on-start branch from ad6ea8c to bc4ba72 Compare October 30, 2025 12:54
Copy link
Member

@code-asher code-asher left a 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.

Copy link
Member

@code-asher code-asher left a 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!

Comment on lines 136 to 138
this.maybeNotifyOutdated(workspace);
this.maybeNotifyAutostop(workspace);
this.maybeNotifyDeletion(workspace);
Copy link
Member

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..." });
Copy link
Member

@code-asher code-asher Oct 31, 2025

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;
Copy link
Member

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.

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.

Show agent startup script when connecting to a Workspace

2 participants