-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Composio login command #1009
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,5 +13,5 @@ export function setCliConfig(apiKey: string, baseUrl: string) { | |||||||||||||||
userData.base_url = baseUrl; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
saveFile(userDataPath(), userData); | ||||||||||||||||
saveFile(userDataPath(), JSON.stringify(userData)); | ||||||||||||||||
} | ||||||||||||||||
himanshu-dixit marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
13
to
17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 Bug Fix:
This change is critical as it could lead to data corruption or loss if not handled correctly. 🛠️ 🔧 Suggested Code Diff: - saveFile(userDataPath(), JSON.stringify(userData));
+ saveFile(userDataPath(), userData); 📝 Committable Code Suggestion
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential Directory Existence Issue
The recent change in the code modifies the behavior of
getComposioDir
by settingcreateDirIfNotExists
tofalse
. This could lead to runtime errors if the directory does not exist and is expected to be created automatically.This change could potentially affect the functionality that relies on the existence of this directory, so it's important to address this issue proactively. 🛠️
🔧 Suggested Code Diff:
📝 Committable Code Suggestion