A worker asks for another bot's help with ask_crew. The coordinator reads the request, asks the right bot (in a workspace, only its members), and sends the answer back into the asking bot's conversation, waking it. Each exchange is kept as a read-only chatroom: listed in the main rail after the workspaces, or in the workspace's rail for requests made there, with live status rows for each bot while it's open and a Stop button. Room sessions are hidden from every conversation list, other bots' words reach the model fenced as data, and turns, nesting and open rooms are capped. Closed rooms are pruned after a retention period and past a cap per place (Settings > General). Co-Authored-By: Claude Opus 5.5 <[email protected]>
26 lines
802 B
TypeScript
26 lines
802 B
TypeScript
import Row from "@moduletrace/twui/layout/Row";
|
|
import Span from "@moduletrace/twui/layout/Span";
|
|
import ChatroomStone from "@/src/components/general/chatroom-stone";
|
|
import type { ChatroomBot } from "@/src/types";
|
|
|
|
type Props = {
|
|
bot: ChatroomBot;
|
|
/**
|
|
* What it does in the room: asked, passes it on, was asked.
|
|
*/
|
|
part: string;
|
|
};
|
|
|
|
/**
|
|
* One bot of the room with its part in it.
|
|
*/
|
|
export default function ChatroomBotsRow({ bot, part }: Props) {
|
|
return (
|
|
<Row className="gap-2! flex-nowrap items-center">
|
|
<ChatroomStone bot={bot} size={18} />
|
|
<Span className="text-[13px] font-bold leading-4 text-ink">{bot.name || "A bot"}</Span>
|
|
<Span className="text-[13px] leading-4 text-ink-secondary">{part}</Span>
|
|
</Row>
|
|
);
|
|
}
|