fix(agent): inject first_turn_note into LLM user message on first turn (#4528)#4550
Merged
mrveiss merged 1 commit intoDev_new_guifrom Apr 14, 2026
Merged
fix(agent): inject first_turn_note into LLM user message on first turn (#4528)#4550mrveiss merged 1 commit intoDev_new_guifrom
mrveiss merged 1 commit intoDev_new_guifrom
Conversation
#4528) _analyze_events() set context["first_turn_note"] on iteration 1 but nothing downstream consumed it (silent no-op since #4481). In _execute_iteration_phases(), pop first_turn_note from events_context immediately after _analyze_events() returns, append it to task_description in the context dict under the guard config.first_turn_priming_enabled, then clear it so subsequent turns are unaffected.
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
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.
Summary
first_turn_noteset by_analyze_events()into actual LLM context on the first iterationevents_context["task_description"]with"\n\n"separatorconfig.first_turn_priming_enabledand non-empty note valueTest Plan
first_turn_priming_enabled=Truecauses note to be appended to task_description on turn 1first_turn_priming_enabled=Falseskips injectionCloses #4528
🤖 Generated with Claude Code