-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(agent-core): handle incomplete tool_calls on session resume (#660) #664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
LifeJiggy
wants to merge
11
commits into
MoonshotAI:main
from
LifeJiggy:fix/session-resume-incomplete-tool-calls
Closed
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b3fb9e7
fix(agent-core): handle incomplete tool_calls on session resume
LifeJiggy c066cba
fix: fix typecheck errors in session resume test and add changeset
LifeJiggy ac93e90
fix(agent-core): trim orphaned assistant messages from history on resume
LifeJiggy f41200f
fix(agent-core): remove entire orphaned assistant and siblings, flush…
LifeJiggy acdc38d
fix(agent-core): use positional matching for tool result resolution
LifeJiggy a00281e
fix(agent-core): remove tool messages by position, not global ID
LifeJiggy e0ec806
fix(agent-core): pre-scan replay records to skip stale tool_call_ids
LifeJiggy 4d44cea
fix(agent-core): only treat user messages as turn boundaries in stale…
LifeJiggy e966bbd
fix(agent-core): track open tool exchange during pre-scan to avoid fa…
LifeJiggy 216ccca
fix(agent-core): track open exchange during pre-scan and remove clean…
LifeJiggy 6a43924
fix(agent-core): clear staleToolCallIds after resume cleanup
LifeJiggy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| "@moonshot-ai/agent-core": patch | ||
| "@moonshot-ai/kimi-code": patch | ||
|
|
||
| --- | ||
|
|
||
| Fix session resume failing with 400 error when previous turn was interrupted mid-tool-call. |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.