Remove interaction wake policy header label

This commit is contained in:
Dotta committed 2026-07-01 23:20:48 +00:00
1 parent 77bc236c2a
commit 38550dcf77
4 files changed
+6 -14

No files matched your search

@@ -267,7 +267,7 @@ describe("IssueThreadInteractionCard", () => {
);
});
it("labels accept-only continuation policies in the card header", () => {
it("does not expose continuation wake policy labels in the card header", () => {
const host = renderCard({
interaction: {
...pendingRequestConfirmationInteraction,
@@ -275,7 +275,8 @@ describe("IssueThreadInteractionCard", () => {
},
});
expect(host.textContent).toContain("Wakes on confirm");
expect(host.textContent).not.toContain("Wakes on confirm");
expect(host.textContent).not.toContain("Wakes assignee");
});
it("renders request confirmation target links and stale-target expiry", () => {
@@ -1,6 +1,6 @@
import { useEffect, useMemo, useRef, useState } from "react";
import type { Agent } from "@paperclipai/shared";
import { AlertTriangle, CheckCircle2, ChevronRight, CircleDashed, FileText, GitBranch, ImagePlus, ListChecks, Loader2, MessageSquareQuote, X, XCircle } from "lucide-react";
import { AlertTriangle, CheckCircle2, ChevronRight, CircleDashed, FileText, GitBranch, ImagePlus, Loader2, MessageSquareQuote, X, XCircle } from "lucide-react";
import { Link } from "@/lib/router";
import { formatAssigneeUserLabel } from "../lib/assignees";
import {
@@ -1923,15 +1923,6 @@ export function IssueThreadInteractionCard({
<span className="text-current/60">/</span>
{planStyles ? planStyles.label : statusLabel(interaction.status)}
</span>
{interaction.continuationPolicy === "wake_assignee"
|| interaction.continuationPolicy === "wake_assignee_on_accept" ? (
<span className="inline-flex items-center gap-1 rounded-sm border border-border/70 bg-transparent px-2.5 py-1 text-[11px] font-medium uppercase tracking-[0.16em] text-foreground/70">
<ListChecks className="h-3.5 w-3.5" />
{interaction.continuationPolicy === "wake_assignee_on_accept"
? "Wakes on confirm"
: "Wakes assignee"}
</span>
) : null}
</div>
<div className="mt-3 text-lg font-bold text-foreground">
@@ -116,7 +116,7 @@ function createAskUserQuestionsInteraction(
kind: "ask_user_questions",
title: "Resolve open UX decisions before Phase 1",
summary:
"This form stays local until the operator submits it, so the assignee only wakes once after the whole answer set is ready.",
"This form stays local until the operator submits the whole answer set.",
status: "pending",
continuationPolicy: "wake_assignee",
createdByAgentId: "agent-codex",
@@ -746,7 +746,7 @@ export const ReviewSurface: Story = {
<div className="grid gap-6 xl:grid-cols-2">
<ScenarioCard
title="Pending"
description="Answers stay local across the whole form and only wake the assignee once after final submit."
description="Answers stay local across the whole form until the operator submits the final response."
>
<InteractiveAskUserQuestionsCard />
</ScenarioCard>