mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-13 05:07:40 +02:00
[eric] agents: hidden harness messages self-identify, so a misfired nudge can never become 'the user told me to stop' (field report)
This commit is contained in:
@@ -114,6 +114,12 @@ class Messaging(AgentManagerProtocol):
|
||||
"session": session.model_dump(mode="json"),
|
||||
})
|
||||
|
||||
# Hidden messages are harness plumbing (nudges, lost-step retries, auth heals) but ride the
|
||||
# USER role, so agents stopped mid-task by a misfired nudge truthfully reported "the user
|
||||
# told me to stop", and others read them as prompt injection (field reports, 2026-08-16).
|
||||
# One attribution prefix at the one send chokepoint keeps every explanation honest.
|
||||
if hidden and prompt and not prompt.startswith("[Automated"):
|
||||
prompt = "[Automated message from OpenSwarm itself, not written by your user] " + prompt
|
||||
skill_meta = [{"id": s["id"], "name": s["name"]} for s in (attached_skills or [])] or None
|
||||
image_meta = [{"data": img["data"], "media_type": img.get("media_type", "image/png")} for img in (images or [])] or None
|
||||
user_msg = Message(
|
||||
|
||||
@@ -97,6 +97,7 @@ P_RELEASES: List[ReleaseNote] = [
|
||||
"An app or browser card whose page process dies now reloads itself instead of sitting as a solid black rectangle. The crash fired no load event at all, so nothing ever repainted it.",
|
||||
"The mouse-wheel Zoom/Scroll setting works on real mice now. Accelerated wheels (Magic Mouse, Logitech smooth scrolling) report fractional scroll amounts that were being mistaken for a trackpad, so the wheel always panned no matter what the setting said.",
|
||||
"A browser helper that talks itself into refusing (\"I\u2019m a text-based AI\") no longer poisons its browser for every later task. Refused and fabricated runs are forgotten instead of remembered, and agents can ask for a completely fresh browser when one misbehaves.",
|
||||
"Agents no longer claim \"the user told me to stop\" when it was OpenSwarm\u2019s own housekeeping talking. Internal wrap-up and retry messages now identify themselves, so an agent\u2019s explanation of why it stopped reflects what actually happened.",
|
||||
"Heavy sessions no longer vanish without a trace. When memory climbs past the safe line the app now sheds weight itself: preview thumbnails pause and refetchable caches drop, instead of growing until the operating system kills it mid-task.",
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user