Description
When clicking the Use button in the AI Assistant, the generated commit message is applied to the commit message editor, but the AI Assistant window remains open.
Since the generation task is normally complete after the message has been applied, it would be more convenient if the window closed automatically.
Current behavior
- Generate a commit message with the AI Assistant.
- Click Use.
- The generated message is applied successfully.
- The AI Assistant window remains open and must be closed manually.
Expected behavior
After clicking Use and successfully applying the generated commit message, the AI Assistant window should close automatically.
Motivation
This would remove an unnecessary extra click and make the AI-assisted commit workflow feel more natural:
- Generate the message.
- Review it.
- Apply it and return directly to the commit view.
The Regenerate button would remain available before the message is applied.
Possible implementation
The window could call Close() after vm.Use(vm.Response) succeeds in OnUseClicked.
I have tested this behavior in a local build, and it works as expected.
Description
When clicking the Use button in the AI Assistant, the generated commit message is applied to the commit message editor, but the AI Assistant window remains open.
Since the generation task is normally complete after the message has been applied, it would be more convenient if the window closed automatically.
Current behavior
Expected behavior
After clicking Use and successfully applying the generated commit message, the AI Assistant window should close automatically.
Motivation
This would remove an unnecessary extra click and make the AI-assisted commit workflow feel more natural:
The Regenerate button would remain available before the message is applied.
Possible implementation
The window could call
Close()aftervm.Use(vm.Response)succeeds inOnUseClicked.I have tested this behavior in a local build, and it works as expected.