Repository navigation
ai: give lifted accounts a policy-free desktop profile - #2774
Merged
Merged
Conversation
A lifted account was still answered by the Salam profile in desktop and cloud agent chats, because SendDesktopFree always used the desktop profile whose own prompt carries the Salam policy. Add AI_ENGINE_AGENT_DESKTOP_RAW for a desktop profile with the bridge tools but no Salam prompt, fall back to the plain profile, and send an explicit free-account system note. The admin users page now warns when either plain profile is missing. Rename a local variable in the speech client that shadowed its parameter and broke the C build.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch was successfully deployed
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.
Lifted accounts still refused non-Salam code in Salam Agent and cloud chats. The per-account switch was applied, but
SendDesktopFreealways used the desktop engine profile, whose own system prompt carries the Salam policy; the extra system text is appended after it, so it cannot remove it.This change:
AI_ENGINE_AGENT_DESKTOP_RAWfor a desktop profile with the bridge tools but no Salam prompt;SendDesktopFreeprefers it, then falls back toAI_ENGINE_AGENT_RAW, then the desktop profile;plain_readyanddesktop_plain_readyin/admin/users;Tests run:
salam check ai/backend/main.salamsalam exec ai/backend/tests/policy_test.salamai/backend/main.salambun run typecheckandbun run buildinai/frontendnode ai/backend/tests/policy_flow.mjsagainst the engine mock: 23 passed, 0 failed