Repository navigation
feat(chat): show a chat's agent, label and sender from the CLI - #740
Merged
Merged
Conversation
The CLI now records how each session started: the agent it runs as, the label its orchestrator gave it and the chat whose message to that agent started it. An agent's message to another agent starts a chat of the recipient's own, which used to show nowhere under the recipient. A top-level chat the listing names an agent for is now filed under that agent, so it counts, opens and follows its computer as that agent's chat. The listed agents merge under the sidebar's own assignments and are never written to projects.yaml. A subagent's row shows its label as a badge, and a row's tooltip says who started it, including "sent by <chat>".
Contributor
Author
|
Rooms build on this: the room view nests member chats by the same listing fields. Tracking issue: inference-gateway/cli#1943, desktop steps #741 and #742. |
edenreich
marked this pull request as ready for review
November 23, 2026 16:47
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.
Summary
When the researcher agent was asked to message the tester agent, the message turned into a subagent nested under the researcher's chat. The tester agent showed (0) chats, and the sidebar never said which subagent was spun up.
The CLI change in inference-gateway/cli#1942 lets an agent message another agent's orchestrator. The recipient starts in a top-level chat of its own, and every session records
agent,labelandsent_by. This reads those fields frominfer conversations list.Depends on inference-gateway/cli#1942. Merge it after a CLI release that contains it, with
.cli-versionmoved there (gh workflow run bump-cli.yml). Until thenagent-message.yamlcannot pass.Changes
listedAgentOf(conversations)under its ownagentOfassignments, so the count, opening the chat as that agent, the model bar and the chat's computer (chatWorkspace) all agree.projects.yaml.mainchats are skipped.Delete conversation <title>label are unchanged.chatOriginbuilds it:invoked by orchestrator: <parent> as <label>,sent by <chat>orinvoked by human.[Message from <sender>], which the transcript already shows as a Message from card.listedAgentOfandchatOrigin. A newe2e/tests/agent-message.yamlwith two mock scenarios:e2e-sonnetmessagese2e-docs-writer, whose chat must appear undere2e-docs-writerand abovee2e-sonnet.docs/chat.md(subagent labels, the row tooltip) anddocs/agents.md(agents messaging each other).The e2e tests were not run locally. The new test needs the CLI from inference-gateway/cli#1942 (
INFER_BIN). The badge has no e2e check, because its text also shows in the prompt and the status bar.