mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 13:24:55 +01:00
fix(runner): space live identity below header
This commit is contained in:
1 parent
c925b3fbb9
commit
cc19675b28
2 files changed
+6
-1
No files matched your search
@@ -51,6 +51,7 @@ describe("TaskChatRunnerTurn", () => {
|
||||
const identity = container.querySelector('[data-testid="task-chat-agent-identity"]');
|
||||
const activity = container.querySelector('[data-testid="task-chat-current-activity"]');
|
||||
expect(identity?.compareDocumentPosition(activity!)).toBe(Node.DOCUMENT_POSITION_FOLLOWING);
|
||||
expect(container.querySelector('[data-testid="task-chat-runner-identity-row"]')?.classList.contains("pt-2")).toBe(true);
|
||||
});
|
||||
|
||||
it("streams the final response in its durable slot and hides current activity", () => {
|
||||
|
||||
@@ -96,7 +96,11 @@ export function TaskChatRunnerTurn({
|
||||
expanded={open}
|
||||
onToggle={() => setOpen((value) => !value)}
|
||||
/>
|
||||
{agentName ? <TaskChatAgentIdentity agentName={agentName} agentIcon={agentIcon} /> : null}
|
||||
{agentName ? (
|
||||
<div className="pt-2" data-testid="task-chat-runner-identity-row">
|
||||
<TaskChatAgentIdentity agentName={agentName} agentIcon={agentIcon} />
|
||||
</div>
|
||||
) : null}
|
||||
<div className="tc-turn-fold" data-folded={open ? "false" : "true"} aria-hidden={!open}>
|
||||
<div>
|
||||
<div className="flex flex-col gap-2 py-2">
|
||||
|
||||
Reference in new issue
Block a user