add copy button and make extension builtins any time (#1961)

This commit is contained in:
Lily Delalande
2025-03-31 21:45:10 -04:00
committed by GitHub
parent c629823207
commit e7ad230957
11 changed files with 73 additions and 48 deletions

View File

@@ -63,7 +63,7 @@ export default function App() {
view: 'welcome',
viewOptions: {},
});
const { getExtensions, addExtension, read } = useConfig();
const { getExtensions, addExtension, read, upsert } = useConfig();
const initAttemptedRef = useRef(false);
// Utility function to extract the command from the link
@@ -91,6 +91,7 @@ export default function App() {
const initializeApp = async () => {
try {
const config = window.electron.getConfig();
const provider = config.GOOSE_PROVIDER ?? (await read('GOOSE_PROVIDER', false));
const model = config.GOOSE_MODEL ?? (await read('GOOSE_MODEL', false));