Skip to content

Conversation

@iHildy
Copy link
Owner

@iHildy iHildy commented Jan 29, 2026

Added model favorites sync based on the CLI/TUI state file, and made it enabled by default. The plugin now includes ~/.local/state/opencode/model.json (or XDG/Windows equivalents) in the sync plan unless explicitly disabled.

  • New config flag includeModelFavorites (default true) wired through normalization and init options in src/sync/config.ts and src/sync/service.ts
  • Sync plan now includes the state file at state/model.json in the repo when enabled in src/sync/paths.ts
  • Tool schema exposes includeModelFavorites for /sync-init in src/index.ts
  • Status output shows Model favorites: enabled/disabled in src/sync/service.ts
  • Docs updated: config example + synced paths list in README.md, and init command guidance in src/command/sync-init.md
  • Tests added for default/disable behavior in src/sync/paths.test.ts and default normalization in src/sync/config.test.ts
    If you want to disable it later, set "includeModelFavorites": false in ~/.config/opencode/opencode-synced.jsonc (or pass includeModelFavorites=false to /sync-init).

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @iHildy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the capability to synchronize user-defined model favorites, stored in a dedicated state file, across different environments. By making this feature enabled by default, it ensures a consistent user experience for model management. The changes involve extending the existing synchronization framework to recognize and manage this new data type, along with providing clear configuration options for users who wish to customize its behavior.

Highlights

  • New Configuration Option: Introduced a new configuration option, "includeModelFavorites", to control the synchronization of model favorites, which is enabled by default.
  • Model Favorites File Integration: Integrated the ~/.local/state/opencode/model.json file into the synchronization plan, ensuring model favorites are synced across environments.
  • Tool Schema and Status Output Updates: Updated the /sync-init tool schema to expose the includeModelFavorites option and enhanced the sync status output to display whether model favorites synchronization is enabled or disabled.
  • Documentation Updates: Updated documentation in README.md and src/command/sync-init.md to reflect the new feature and its configuration.
  • Comprehensive Testing: Added comprehensive unit tests to validate the default behavior and explicit disabling of model favorites synchronization.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@iHildy iHildy merged commit 30a9326 into main Jan 29, 2026
3 checks passed
@iHildy iHildy deleted the feat/model-favorites-sync branch January 29, 2026 22:44
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new feature to sync model favorites, which is enabled by default. The changes are well-implemented across the configuration, sync logic, API, and documentation. New tests have been added to cover the default and disabled states of the new feature, ensuring its correctness. The code quality is high, with clear logic for handling the new configuration flag. Overall, this is an excellent contribution that is ready for merging.

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.

2 participants