Merged
Conversation
This is the unedited Bob output that will be cleaned up in later commits #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
This is needed so you can actually use the `get` by ID #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Since we validate only a single active profile earlier and we short-circuit for no active profile, we can't possibly have other active profiles that aren't the active profile. #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
This profile will not be saved in the profiles file but will show up when profiles are listed and will allow users to switch to the default profile. We still need to figure out how to disable this if there is a local profile from the desktop app. #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
There are several methods in conftest that invoke get_settings and we need them to hit the mocked settings if used. #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
d0cf30b to
f7eaca3
Compare
gabe-l-hart
commented
Dec 19, 2025
gabe-l-hart
commented
Dec 19, 2025
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
This is handled during schema validation on load #13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
#13 Branch: Profiles-13 Signed-off-by: Gabe Goodhart <ghart@us.ibm.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.
## DRAFT STATUSThere are issues in the core package that make it difficult to add additional profiles due to the password change requirement. Until a workaround is solved, this will stay in draft.We've solved this issue by adding the ability to create profiles via the CLI and managing a virtual default profile corresponding to the old default behavior.
Description
This PR introduces the ability to manage separate
profiles, matching the corresponding functionality in the Desktop App. It relies on the functionality in contextforge-org/contextforge-desktop#4 which places the profile data into theCONTESTFORGE_HOMEdirectory. This allows the CLI and the Desktop App to interoperate on profile settings without tightly coupling the two (the CLI will still work seamlessly without configured profiles).Changes
cforge/profile_utils.pycforge/credential_store.pycforge/commands/settings/profiles.pycforge whoamiTesting
Definition Of Done
--helpand this is covered there. More thorough docs to come!