Repository navigation
Conversation
An oauth-model-alias entry on the meta channel whose alias is a model Meta lists sends every request for that ID to the alias's model. The relayed /muse-code/models catalog now marks such an entry is_hidden when the model the alias runs is in the same catalog, so Muse's picker, T3 and the Muse bridge offer only the model a request reaches. Muse still resolves a hidden ID named explicitly, and the alias runs it. With aliases from each Muse model to its -contributor twin, every Muse request runs in Contributor mode. While the channel has an alias, If-None-Match is not passed to Meta, and Meta's Etag and Last-Modified are dropped when the catalog changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
Nick, 2026-10-13: "I want all actions through contributor because of its much higher limits", and the base models should leave the picker.
Earlier that night an agent started eight PR reviews on
muse-wonder-1.0(Standard mode) through the Muse bridge, and the Meta subscription's 5-hour window ran out within minutes. Every Muse client picks its model from the catalog this proxy relays, so that catalog is where the base models have to go.What
An
oauth-model-aliasentry on themetachannel whose alias is a model Meta lists already takes that ID over: execution sends the request as the alias's model. With this change, the relayed/muse-code/modelscatalog also marks such an entryis_hidden, when the model the alias runs is in the same catalog.is_hiddenis Meta's own flag. Muse already hidesmuse-image-1.0with it, and T3 and the Muse bridge both leave that model out of their lists.muse-wonder-1.0explicitly (a pinned config, an open session) still gets an answer, and the alias runs it asmuse-wonder-1.0-contributor.If-None-Matchis not sent to Meta. Meta'sEtagandLast-Modifiedare dropped when the catalog was changed, so a client never keeps a 304 for a list it was not given.meta-api-keygets no OAuth model alias, so its catalog is left alone, as execution already does.The configuration that pairs with it, live on tower since 2026-10-13 01:29 Pacific:
fork: truematters: without it the alias would replace the-contributorIDs in the login's model list, and those are every machine's default.Tests
On fate, Go 1.26.9:
gofmt -l internal/api/andgo vet ./internal/api/are clean.go test ./internal/api/ -run 'TestForkMuseCode|TestForkHideShadowed': 8 tests pass, 4 of them new:TestForkMuseCodeRelayHidesModelsAnAliasTakesOverfails (is_hidden = false,Etagstill relayed)..github/scripts/fork-check.shexits 0. Its advisory run reportsTestResponsesInterruptStopsHTTPUpstreamandTestResponsesLateInterruptDoesNotPoisonNextCreateinsdk/api/handlers/openai. That package does not importinternal/api, and on this commit they fail 8 and 1 of 20 runs on their own.Deploy
Merging builds
:latest. After the apply, Muse clients pick up the hidden flags at their next catalog read. Until then, the aliases already send base IDs as contributor.🤖 Generated with Claude Code