Skip to content

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Sep 19, 2025

Cherry-pick of PR #5635: refactor: Change manager flag from --disable-manager to --enable-manager

Summary

  • Cherry-picked commit a41b8a6
  • Updates frontend to align with backend changes in ComfyUI core PR #7555
  • Changed manager startup argument from --disable-manager (opt-out) to --enable-manager (opt-in)
  • Manager is now disabled by default unless explicitly enabled

Original Changes

  • Modified useManagerState.ts to check for --enable-manager flag presence
  • Inverted logic: manager is disabled when the flag is NOT present
  • Updated all related tests to reflect the new opt-in behavior
  • Fixed edge case where systemStats is null

Testing

  • ✅ TypeScript type checking passed
  • ✅ ESLint linting passed
  • ✅ Prettier formatting passed
  • ✅ Knip found no issues
  • ✅ Cherry-pick applied cleanly with no conflicts

Related

This hotfix ensures the frontend manager flag logic matches the backend changes.

┆Issue is synchronized with this Notion page by Unito

…ger (#5635)

## Summary
- Updated frontend to align with backend changes in ComfyUI core PR
#7555
- Changed manager startup argument from `--disable-manager` (opt-out) to
`--enable-manager` (opt-in)
- Manager is now disabled by default unless explicitly enabled

## Changes
- Modified `useManagerState.ts` to check for `--enable-manager` flag
presence
- Inverted logic: manager is disabled when the flag is NOT present
- Updated all related tests to reflect the new opt-in behavior
- Fixed edge case where `systemStats` is null

## Related
- Backend PR: comfyanonymous/ComfyUI#7555

## Test Plan
- [x] All unit tests pass
- [x] Verified manager state logic with different flag combinations
- [x] TypeScript type checking passes
- [x] Linting passes

🤖 Generated with [Claude Code](https://claude.ai/code)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5635-refactor-Change-manager-flag-from-disable-manager-to-enable-manager-2726d73d36508153a88bd9f152132b2a)
by [Unito](https://www.unito.io)
@christian-byrne christian-byrne requested review from a team as code owners September 19, 2025 00:05
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 19, 2025
Copy link

github-actions bot commented Sep 19, 2025

🎭 Playwright Test Results

All tests passed!

⏰ Completed at: 09/19/2025, 12:16:15 AM UTC

📈 Summary

  • Total Tests: 450
  • Passed: 421 ✅
  • Failed: 0
  • Flaky: 0
  • Skipped: 29 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 414 / ❌ 0 / ⚠️ 0 / ⏭️ 29
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 4 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@christian-byrne christian-byrne changed the title [Hotfix] Cherry-pick manager flag refactor to core/1.27 [backport] Cherry-pick manager flag refactor to core/1.27 Sep 19, 2025
@christian-byrne christian-byrne added the backport Backporting a PR onto a release candidate label Sep 19, 2025
@christian-byrne
Copy link
Contributor Author

christian-byrne commented Sep 19, 2025

This needed to be hotfixed to 1.26 and backported to 1.27, if there's confusion about multiple PRs.

@christian-byrne christian-byrne merged commit a99df5d into core/1.27 Sep 19, 2025
25 checks passed
@christian-byrne christian-byrne deleted the hotfix/1.27.6-20250918 branch September 19, 2025 00:20
@AustinMroz AustinMroz mentioned this pull request Sep 30, 2025
AustinMroz added a commit that referenced this pull request Sep 30, 2025
## What's Changed
### 🚀 Features
- add pricing for new api nodes (#5725)
- Rework desktop install / startup UX (#5292)

### 🐛 Bug Fixes
- Make experiment asset api setting hidden (#5861)
- Only add the listeners for DomWidget components once (#5849)
- fix invalid JSON (contains merge conflict markers) in 1.27 RC branch's
locale json (#5839)
- fix: Status indicator and close button appearing together  (#5741)
- Fix cyclic prototype errors with subgraphNodes (#5650)
- fix: don't immediately close missing nodes dialog if manager is
disabled (#5649)
- Fix SaveAs (#5644)

### 🔧 Maintenance  
- Add JSON validation CI workflow (#5838)
- Cherry-pick manager flag refactor to core/1.27 (#5646)
- Cherry-pick desktop dialogs framework to core/1.27 (#5634)

**Full Changelog**:
v1.27.5...v1.27.7

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5862-1-27-7-27e6d73d3650819aa712e682f6b88077)
by [Unito](https://www.unito.io)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backporting a PR onto a release candidate size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants