Skip to content

feat: reuse agent tokens when a prebuilt agent reinitializes #374

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 13 commits into from
May 2, 2025

Conversation

SasSwart
Copy link
Contributor

This PR closes #364

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I think this is definitely worth an integration test :-)

Base automatically changed from jjs/363 to main April 7, 2025 06:20
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

I don't think this PR is ready for review yet, is it?

@SasSwartSasSwart marked this pull request as draft April 10, 2025 10:09
// and after the workspace was claimed by a user.
//
// agentID is unused for now, but will be used as soon as we support multiple agents.
func RunningAgentTokenEnvironmentVariable(agentID string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

How will the ID be injected? How will we maintain a persistent identity across terraform apply runs?

@dannykoppingdannykopping self-requested a review April 17, 2025 11:34
@SasSwartSasSwart marked this pull request as ready for review April 23, 2025 12:06
@SasSwartSasSwart merged commit 5648efb into main May 2, 2025
6 checks passed
@SasSwartSasSwart deleted the jjs/364 branch May 2, 2025 06:57
@github-actions-actions bot locked and limited conversation to collaborators May 2, 2025
Sign up for free to subscribe to this conversation on . Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure the workspace agent can reuse its existing token when required
4 participants