The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
import type { Meta, StoryObj } from "@storybook/react-vite";
import { humanMessages, profiles } from "../../../support/thread-human-identity/fixtures";
function ReviewGuide() {
return <main className="mx-auto max-w-5xl space-y-6 p-6 text-foreground">
<h1 className="text-xl font-semibold">Human identity in a mixed task conversation</h1>
<p>Two human users and an agent can contribute to the same task. Previously every human comment used the same blue, right-aligned style without a name or avatar. Other people’s messages looked like the viewer’s own messages.</p>
<table className="w-full text-left text-sm"><thead><tr><th className="p-2">Example message</th><th className="p-2">Author</th></tr></thead><tbody>{humanMessages.map(row => <tr key={row.id} className="border-t border-border"><td className="p-2">{row.body}</td><td className="p-2">{profiles.get(row.authorUserId)?.label}</td></tr>)}</tbody></table>
<p>IssueDetail builds companyUserProfileMap from user-directory records and obtains currentUserId from the session. TaskChatThread received both, but only passed userLabelMap to the adapter. The normalized message discarded authorUserId, profile.image, and viewer ownership. TaskChatBubble rendered identity only for agents.</p>
<p>The change carries those fields through the production adapter and displays the shared Identity component for other humans. Agents and other humans sit on the left on the page surface with an avatar and name. Only the viewer’s own messages remain blue and right-aligned. Unknown profiles say User. Missing or externally hosted photos show initials. Profile refreshes are included in the adapter memo dependencies.</p>
<p>These are representative fixtures, not a copy of private task data. The mixed journey uses the production shell, adapter, thread, and composer. Swap the viewer to verify that ownership follows authorUserId. Full Conversation includes all fixture messages. Sending is local to the preview.</p>
</main>;
}
export default {
parameters: { paperclip: {
"capabilities": [
"tasks/discussion"
],
"implementation": "guide",
"boundary": "static",
"notes": "Review guide retained; explanatory content does not establish runtime or production coverage. The filter uses one lowercase label without helper text. All chat-channel tasks count as bot-created; the focused visibility stories cover human-initiated channel work."
} }, id: "chat-comments-human-identity-00-review-guide",
title: "Tasks and conversations/Task creation and lifecycle/Chat & Comments/Human identity/00 Review guide", component: ReviewGuide } satisfies Meta<typeof ReviewGuide>;
export const DataFlow: StoryObj<typeof ReviewGuide> = {};