Repository navigation
fix(channels): ask before /model Local only turns the Local only switch on - #451
Merged
itsskofficial merged 1 commit intoOct 18, 2026
Conversation
In Telegram, Discord and WhatsApp, /model Local only now asks for a yes (like the desktop dialog) and /model Local only yes switches the models and the Local only switch together; undo puts both back. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
Author
|
recheck |
itsskofficial
approved these changes
Oct 18, 2026
itsskofficial
left a comment
Contributor
There was a problem hiding this comment.
Thanks @Venius24, this works well! I tested it on a real engine with a fake Telegram API:
/model Local onlyasks first;/model Local only yesturns both on (REST showslocal_only=trueand the preset active);/model undoputs both back;- there's no question when the switch is already on;
- in a group, a member who isn't the owner can't answer
yesorundo.
It also reuses the desktop's preset logic from #428 instead of duplicating it, which is exactly right.
Two small things I'll take as follow-ups, so no need to change this PR:
- tapping the Local only button in the
/modellist still applies the preset without asking; /model Local only noreplies "I don't have a model setup called 'Local only no'", where it could just cancel.
Approving and merging. Thanks!
Merged
via the queue into
existence-master:main
with commit Oct 18, 2026
7e90c87
9 of 10 checks passed
5 tasks done
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.
What and why
In a messaging app,
/model Local onlyswitched the models but left the Local only switch off, because there was no confirmation step. Now it asks "Turn on Local only too, so nothing leaves this computer? Reply /model Local only yes", and/model Local only yesdoes what the desktop does: the preset and the switch go on in one save (undo puts both back). It only asks when the switch is off. Only paired chats reach/modelat all (#385).Closes #446
How I tested it
tests/channels/test_model_command.py, using the fake Telegram API: asks first and changes nothing;yesturns on preset and switch; undo restores the switch; numeric pick (/model 1) asks too; no question when the switch is already on.pytest tests/channels tests/test_model_presets.py tests/test_local_only.py: 190 passed, 1 skipped.ruff check sentient tests: clean.Real test
Checklist
pytestpasses locally for what I touchedruff check sentient testsis cleandocs/API.mdnot affected (no contract change)changes/446.fixed.mdSummary by CodeRabbit
yesto apply the preset and turn on the setting together.