feat: show context and menu (#397)

This commit is contained in:
Michael Neale
2024-12-04 11:25:37 +11:00
committed by GitHub
parent 63c6605c32
commit c435fb7c19
2 changed files with 17 additions and 1 deletions
+4 -1
View File
@@ -108,7 +108,10 @@ function ChatContent({
return (
<div className="chat-content flex flex-col w-screen h-screen bg-window-gradient items-center justify-center p-[10px]">
<div className="relative block h-[20px] w-screen">
<div className="text-center text-splash-pills-text">{window.appConfig.get("GOOSE_WORKING_DIR")}</div>
<MoreMenu
onStopGoose={() => {
stop();
@@ -280,4 +283,4 @@ export default function ChatWindow() {
)}
</div>
);
}
}
+13
View File
@@ -37,6 +37,19 @@ export default function MoreMenu({ onClearContext, onRestartGoose }: MoreMenuPro
>
Restart goose
</button>
<button
onClick={() => window.electron.directoryChooser()}
className="w-full text-left px-2 py-1.5 text-sm"
>
Open Dir (cmd+O)
</button>
<button
onClick={() => window.electron.createChatWindow()}
className="w-full text-left px-2 py-1.5 text-sm"
>
New Session (cmd+N)
</button>
</div>
</PopoverContent>
</Popover>