Skip to content

Conversation

@john-mutuma
Copy link
Owner

What does this PR do?

Optimizes the MCP status component in lualine for better performance and improves configuration structure. The MCP status component is now only shown in the active buffer, but when AvanteInput is open, the MCP status is only displayed in AvanteInput and hidden for other open buffers.

  • Optimized MCP status component with early exits and cached API calls
  • Added MCP status to main lualine sections with smart AvanteInput handling
  • Created dedicated AvanteInputLualine extension
  • Added Snacks_Dashboard extension with branch info
  • Improved status messages and spinner animation performance

Why is it needed?

Previous implementation had performance inefficiencies with redundant API calls and inconsistent MCP status visibility across buffer types.

How have the changes been tested?

  • Manual testing with different buffer types and AvanteInput scenarios
  • Verified MCP status display logic in various states
  • Confirmed performance improvements and spinner animation

Screenshots (if applicable)

N/A - Performance and configuration improvements

Checklist

  • Code follows project style guidelines
  • Changes tested locally
  • Performance optimizations implemented
  • No breaking changes introduced

John Mutuma added 2 commits August 6, 2025 19:44
- Convert the static header to a dynamic function that displays current working directory

- Use string.upper() to display directory name in uppercase for better visibility

- Maintain the original ASCII art and welcome message formatting

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>
- Optimize MCP status component performance and logic flow

- Add MCP status component to main lualine sections

- Create AvanteInputLualine extension for AvanteInput buffers

- Add Snacks_Dashboard extension with branch and MCP status

- Remove AvanteInput from Blank extension filetypes

- Enhance status messages with better descriptions

Signed-off-by: John Mutuma <johnmutuma@microsoft.com>
@john-mutuma john-mutuma force-pushed the user/johnmutuma/continous-improvements branch from 8a1fce3 to d490b23 Compare August 6, 2025 19:45
@john-mutuma john-mutuma merged commit 327b258 into develop Aug 6, 2025
@john-mutuma john-mutuma deleted the user/johnmutuma/continous-improvements branch August 7, 2025 16:44
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.

2 participants