Skip to content

Added parameter required_frontend_version in the /system_stats API response #8875

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

Conversation

shivansh-gupta4
Copy link
Contributor

Added parameter required_frontend_version in the /system_stats API response

Copy link
Collaborator

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Tested by running app normally and checking system_stats response, confirming it sends the required frontend version from requirements.txt:

Selection_1757

Then changed requirements.txt to have 1.24.1 frontend, but kept 1.23.4 installed. You can see the rqeuired_frontend_version field in system_stats reponse indicates what the versio should be, and the about panel shows what it actually is:

Selection_1758

@comfyanonymous comfyanonymous merged commit d03ae07 into comfyanonymous:master Jul 24, 2025
6 checks passed
rakki194 pushed a commit to rakki194/ComfyUI that referenced this pull request Jul 29, 2025
…sponse (comfyanonymous#8875)

* Added the parameter required_frontend_version in the /system_stats  api response

* Update server.py

* Created a function get_required_frontend_version and wrote tests for it

* Refactored the function to return currently installed frontend pacakage version

* Moved required_frontend to a new function and imported that in server.py

* Corrected test cases using mocking techniques

* Corrected files to comply with ruff formatting
@shivansh-gupta4 shivansh-gupta4 deleted the adding_required_frontend_param branch July 29, 2025 16:59
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.

3 participants