Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ULookup
Merak
Repository navigation
Code
Issues
10
(10)
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
fix(context): orphaned tool_result HTTP 400 — three-layer defense (ISSUE #171)
- #174
#174
Merged
ULookup
merged 8 commits into
main
ULookup/Merak:main
from
fix/issue-171-orphaned-tool-result
ULookup/Merak:fix/issue-171-orphaned-tool-result
Copy head branch name to clipboard
Jun 29, 2026
Conversation
Commits
8
(8)
Checks
Files changed
Merged
fix(context): orphaned tool_result HTTP 400 — three-layer defense (ISSUE #171)
#174
ULookup
merged 8 commits into
main
ULookup/Merak:main
from
fix/issue-171-orphaned-tool-result
ULookup/Merak:fix/issue-171-orphaned-tool-result
Copy head branch name to clipboard
Commits
Commits on Jun 22, 2026
docs(spec): ISSUE #171 orphaned tool_result fix design
Show description for cbf6b2d
ULookup
committed
cbf6b2d
View commit details
Copy full SHA for cbf6b2d
Browse repository at this point
docs(plan): ISSUE #171 orphaned tool_result fix implementation plan
Show description for 6429362
ULookup
committed
6429362
View commit details
Copy full SHA for 6429362
Browse repository at this point
fix(context): add sanitize_orphans safety net in ContextSerializer
Show description for 6a31f9b
ULookup
committed
6a31f9b
View commit details
Copy full SHA for 6a31f9b
Browse repository at this point
fix(memory): make recent_history round-aware to prevent orphan tool_results
Show description for 001da48
ULookup
committed
001da48
View commit details
Copy full SHA for 001da48
Browse repository at this point
test(memory): fix Test 4 and Test 6 to actually exercise orphan paths
Show description for b1afb05
ULookup
committed
b1afb05
View commit details
Copy full SHA for b1afb05
Browse repository at this point
fix(context): make hard trim round-aware to preserve tool_use/tool_result pairing
Show description for 3ea265d
ULookup
committed
3ea265d
View commit details
Copy full SHA for 3ea265d
Browse repository at this point
fix(context): correct tokens_after bookkeeping and assert hard trim triggered
Show description for a16aeb0
ULookup
committed
a16aeb0
View commit details
Copy full SHA for a16aeb0
Browse repository at this point
fix(context): close spec gaps — system msg test, sanitize_orphans try/catch, spec update
Show description for cddc570
ULookup
committed
cddc570
View commit details
Copy full SHA for cddc570
Browse repository at this point
You can’t perform that action at this time.