Repository navigation
Conversation
`models` and `tools` declared `typer.Option(True, "--list", "-l")`. A boolean option with a single flag name and default True has no off switch, so Click treats the flag as `flag_value = not default`: passing `--list`/`-l` set the value to False and skipped the listing branch, printing nothing with exit 0. Declare an explicit `--list/--no-list` pair (keeping `-l`) so the flag means True while bare `models`/`tools` still list by default. Add CliRunner tests for models/tools with and without --list/-l plus --category, --details, --live fallback, --multi and --use-cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
agentic-internet models --listandmodels -lprinted nothing and exited 0, even though the README documents that exact command.tools --listhad the same bug.Related: #10 (model alias refresh) also touches the model CLI and documents this bug as a known issue. The two PRs merge cleanly in either order:
master+ #9 + #10 + this PR together give 271 passed, 1 skipped.Summary
Both commands declared a boolean option that defaults to on and has a single flag name, so it had no off switch. Typer treats passing the flag as toggling it, which turned listing off:
Listing stays the default,
--listand-lnow mean on, and--no-listturns it off. Nothing else about how the commands choose their output changes.New
tests/test_cli_listing.pyadds 14CliRunnercases:models,--list,-l,--no-list,--category,--details, and--livewith the fetch mocked.tools,--list,-l,--multi, and--use-cases, with the agent replaced by a stand-in.They need no network or API keys.
Evidence
No API keys set, no network:
master)models --list/models -lmodelsmodelsmodels --no-listtools --list --multimaster's source: 10 failed, 4 passed (the 4 cover invocations that already worked).master: 250 + 1).uv.lockis unchanged.Merge Danger
Door: two-way
The change is two option strings plus a new test file.
Blast Radius: CLI
--no-listswitch tomodelsandtools, and help now shows[default: list].tools, and nowtools --list, still exit 1 withModelInitializationErrorwhen no provider key is set. The command builds a full agent, which needs a model, just to list tools. That is the same as onmasterand is tracked separately in beads.models --listindocs/references/openrouter-models-2026-12-05.md, which feat: refresh OpenRouter model aliases (2026-12-05 snapshot) #10 adds.