-
Notifications
You must be signed in to change notification settings - Fork 791
Feature/indicator #613
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
Feature/indicator #613
Conversation
…ome indicator of progress lastmile-ai#538
…eature/indicator
WalkthroughThe CLI bootstrap was adjusted to show the spinner only when the process is attached to a terminal. In terminal environments the spinner wraps the import of Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Bootstrap as main_bootstrap.run()
participant Console
participant Spinner
participant MainRun as mcp_agent.cli.main.run
User->>Bootstrap: invoke run()
Bootstrap->>Console: isatty / terminal check
alt terminal
Console-->>Bootstrap: true
Bootstrap->>Spinner: create & start (visual)
Spinner-->>Bootstrap: running
Bootstrap->>MainRun: import mcp_agent.cli.main.run (while spinner)
MainRun-->>Bootstrap: import complete
Spinner->>Spinner: stop & cleanup
else non-terminal
Console-->>Bootstrap: false
Bootstrap->>MainRun: import mcp_agent.cli.main.run (no spinner)
MainRun-->>Bootstrap: import complete
end
Bootstrap->>MainRun: call run()
MainRun-->>User: main logic executes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Files/areas to pay attention to:
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/mcp_agent/cli/main_bootstrap.py (1)
13-13: Fix grammar and punctuation in docstring.The docstring has a grammatical issue and an extra space before the comma.
Apply this diff to improve the docstring:
- """Display a spinner during only terminal bootstrap , then hand off to main.run().""" + """Display a spinner only during terminal bootstrap, then hand off to main.run()."""
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/mcp_agent/cli/main_bootstrap.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: checks / test
🔇 Additional comments (1)
src/mcp_agent/cli/main_bootstrap.py (1)
15-21: LGTM! Clean conditional logic for terminal detection.The terminal detection using
console.is_terminalis the correct approach for conditionally displaying the spinner. The implementation properly addresses the PR objective by ensuring quiet behavior in non-interactive environments while maintaining user feedback in terminals.
|
Awesome, thanks @jaydaftari |
Resolution for fast follow up for not interactive environments , Refer: #608
Summary by CodeRabbit
Bug Fixes
Documentation