{{ message }}
Repository navigation
Python: skip empty and whitespace-only instructions in prepend - #8524
Merged
Eduard van Valkenburg (eavanvalkenburg) merged 2 commits intoSep 22, 2026
Conversation
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 18, 2026 12:38 — with
GitHub Actions
Inactive
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 18, 2026 12:38 — with
GitHub Actions
Inactive
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 18, 2026 12:38 — with
GitHub Actions
Inactive
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 18, 2026 12:38 — with
GitHub Actions
Inactive
Member
Manohar Paturi (ManoharPaturi)
force-pushed
the
fix/prepend-empty-instructions
branch
from
September 21, 2026 09:05
8d04a9b to
9e42c3b
Compare
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 21, 2026 09:05 — with
GitHub Actions
Inactive
Contributor
Author
|
Eduard van Valkenburg (@eavanvalkenburg) the branch was cut from an older main which is what the failing package/pre-commit checks were tripping over. rebased onto current main (the actual change is 2 files, 28 lines), tests pass, and the body now follows the template with Fixes #8523. pushed in 9e42c3b. |
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 21, 2026 09:05 — with
GitHub Actions
Inactive
Contributor
Author
|
Eduard van Valkenburg (@eavanvalkenburg) the remaining pre-commit failure was two stray blank lines at the top of the test file that pyupgrade rewrites. cleaned up and pushed, checks should go green now. |
Manohar Paturi (ManoharPaturi)
force-pushed
the
fix/prepend-empty-instructions
branch
from
September 21, 2026 12:00
9e42c3b to
6a9f002
Compare
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 21, 2026 12:00 — with
GitHub Actions
Inactive
Only None short-circuited before; an instructions value of "" (the usual unset-options default) still injected a system message with empty content ahead of the conversation. Empty and all-whitespace entries are dropped, and a real instruction prepends verbatim. Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
Manohar Paturi (ManoharPaturi)
force-pushed
the
fix/prepend-empty-instructions
branch
from
September 21, 2026 17:22
6a9f002 to
65d91df
Compare
Manohar Paturi (ManoharPaturi)
temporarily deployed
to
github-app-auth
September 21, 2026 17:22 — with
GitHub Actions
Inactive
Contributor
Author
Eduard van Valkenburg (eavanvalkenburg)
enabled auto-merge
September 22, 2026 12:40
Eduard van Valkenburg (eavanvalkenburg)
deployed
to
github-app-auth
September 22, 2026 12:40 — with
GitHub Actions
Active
Eduard van Valkenburg (eavanvalkenburg)
approved these changes
Sep 22, 2026
ZedingZhang (ZedingZhang)
pushed a commit
to ZedingZhang/agent-framework
that referenced
this pull request
Sep 29, 2026
…soft#8524) Only None short-circuited before; an instructions value of "" (the usual unset-options default) still injected a system message with empty content ahead of the conversation. Empty and all-whitespace entries are dropped, and a real instruction prepends verbatim. Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com> Co-authored-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com> Co-authored-by: Eduard van Valkenburg <eavanvalkenburg@users.noreply.github.com>
This branch was successfully deployed
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.

Motivation & Context
prepend_instructions_to_messagesadds an empty system message for each empty or whitespace-only string in the instructions list, so options likeinstructions=["", "Be helpful"]produce a blank system message ahead of the real one. Reported in #8523.Description & Review Guide
Related Issue
Fixes #8523
Contribution Checklist