Skip to content

Fix unresponsive Next button after navigating Back in Create Project wizard#696

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/fix-next-button-unresponsiveness
Draft

Fix unresponsive Next button after navigating Back in Create Project wizard#696
Copilot wants to merge 1 commit intomainfrom
copilot/fix-next-button-unresponsiveness

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

After filling in project details and navigating forward then back in the Create Project sub-wizard (Profile → Images → Back to Profile), the Next button becomes permanently disabled, requiring Cancel to exit.

Analysis

The Zafiro wizard library caches step commands (nextCommands[0]). On back-navigation, the cached ReactiveCommand's CanExecute state is propagated through multiple ObserveOn(MainThreadScheduler) layers. This creates a timing window where the button re-binds to the cached command while its internal _canExecute value is still false (from the IsExecuting: true → false transition during the first forward navigation), and the subsequent true update has not yet been dispatched.

Changes

  • ReactiveValidationExtensions.WhenValid: Replaced Observable.Defer + FromEventPattern with a hot, published observable using Publish().RefCount() so the latest validity value is always immediately available to new subscribers and does not depend on a new ErrorsChanged event firing to unblock the cached command's CanExecute chain.
  • ProjectProfileViewModel.IsValid (and similar ViewModels): Backed by a field initialized at construction time to ensure a single, stable observable instance is passed to the wizard's command factory — eliminating any ambiguity around observable identity across the caching lifecycle.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll get --global cal/bin/bash user.name (dns block)
  • www.nuget.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix next button unresponsiveness in create project wizard Fix unresponsive Next button after navigating Back in Create Project wizard Mar 13, 2026
Copilot AI requested a review from dangershony March 13, 2026 23:29
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