Overview
There are instances where the user attempts to create a component and then realises that the request sent is wrong, we don't have a mechanism to stop the request, it can only be done via a page refresh.
Also if i close the AI panel manually then the history and chat messages are cleared but the request does not stop, which eventually leads to the completion of the request(which the user was not expecting).
We can have 2 issues created for the 2 scenarios:-
- Create a mechanism to stop the request manually instead of relying on the page refresh.
- Fix the issue related to aborting the request when a user manually closes the Ai Panel.
Proposed resolution
I think we can handle the issue related to aborting the request in this issue and create a separate issue for the mechanism one.
User interface changes
Issue fork canvas-3556366
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
utkarsh_33 commentedComment #4
kunal.sachdev commentedTested it and everything works as expected. Just a minor nit to address, and a follow-up issue should be created for scenario 1
mentioned in the issue summary.
Comment #5
utkarsh_33 commentedComment #6
kunal.sachdev commentedComment #8
tedbowLooks good to me. Tested and it does cancel the requests
I have set to auto-merge if the test pass. otherwise I will look at tomorrow
Comment #10
tedbow