feat(cli): ORUN_TOKEN_FILE honored everywhere (sandboxed-bootstrap channel, BP1) - #609
Merged
Merged
Conversation
The agent runtime maintains a REFRESHED session token at ORUN_TOKEN_FILE; only the remote-state path read it. cloudSessionToken, sessionOrgs' headless fallback, errNotLoggedIn, and auth status now share one headlessToken() helper: env first, else a lazy per-command file read (perm-checked) — so a 15-minute session token stays fresh across an hour-long sandboxed bootstrap, where a once-exported env var dies mid-run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The agents sandbox delivers a 15-minute session token refreshed at
ORUN_TOKEN_FILE; only remotestate read it. OneheadlessToken()helper (env, else lazy perm-checked file read per command) now feeds cloudSessionToken / sessionOrgs / errNotLoggedIn / auth status — verified live:ORUN_TOKEN_FILE=… orun workspace ws_D4RFQWMAresolves andauth statusreports headless auth. Part of epic saas-blueprints-onboarding (orun-cloud#739).🤖 Generated with Claude Code