webui: Remove restart conversation button and modal component
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s0da284ec42d4da59k
diff --git a/webui/src/web-components/sketch-app-shell.ts b/webui/src/web-components/sketch-app-shell.ts
index 7b95bdd..d65093c 100644
--- a/webui/src/web-components/sketch-app-shell.ts
+++ b/webui/src/web-components/sketch-app-shell.ts
@@ -17,7 +17,6 @@
import "./sketch-terminal";
import "./sketch-timeline";
import "./sketch-view-mode-select";
-import "./sketch-restart-modal";
import { createRef, ref } from "lit/directives/ref.js";
import { SketchChatInput } from "./sketch-chat-input";
@@ -236,7 +235,6 @@
margin-right: 50px;
}
- .restart-button,
.stop-button,
.end-button {
background: #2196f3;
@@ -252,16 +250,6 @@
gap: 6px;
}
- .restart-button:hover {
- background-color: #0b7dda;
- }
-
- .restart-button:disabled {
- background-color: #ccc;
- cursor: not-allowed;
- opacity: 0.6;
- }
-
.stop-button {
background: #dc3545;
color: white;
@@ -306,7 +294,6 @@
display: none;
}
- .restart-button,
.stop-button {
padding: 6px;
}
@@ -400,8 +387,7 @@
first_message_index: 0,
};
- @state()
- private restartModalOpen = false;
+
// Mutation observer to detect when new messages are added
private mutationObserver: MutationObserver | null = null;
@@ -941,13 +927,7 @@
}
}
- openRestartModal() {
- this.restartModalOpen = true;
- }
- handleRestartModalClose() {
- this.restartModalOpen = false;
- }
async _handleMutlipleChoiceSelected(e: CustomEvent) {
const chatInput = this.shadowRoot?.querySelector(
@@ -1018,27 +998,6 @@
<div class="refresh-control">
<button
- id="restartButton"
- class="restart-button"
- ?disabled=${this.containerState.message_count === 0}
- @click=${this.openRestartModal}
- >
- <svg
- class="button-icon"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />
- <path d="M3 3v5h5" />
- </svg>
- <span class="button-text">Restart</span>
- </button>
- <button
id="stopButton"
class="stop-button"
?disabled=${(this.containerState?.outstanding_llm_calls || 0) ===
@@ -1170,12 +1129,7 @@
<sketch-chat-input @send-chat="${this._sendChat}"></sketch-chat-input>
</div>
- <sketch-restart-modal
- ?open=${this.restartModalOpen}
- @close=${this.handleRestartModalClose}
- .containerState=${this.containerState}
- .messages=${this.messages}
- ></sketch-restart-modal>
+
`;
}