Conversation
|
|
||
| useEffect(() => window.electron.reactReady(), []); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
not gone just moved -- this always runs
| }; | ||
|
|
||
| // Utility function to extract the command from the link | ||
| function extractCommand(link: string): string { |
There was a problem hiding this comment.
not gone just moved -- always available
| }, []); | ||
|
|
||
| // Attempt to detect config for a stored provider | ||
| useEffect(() => { |
There was a problem hiding this comment.
moved into separate hook below (ctrl+f for detectStoredProvider)
| }, []); | ||
|
|
||
| // Initialize system if we have a stored provider | ||
| useEffect(() => { |
There was a problem hiding this comment.
moved into conditional hook -- look for setupStoredProvider below
| }, [view]); | ||
|
|
||
| // TODO: modify | ||
| useEffect(() => { |
There was a problem hiding this comment.
same function as before, just moved
| const { switchModel } = useModel(); // TODO: remove | ||
| const { addRecentModel } = useRecentModels(); // TODO: remove | ||
|
|
There was a problem hiding this comment.
same as before just moved
| const { switchModel } = useModel(); // TODO: remove | ||
| const { addRecentModel } = useRecentModels(); // TODO: remove | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
new conditional hook -- the old process for starting the app and getting the state of the providers is here
|
|
||
| setupExtensions(); | ||
| }, []); // Empty dependency array since we're using initAttemptedRef | ||
| const initializeApp = async () => { |
There was a problem hiding this comment.
new way to initialize app -- can break into separate useEffect's when we're ready
| const initAttemptedRef = useRef(false); | ||
|
|
||
| // Utility function to extract the command from the link | ||
| function extractCommand(link: string): string { |
There was a problem hiding this comment.
just moved from below
* origin/main: (74 commits) config: add optional extension description (#1743) docs: add deployment for install link generator (#1737) ui: new configure provider flow (#1736) Revert "Standardize Radio Button input" (#1758) Settings v2 Add Model (#1708) fix: use lowercase names for builtin external extensions (#1756) chore(release): release version 1.0.15 (#1749) docs: goosing around: langfuse blog (#1746) feat: update the deny call response (#1741) feat: refactor register eval (#1713) fix: Goose UI fix typos (#1744) feat(google_drive): comment read (#1732) feat: build cli workflow (#1697) fix: fix initial model configuration in cli when using toolshim (#1720) feat: add basic support for aws bedrock to desktop app (#1271) feat(google_drive): add image resizing logic from developer, and use Content::Image (#1735) Standardize Radio Button input (#1701) ui: tweaks to settings v2 (#1731) feat(google_drive): set read/write scope on all commands to use the same token (#1707) refactor: clean up log usage (#1704) ...
* main: fix: check if working directory has changed before asking (#1733) extensions: add a display name field (#1759) ui: add logs to app (#1760) docs: add stdin (#1769) config: add optional extension description (#1743) docs: add deployment for install link generator (#1737) ui: new configure provider flow (#1736) Revert "Standardize Radio Button input" (#1758) Settings v2 Add Model (#1708) fix: use lowercase names for builtin external extensions (#1756)
Uses config for the alpha feature flag -- also moved other functions around, tagging which ones we can get rid of once we are ready to test settings v2 end to end and ones that need modifications
I also put some old functions into a separate conditional hook
structure of the file: