fix: preserve external wait attention

This commit is contained in:
Dotta committed 2026-07-12 16:26:14 +00:00
1 parent 10dbaee55f
commit dc39ac4b25
2 files changed
+10 -1

No files matched your search

@@ -630,6 +630,11 @@ describeEmbeddedPostgres("issue blocker attention", () => {
action: { label: "External owner action", detail: null },
redaction: { externalDetailsRedacted: true, secretFieldsOmitted: true },
});
expect(issue?.blockerAttention).toMatchObject({
state: "covered",
reason: null,
unresolvedBlockerCount: 0,
});
expect(JSON.stringify(issue?.blockedInboxAttention)).not.toContain(owner);
expect(JSON.stringify(issue?.blockedInboxAttention)).not.toContain(action);
+5 -1
View File
@@ -1649,7 +1649,7 @@ type IssueBlockerAttentionInputNode =
IssueBlockerAttentionNode,
"id" | "companyId" | "parentId" | "identifier" | "title" | "status" | "assigneeAgentId" | "assigneeUserId"
>
& { executionRunId?: string | null };
& { executionRunId?: string | null; description?: string | null };
type IssueBlockerAttentionEdge = {
issueId: string;
@@ -2360,6 +2360,10 @@ async function listIssueBlockerAttentionMap(
for (const root of roots) {
const topLevelEdges = (edgesByIssueId.get(root.id) ?? []).filter((edge) => nodesById.get(edge.blockerIssueId)?.status !== "done");
if (topLevelEdges.length === 0) {
if (externalWaitFromDescription(root.description ?? null)) {
attentionMap.set(root.id, createIssueBlockerAttention({ state: "covered" }));
continue;
}
attentionMap.set(root.id, createIssueBlockerAttention({
state: "needs_attention",
reason: "missing_blocker_path",