fix(agents): rephrase session reset prompt to avoid Azure content filter#43403
Merged
obviyus merged 3 commits intoopenclaw:mainfrom Mar 13, 2026
Merged
fix(agents): rephrase session reset prompt to avoid Azure content filter#43403obviyus merged 3 commits intoopenclaw:mainfrom
obviyus merged 3 commits intoopenclaw:mainfrom
Conversation
Contributor
Greptile SummaryThis PR replaces The change is a targeted workaround for Azure OpenAI's content safety filter, which flags the imperative "Execute … now" phrasing as potentially harmful, causing HTTP 400 errors on
Confidence Score: 5/5
Last reviewed commit: f9d9bd2 |
Contributor
Author
Azure OpenAI's content filter flags the phrase 'Execute your Session Startup sequence now' as potentially harmful, causing /new and /reset to return 400 for all Azure-hosted deployments. Replace 'Execute ... now' with 'Run your Session Startup sequence' in session-reset-prompt.ts and post-compaction-context.ts. The semantics are identical but the softer phrasing avoids the false-positive. Closes openclaw#42769
7452ae7 to
298fcbe
Compare
Contributor
mrosmarin
added a commit
to mrosmarin/openclaw
that referenced
this pull request
Mar 13, 2026
* main: (168 commits) fix: stabilize macos daemon onboarding fix(ui): keep shared auth on insecure control-ui connects (openclaw#45088) docs(plugins): clarify workspace shadowing fix(node-host): harden perl approval binding fix(node-host): harden pnpm approval binding fix(discovery): add missing domain to wideArea Zod config schema (openclaw#35615) chore(gitignore): add docker-compose override (openclaw#42879) feat(ios): add onboarding welcome pager (openclaw#45054) fix(signal): add groups config to Signal channel schema (openclaw#27199) fix: restore web fetch firecrawl config in runtime zod schema (openclaw#42583) fix: polish Android QR scanner onboarding (openclaw#45021) fix(android): use Google Code Scanner for onboarding QR fix(config): add missing params field to agents.list[] validation schema (openclaw#41171) docs(contributing): update Android app ownership fix(agents): rephrase session reset prompt to avoid Azure content filter (openclaw#43403) test(config): cover requiresOpenAiAnthropicToolPayload in compat schema fixture fix(agents): respect explicit user compat overrides for non-native openai-completions (openclaw#44432) Android: fix HttpURLConnection leak in TalkModeVoiceResolver (openclaw#43780) Docker: add OPENCLAW_TZ timezone support (openclaw#34119) fix(agents): avoid injecting memory file twice on case-insensitive mounts (openclaw#26054) ...
hougangdev
pushed a commit
to hougangdev/clawdbot
that referenced
this pull request
Mar 14, 2026
…ter (openclaw#43403) * fix(agents): rephrase session reset prompt to avoid Azure content filter Azure OpenAI's content filter flags the phrase 'Execute your Session Startup sequence now' as potentially harmful, causing /new and /reset to return 400 for all Azure-hosted deployments. Replace 'Execute ... now' with 'Run your Session Startup sequence' in session-reset-prompt.ts and post-compaction-context.ts. The semantics are identical but the softer phrasing avoids the false-positive. Closes openclaw#42769 * ci: retrigger checks (windows shard timeout) * fix: add changelog for Azure startup prompt fix (openclaw#43403) (thanks @xingsy97) --------- Co-authored-by: Ayaan Zaidi <[email protected]>
ecochran76
pushed a commit
to ecochran76/openclaw
that referenced
this pull request
Mar 14, 2026
…ter (openclaw#43403) * fix(agents): rephrase session reset prompt to avoid Azure content filter Azure OpenAI's content filter flags the phrase 'Execute your Session Startup sequence now' as potentially harmful, causing /new and /reset to return 400 for all Azure-hosted deployments. Replace 'Execute ... now' with 'Run your Session Startup sequence' in session-reset-prompt.ts and post-compaction-context.ts. The semantics are identical but the softer phrasing avoids the false-positive. Closes openclaw#42769 * ci: retrigger checks (windows shard timeout) * fix: add changelog for Azure startup prompt fix (openclaw#43403) (thanks @xingsy97) --------- Co-authored-by: Ayaan Zaidi <[email protected]>
5 tasks
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.
Problem
Azure OpenAI content filter flags the phrase
Execute your Session Startup sequence nowas potentially harmful, causing/newand/resetto return HTTP 400 for all Azure-hosted deployments.Root Cause
The word "Execute" combined with the imperative "now" triggers Azure's content safety filter. This affects two prompt strings:
session-reset-prompt.ts— the bare session reset prompt sent on/newand/resetpost-compaction-context.ts— the post-compaction reinit instructionFix
Replace
Execute your Session Startup sequence nowwithRun your Session Startup sequence. Semantics identical, avoids the false-positive.Validation
All 28 affected tests updated and passing.
Closes #42769