-
Notifications
You must be signed in to change notification settings - Fork 96
feat(claude/tool_call): add tool call logging and improve format handling #163
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
Conversation
|
✅ Preview binaries are ready! To test with modules: |
johnstcn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it and it appears to work, although I wasn't able to reproduce the issue. It doesn't look like the test changes do either. I can't say for sure if this will actually resolve the issue, although the changes mostly look OK to me.
lib/msgfmt/msgfmt_test.go
Outdated
| expected, err := testdataDir.ReadFile(path.Join(dir, string(agentType), c.Name(), "expected.txt")) | ||
| assert.NoError(t, err) | ||
| assert.Equal(t, string(expected), FormatAgentMessage(agentType, string(msg), string(userInput))) | ||
| output, _ := FormatToolCall(agentType, FormatAgentMessage(agentType, string(msg), string(userInput))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also asserted the matched tool calls here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done !
| ● coder - coder_report_task (MCP)(summary: "Snake game created | ||
| successfully at snake-game.html", | ||
| link: "file:///home/coder/snake-ga | ||
| me.html", state: "working") | ||
| ⎿ { | ||
| "message": "Thanks for reporting!" | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On its own, adding this does not cause any test failures on main. We should have a sample input that reproduces the issue so that we can have confidence in the fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was adde to verify the case where the message starts with a tool call
Closes: #162