8000 fix(ui): ensure command registration occurs after workflow initialization by tusharmath · Pull Request #831 · antinomyhq/forge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(ui): ensure command registration occurs after workflow initialization #831

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

Merged
merged 1 commit into from
May 17, 2025

Conversation

tusharmath
Copy link
Collaborator
@tusharmath tusharmath commented May 17, 2025

Core Functionality Improvement

This PR fixes a critical timing issue in the UI initialization process, ensuring that command registration happens after the complete workflow initialization. This prevents potential race conditions and ensures that all commands are properly available to users with the correct workflow context.

Technical Details

  • Moves the self.command.register_all(&base_workflow) call out of the conditional logic in init_state()
  • Ensures commands are registered after the workflow is fully initialized and written to storage
  • Maintains consistent state by registering commands with the base workflow that includes all merged configuration

Why This Change Is Important

Without this fix, commands might be registered with an incomplete workflow configuration, potentially leading to inconsistent command behavior or missing custom commands defined in workflows.

@tusharmath tusharmath enabled auto-merge (squash) May 17, 2025 06:08
@tusharmath tusharmath merged commit f1f51a7 into main May 17, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0