Skip to content

Conversation

@alexhancock
Copy link
Collaborator

@alexhancock alexhancock commented May 30, 2025

Cleanup!

  • Remove all settings v1 code
  • Move settings_v2 into settings
  • Remove associated dead code and consolidate a couple modules in settings
  • Add a new context provider at the top level of the app for model and provider + use it everywhere needed
  • Fix TS and lint issues

@alexhancock alexhancock requested a review from zanesq May 30, 2025 18:53
Base automatically changed from fix/typescript-errors-phase8-property-access to main May 30, 2025 19:06
@alexhancock alexhancock force-pushed the alexhancock/remove-settings-v1 branch from 6a8c892 to 9877bdd Compare May 30, 2025 20:58
Copy link
Collaborator

@zanesq zanesq left a comment

Choose a reason for hiding this comment

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

code LGTM! I tested locally and ran the e2e tests and everything seems to still work fine.

(caveat) I've only used settings v2 since I've been on the team so maybe not the best to understand what functionality use to be in settings v1 and whats not needed anymore.

I added a few comments for clarification but feel free to ignore them if it's known changes with v1 -> v2

import RecipeExpandableInfo from './RecipeExpandableInfo';
import { ScheduleFromRecipeModal } from './schedule/ScheduleFromRecipeModal';
// import ExtensionList from './settings_v2/extensions/subcomponents/ExtensionList';
// import ExtensionList from './settings/extensions/subcomponents/ExtensionList';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can probably remove this comment?

viewOptions={viewOptions as SettingsViewOptions}
/>
)}
{view === 'moreModels' && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we not need these anymore?

loadProviderDetails();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentModel]);
}, []);
Copy link
Collaborator

Choose a reason for hiding this comment

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

be careful removing these deps, I think we might want the model to refresh here when it changes

Copy link
Collaborator

Choose a reason for hiding this comment

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

I added back the eslint disable comment for linting purposes

@@ -102,9 +100,6 @@ export const AddModelModal = ({ onClose, setView }: AddModelModalProps) => {
writeToConfig: upsert,
});

// Update the model context
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah maybe its not needed anymore?

</ErrorBoundary>
</ActiveKeysProvider>
</ModelProvider>
<ErrorBoundary>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Guess removing these was related to not needing model refresh?

@alexhancock alexhancock force-pushed the alexhancock/remove-settings-v1 branch from 2daaaba to 9a78542 Compare June 2, 2025 13:35
@alexhancock alexhancock force-pushed the alexhancock/remove-settings-v1 branch from 0e6d2e7 to 7a45e70 Compare June 2, 2025 17:38
@alexhancock alexhancock merged commit a89fa18 into main Jun 2, 2025
7 checks passed
@alexhancock alexhancock deleted the alexhancock/remove-settings-v1 branch June 2, 2025 18:04
lifeizhou-ap added a commit that referenced this pull request Jun 3, 2025
* main:
  fix: increase limit for direct to disk for performance (#2762)
  Revert "chore: use hermit in goose" (#2759)
  alexhancock/remove-settings-v1 (#2744)
  blog: Democratizing Detection Engineering at Block with Goose and Panther MCP (#2746)
lifeizhou-ap added a commit that referenced this pull request Jun 4, 2025
* main:
  fix: pr comment build cli workflow (#2774)
  hotfix: don't always run prompt (#2773)
  Lifei/test workflow (#2772)
  chore: use hermit to install node, rust and protoc (#2766)
  Feat: Refined the documentation for Goose (#2751)
  mcp(developer): add fallback on .gitignore if no .gooseignore is present (#2661)
  cli(ux): Show active context length in CLI (#2315)
  cli(config): Add GOOSE_CONTEXT_STRATEGY setting (#2666)
  fix: new models have different messages for context length exceeded (#2763)
  fix: increase limit for direct to disk for performance (#2762)
  Revert "chore: use hermit in goose" (#2759)
  alexhancock/remove-settings-v1 (#2744)
  blog: Democratizing Detection Engineering at Block with Goose and Panther MCP (#2746)
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