Skip to content

fix: graceful fallback when workspace_id doesn't exist in factory #1599

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

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

tinkerer-shubh
Copy link

fixes #1228

…dd try-catch in workspace property to handle ComposioSDKError - Falls back to creating new workspace with provided config - Prevents SweKit crash when invalid workspace_id is set - Add comprehensive unit test for workspace fallback behavior - Fixes ComposioHQ#1228
Copy link

vercel bot commented May 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
composio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 11:51am

Copy link

Review Summary

Skipped posting 1 drafted comments based on your review threshold. Feel free to update them here.

Draft Comments
python/composio/tools/toolset.py:1651-1654
The string concatenation in the debug log message is split across two lines incorrectly. The second part is a separate string literal that's not properly concatenated with the first part.

Scores:

  • Production Impact: 2
  • Fix Specificity: 5
  • Urgency Impact: 2
  • Total Score: 9

Reason for filtering: The total score is below the threshold of 13 required for inclusion

Analysis: The issue is a string formatting error in a debug log message where the second part is not properly formatted with an f-string prefix. While the fix is very clear and specific, the production impact is low since this only affects a debug log message that wouldn't be seen in production. The urgency is also low as debug logs are typically only used during development and wouldn't cause system impairment.

Copy link

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant