Skip to content

fix(agent): add active-goal to transient user block regex (#4464)#4513

Open
myipanta wants to merge 2 commits into
esengine:main-v2from
myipanta:fix/4464-active-goal-strip
Open

fix(agent): add active-goal to transient user block regex (#4464)#4513
myipanta wants to merge 2 commits into
esengine:main-v2from
myipanta:fix/4464-active-goal-strip

Conversation

@myipanta

Copy link
Copy Markdown

The StripTransientUserBlocks regex stripped reasoning-language, memory-update, and background-jobs XML blocks from persisted user messages before display, but missed active-goal blocks injected by goal/collaboration mode. This caused the goal-mode injection prompt to leak into the chat transcript as visible user-bubble text.

Add active-goal to both alternation groups in the regex so the block is stripped alongside the other three transient blocks.

)

The StripTransientUserBlocks regex stripped reasoning-language,
memory-update, and background-jobs XML blocks from persisted user
messages before display, but missed active-goal blocks injected by
goal/collaboration mode.  This caused the goal-mode injection prompt
to leak into the chat transcript as visible user-bubble text.

Add active-goal to both alternation groups in the regex so the block
is stripped alongside the other three transient blocks.
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development agent Core agent loop (internal/agent, internal/control) labels Jun 15, 2026
@SivanCola SivanCola enabled auto-merge June 15, 2026 10:54
@SivanCola SivanCola disabled auto-merge June 15, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Core agent loop (internal/agent, internal/control) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants