Skip to content

Conversation

@lily-de
Copy link
Contributor

@lily-de lily-de commented Mar 18, 2025

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:

  • new stuff for providers, view setting, and builtin extensions loading
  • old stuff that can be modified related to extensions
  • old stuff we can get rid of later


useEffect(() => window.electron.reactReady(), []);

useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not gone just moved -- this always runs

};

// Utility function to extract the command from the link
function extractCommand(link: string): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not gone just moved -- always available

}, []);

// Attempt to detect config for a stored provider
useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved into separate hook below (ctrl+f for detectStoredProvider)

}, []);

// Initialize system if we have a stored provider
useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved into conditional hook -- look for setupStoredProvider below

}, [view]);

// TODO: modify
useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same function as before, just moved

Comment on lines +222 to +224
const { switchModel } = useModel(); // TODO: remove
const { addRecentModel } = useRecentModels(); // TODO: remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as before just moved

const { switchModel } = useModel(); // TODO: remove
const { addRecentModel } = useRecentModels(); // TODO: remove

useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just moved from below

@lily-de lily-de requested a review from alexhancock March 18, 2025 01:20
@lily-de lily-de merged commit 34bc770 into main Mar 19, 2025
6 checks passed
@lily-de lily-de deleted the ldelalande/alpha-provider-config-flow-2 branch March 19, 2025 01:54
salman1993 added a commit that referenced this pull request Mar 20, 2025
* 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)
  ...
michaelneale added a commit that referenced this pull request Mar 20, 2025
* 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)
ahau-square pushed a commit that referenced this pull request May 2, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants