Provide a rebuild option (restart w/ re-install node modules)

This commit is contained in:
Will Chen
2025-04-21 16:46:10 -07:00
parent 09b3bf3fee
commit ee3d2e7f4e
5 changed files with 125 additions and 57 deletions

View File

@@ -283,20 +283,7 @@ export function ChatInput({ chatId }: { chatId?: number }) {
}
function mapActionToButton(action: SuggestedAction) {
const { restartApp } = useRunApp();
switch (action.id) {
case "restart-app":
return (
<Button
variant="outline"
size="sm"
className="rounded-xl"
key={action.id}
onClick={restartApp}
>
Restart app
</Button>
);
default:
console.error(`Unsupported action: ${action.id}`);
return (