instrument cancel and create
This commit is contained in:
parent
07fc02a15d
commit
aed7e3dacf
@ -184,6 +184,8 @@ function App({ navbarComponent }: Props) {
|
||||
};
|
||||
|
||||
const cancelCodeGeneration = () => {
|
||||
addEvent("Cancel");
|
||||
|
||||
wsRef.current?.close?.(USER_CLOSE_WEB_SOCKET_CODE);
|
||||
// make sure stop can correct the state even if the websocket is already closed
|
||||
cancelCodeGenerationAndReset();
|
||||
@ -289,6 +291,7 @@ function App({ navbarComponent }: Props) {
|
||||
setReferenceImages(referenceImages);
|
||||
setInputMode(inputMode);
|
||||
if (referenceImages.length > 0) {
|
||||
addEvent("Create");
|
||||
await doGenerateCode(
|
||||
{
|
||||
generationType: "create",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user