Skip to content

feat(cloud-agent-next): resume session support#50

Draft
pandemicsyn wants to merge 1 commit intomainfrom
florian/feat/cloud-agent-next-session-restore
Draft

feat(cloud-agent-next): resume session support#50
pandemicsyn wants to merge 1 commit intomainfrom
florian/feat/cloud-agent-next-session-restore

Conversation

@pandemicsyn
Copy link
Contributor

On a cold start - i.e. container bootstrapping , we now restore the session by fetching it from the session service and importing it.

// Check if workspace repo exists - if not, we may need to reclone
const repoCheck = await session.exec(`test -d ${workspacePath}/.git && echo exists`);
const repoExists = repoCheck.stdout?.includes('exists') ?? false;
const isColdStart = !repoExists;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to start writing a canary/session marker file to detect when we're resuming from nothing.

Checking for .git wont be viable soon if we allow cloud-agent runs without a git checkout.

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.

1 participant