Skip to content

Conversation

Isydmr
Copy link
Contributor

@Isydmr Isydmr commented Sep 23, 2025

Summary

This PR adds auto-close behavior to code dialog components. The code analysis view now collapses automatically when analysis completes.

Changes:

  • Implemented automatic collapse in CodeAnalyze.tsx and ExecuteCode.tsx
  • When code execution is complete (progress >= 1.0), the dialog sets showCode to false
  • Reduces the need for manual closing and keeps the interface clean after analysis

Motivation:
This improves the user experience by hiding the code view once the process ends.

Files Modified:

  • client/src/components/Chat/Messages/Content/CodeAnalyze.tsx
  • client/src/components/Chat/Messages/Content/Parts/ExecuteCode.tsx

No dependencies are required for this change.

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

2x_Speed_Up_Demo_Auto_Close_Code_Dialog.mov

Test Configuration:

  • Standard LibreChat configuration

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • A pull request for updating the documentation has been submitted.

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