Auto-resolve orgID from .chunk/config.json in sidecar commands#345
Closed
hanabel1 wants to merge 1 commit into
Closed
Auto-resolve orgID from .chunk/config.json in sidecar commands#345hanabel1 wants to merge 1 commit into
hanabel1 wants to merge 1 commit into
Conversation
resolveOrgID now reads the project config's orgID field after the --org-id flag and CIRCLECI_ORG_ID env var, before falling through to the TUI org picker. This removes the "Could not select an organization" prompt on chunk sidecar list / create / setup in non-TTY sessions when the project has already run `chunk config set orgID <id>`. Plumbs the directory through sidecarSetupResolveSidecar so chunk sidecar setup --dir <dir> honors the project config it just detected. Drops the duplicated lookup that lived in resolveOrCreateSidecarID — resolveOrgID handles it now. Expanded the picker's failure suggestion to mention all three escape hatches (--org-id, env, config) so non-interactive sessions get actionable guidance instead of "Pass --org-id instead." Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9253fe4 to
d0f86ab
Compare
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.
resolveOrgIDnow reads the project configs orgID field between the --org-idflag,CIRCLECI_ORG_IDenv var, and the tui org picker. This removes the 'Could not select an organization prompt onchunk sidecar list/create/setupin non-tty sessions when the project has already runchunk config set orgID <id>- plumbs the working directory through sidecarSetupResolvesSidecar sochunk sidecar setup --dir <dir>honors the project config it just detected.-org-id,CIRCLECI_ORG_ID,chunk config set orgID.