Skip to content

fix(cli): render crew tool-call activity in agent-crew chat - #126

Merged
abhishekmishragithub merged 2 commits into
mainfrom
fix-crew-chat-tool-events
Sep 24, 2026
Merged

abhishekmishragithub merged 2 commits into
mainfrom
fix-crew-chat-tool-events

Conversation

@abhishekmishragithub

Copy link
Copy Markdown
Collaborator

agent-crew chat errored with "Unknown type agent.log" and dropped the reply on any tool-using turn — its codec had no case for AGENT_LOG, which the crew tool registry emits on every tool call. This registers SDKAgentLogEvent in the chat client and renders it dimly (· tool start: verify_identity ✓), so tool activity is visible and tool turns complete. Verified locally against a tool-heavy crew node.

Line documents loopback/passthrough/background tools; crew had only the default
(@function_tool, result -> LLM). Add @loopback_tool as the alias for that default
so agents written to the loopback/passthrough vocabulary read naturally. Exported
from smallestai.atoms.crew and .crew.tools; test asserts it aliases function_tool.

Passthrough + is_background are the remaining PRO-3068 pieces and need a change on
the tool-execution path (crew's tool loop is caller-driven via ToolRegistry.execute,
not a framework loop), captured on the ticket.
The chat client's codec had no case for AGENT_LOG (agent.log), which the crew
tool registry emits on every tool call (tool_call_start/end/error). Decoding one
raised 'Unknown type agent.log', so any tool-using turn errored and dropped the
reply. Register SDKAgentLogEvent and render it dimly (tool name + ok/fail), so
tool activity shows in the CLI and tool turns complete.
@crim-app

crim-app Bot commented Sep 24, 2026

Copy link
Copy Markdown

crim doesn't review pull requests automatically here.

Comment crim review on this pull request whenever you want a review.

@abhishekmishragithub
abhishekmishragithub merged commit c0afa99 into main Sep 24, 2026
5 checks passed
@abhishekmishragithub
abhishekmishragithub deleted the fix-crew-chat-tool-events branch September 24, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant