Repository navigation
roles: refuse a metered OpenCode seat the roles file's allow list does not name - #181
Merged
Merged
Conversation
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.
roles.py writenow refuses a seat on a metered OpenCode model unless the roles file's allow list names it.opencodeAllowin the roles file.--allow-opencode <model id>adds a model and--deny-opencode <model id>removes one. Nothing else changes the list.--keepkeeps it, and a write that passes neither flag keeps it.--keep, exits 2, names the seat, the model, and the flag, and writes nothing.--forcestill writes the seat and does not add it to the list.show,backup, andvalidateresolve an existing file as before and add one note for each such seat. They never refuse and never rewrite the file.backup --role verifiersadds the note for the seats of thereview backupspanel it returns.cost,pricing, ortierand every one present is the number 0 or the stringfree. Anything else is metered, including a model the catalog says nothing about.driverKindisopencode, or when it has nodriverKindand its id isopencodeoropencode-go.Known limits:
inheritseat is not checked.driverKindis not recognized.Reviewed at e9a670a0.