Skip to content

The open-source app everyone uses to manage agents at work

Remove comment composer interrupt checkbox

dottabc61eb84dfa8
diff --git a/ui/src/components/CommentThread.tsx b/ui/src/components/CommentThread.tsx
index 0204b94d40..e2a0173a8c 100644
--- a/ui/src/components/CommentThread.tsx
+++ b/ui/src/components/CommentThread.tsx
@@ -40,12 +40,7 @@ interface CommentThreadProps {
linkedRuns?: LinkedRunItem[];
companyId?: string | null;
projectId?: string | null;
- onAdd: (
- body: string,
- reopen?: boolean,
- reassignment?: CommentReassignment,
- interrupt?: boolean,
- ) => Promise<void>;
+ onAdd: (body: string, reopen?: boolean, reassignment?: CommentReassignment) => Promise<void>;
issueStatus?: string;
agentMap?: Map<string, Agent>;
imageUploadHandler?: (file: File) => Promise<string>;
@@ -58,7 +53,6 @@ interface CommentThreadProps {
currentAssigneeValue?: string;
suggestedAssigneeValue?: string;
mentions?: MentionOption[];
- interruptAvailable?: boolean;
onInterruptQueued?: (runId: string) => Promise<void>;
interruptingQueuedRunId?: string | null;
}
@@ -329,13 +323,11 @@ export function CommentThread({
currentAssigneeValue = "",
suggestedAssigneeValue,
mentions: providedMentions,
- interruptAvailable = false,
onInterruptQueued,
interruptingQueuedRunId = null,
}: CommentThreadProps) {
const [body, setBody] = useState("");
const [reopen, setReopen] = useState(true);
- const [interrupt, setInterrupt] = useState(false);
const [submitting, setSubmitting] = useState(false);
const [attaching, setAttaching] = useState(false);
const effectiveSuggestedAssigneeValue = suggestedAssigneeValue ?? currentAssigneeValue;
@@ -405,14 +397,6 @@ export function CommentThread({
setReassignTarget(effectiveSuggestedAssigneeValue);
}, [effectiveSuggestedAssigneeValue]);
- const interruptVisible = interruptAvailable && body.trim().length > 0;
-
- useEffect(() => {
- if (!interruptVisible && interrupt) {
- setInterrupt(false);
- }
- }, [interruptVisible, interrupt]);
-
// Scroll to comment when URL hash matches #comment-{id}
useEffect(() => {
const hash = location.hash;
@@ -439,11 +423,10 @@ export function CommentThread({
setSubmitting(true);
try {
- await onAdd(trimmed, reopen ? true : undefined, reassignment ?? undefined, interrupt ? true : undefined);
+ await onAdd(trimmed, reopen ? true : undefined, reassignment ?? undefined);
setBody("");
if (draftKey) clearDraft(draftKey);
setReopen(true);
- setInterrupt(false);
setReassignTarget(effectiveSuggestedAssigneeValue);
} catch {
// Parent mutation handlers surface the failure and keep the draft intact.
@@ -564,17 +547,6 @@ export function CommentThread({
/>
Re-open
</label>
- {interruptVisible && (
- <label className="flex items-center gap-1.5 text-xs text-red-700 dark:text-red-300 cursor-pointer select-none">
- <input
- type="checkbox"
- checked={interrupt}
- onChange={(e) => setInterrupt(e.target.checked)}
- className="rounded border-red-300 accent-red-600"
- />
- Interrupt
- </label>
- )}
{enableReassign && reassignOptions.length > 0 && (
<InlineEntitySelector
value={reassignTarget}
diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsx
index 996bb8fa39..b9471c434e 100644
--- a/ui/src/pages/IssueDetail.tsx
+++ b/ui/src/pages/IssueDetail.tsx
@@ -291,7 +291,6 @@ export function IssueDetail() {
),
[activeRun, liveRuns],
);
- const hasRunningIssueRun = Boolean(runningIssueRun);
const sourceBreadcrumb = useMemo(
() => readIssueDetailBreadcrumb(location.state, location.search) ?? { label: "Issues", href: "/issues" },
[location.state, location.search],
@@ -1246,17 +1245,16 @@ export function IssueDetail() {
currentAssigneeValue={actualAssigneeValue}
suggestedAssigneeValue={suggestedAssigneeValue}
mentions={mentionOptions}
- interruptAvailable={hasRunningIssueRun}
onInterruptQueued={async (runId) => {
await interruptQueuedComment.mutateAsync(runId);
}}
interruptingQueuedRunId={interruptQueuedComment.isPending ? runningIssueRun?.id ?? null : null}
- onAdd={async (body, reopen, reassignment, interrupt) => {
+ onAdd={async (body, reopen, reassignment) => {
if (reassignment) {
- await addCommentAndReassign.mutateAsync({ body, reopen, reassignment, interrupt });
+ await addCommentAndReassign.mutateAsync({ body, reopen, reassignment });
return;
}
- await addComment.mutateAsync({ body, reopen, interrupt });
+ await addComment.mutateAsync({ body, reopen });
}}
imageUploadHandler={async (file) => {
const attachment = await uploadAttachment.mutateAsync(file);