From 7f17050d53bed371d42db7225ea2e1413c5b17e6 Mon Sep 17 00:00:00 2001 From: Raphael Fakhri <153192858+RaphaelFakhri@users.noreply.github.com> Date: Sun, 25 Oct 2026 07:10:33 +0000 Subject: [PATCH] Wrap a connector answer that only looks like an untrusted-data envelope --- CHANGELOG.md | 7 ++++++ server/src/untrusted-content.ts | 32 ++++++++++++++++++++++---- server/tests/untrusted-content.test.ts | 23 ++++++++++++++++++ 3 files changed, 58 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f9bc54a70..08e5680a33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,13 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged. request for an administrator to switch on a work app, grant it to a Bot, or connect a Shared app's team account is kept, with who answered it and when. It starts empty and nothing is backfilled. +### Outside content that looks marked as untrusted is marked anyway + +A connector's answer was passed to the model without the untrusted-data notice when its text +already started and ended like one. That text could carry a +notice in its own words, or close the tag and continue with instructions outside it. Content is now +left as it is only when it is exactly what OpenBot itself wrapped; anything else is wrapped. + ### A Bot can choose from a dropdown A Bot filling in a form in its browser could not set a dropdown (a native `