mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-03 09:37:19 +01:00
fix: preserve external wait attention
This commit is contained in:
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);
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user