Skip to content

Conversation

@ilopezluna
Copy link
Contributor

@ilopezluna ilopezluna commented Oct 16, 2025

This pull request hides the configure command for Docker Model Runner from both the CLI and documentation. The most important changes include marking the command as hidden in code, updating documentation to remove references to the command, and ensuring the command does not appear in any user-facing lists.

Configure command allows to change the context size of a model but it does not persist and it adds additional issues related to model identity. To configure a model we will use #243 instead.

Summary by Sourcery

Hide the configure command from the CLI and user documentation to prevent its usage and references until it is replaced by the new #243 implementation.

Enhancements:

  • Set the configure command’s Hidden flag in the CLI code
  • Remove configure entries from Docker Model Runner reference docs and navigation
  • Mark the configure documentation file as hidden in its YAML metadata

@ilopezluna ilopezluna requested review from a team and Copilot October 16, 2025 20:18
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 16, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The pull request hides the configure command in the CLI implementation and documentation by marking it as hidden and removing all user-facing references to it.

Class diagram for updated CLI command structure

classDiagram
    class CobraCommand {
        +string Use
        +string Short
        +bool Hidden
        +ArgsFunc Args
    }
    class ConfigureCmd {
        +newConfigureCmd()
    }
    ConfigureCmd --|> CobraCommand
    CobraCommand : Hidden = true (for configure)
Loading

File-Level Changes

Change Details Files
Mark configure command as hidden in the CLI code
  • Added Hidden: true property to the Cobra command definition
  • Retained existing Use and Short fields without functional changes
cmd/cli/commands/configure.go
Remove configure entries from the main CLI reference index
  • Deleted 'docker model configure' alias from cname list
  • Removed 'docker_model_configure.yaml' from clink list
cmd/cli/docs/reference/docker_model.yaml
Update documentation files to hide and delist configure
  • Set hidden: true in docker_model_configure.yaml frontmatter
  • Removed the configure row from the model.md commands table
cmd/cli/docs/reference/docker_model_configure.yaml
cmd/cli/docs/reference/model.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR hides the configure command from Docker Model Runner's user-facing interfaces. The command allows changing a model's context size but doesn't persist settings and creates model identity issues, which will be addressed separately in #243.

  • Marked the configure command as hidden in the CLI
  • Removed configure command references from documentation tables and YAML metadata
  • Retained the command's YAML file with hidden flag set to true

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cmd/cli/docs/reference/model.md Removed configure command entry from the model commands table
cmd/cli/docs/reference/docker_model_configure.yaml Set hidden: true to hide the command from generated documentation
cmd/cli/docs/reference/docker_model.yaml Removed configure from command name and link lists in the model command metadata
cmd/cli/commands/configure.go Added Hidden: true field to the cobra command definition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ilopezluna, 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 aims to deprecate and hide the configure command for the Docker Model Runner. The command, which previously allowed adjusting model context size, is being removed due to issues with persistence and model identity, with future configuration handled by a new mechanism (referenced as #243). The changes ensure the command is no longer visible in the command-line interface or any associated documentation.

Highlights

  • CLI Command Hiding: The configure command for the Docker Model Runner has been marked as hidden in the CLI, preventing it from appearing in standard command listings.
  • Documentation Removal: References to the configure command have been removed from the docker_model.yaml and model.md documentation files, ensuring it no longer appears in user-facing command lists or tables.
  • Documentation File Hiding: The specific documentation file for the configure command (docker_model_configure.yaml) has been updated to explicitly mark it as hidden.
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.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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 effectively hides the configure command from the CLI and documentation. The changes are consistent across the codebase: the command is marked as hidden in the cobra command definition, and all references to it in the documentation files have been either removed or marked as hidden. This is a good approach to temporarily disable a feature that is pending a replacement. The changes are correct and well-executed.

@ilopezluna ilopezluna merged commit a940b70 into main Oct 17, 2025
9 checks passed
@ilopezluna ilopezluna deleted the hide-configure branch October 17, 2025 08:45
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