The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(ui): remove duplicate create-task loading status (#10756)
Dotta2a9093343362
diff --git a/ui/src/components/NewIssueDialog.test.tsx b/ui/src/components/NewIssueDialog.test.tsxindex cf5fe5227a..b103b7eedd 100644--- a/ui/src/components/NewIssueDialog.test.tsx+++ b/ui/src/components/NewIssueDialog.test.tsx@@ -797,6 +797,29 @@ describe("NewIssueDialog", () => {act(() => root.unmount());});+ it("shows the create-task loading state only in the submit button", async () => {+ mockIssuesApi.create.mockReturnValue(new Promise(() => undefined));+ dialogState.newIssueDefaults = { title: "Pending task" };++ const { root } = renderDialog(container);+ await flush();++ const submitButton = Array.from(container.querySelectorAll("button"))+ .find((button) => button.textContent?.includes("Create Task"));+ expect(submitButton).not.toBeUndefined();++ await act(async () => {+ submitButton!.dispatchEvent(new MouseEvent("click", { bubbles: true }));+ });+ await flush();++ expect(submitButton?.textContent).toContain("Creating...");+ expect(submitButton?.getAttribute("aria-busy")).toBe("true");+ expect(container.textContent).not.toContain("Creating issue");++ act(() => root.unmount());+ });+it("submits Chinese, Japanese, and Hindi issue text without normalization", async () => {const title = "验证中文任务";const description = [diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsxindex 43a33acd9d..cfe630b871 100644--- a/ui/src/components/NewIssueDialog.tsx+++ b/ui/src/components/NewIssueDialog.tsx@@ -2242,7 +2242,7 @@ export function NewIssueDialog() {><ShieldAlert className="mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-600 dark:text-amber-300" /><span className="leading-snug">- Low-trust review agent. It can only act inside its assigned review boundary; issue, project, or run policy defines the concrete scope.+ Low-trust review agent. It can only act inside its assigned review boundary; task, project, or run policy defines the concrete scope.</span></div>) : null}@@ -2259,16 +2259,11 @@ export function NewIssueDialog() {Discard Draft</Button><div className="flex items-center gap-3">- <div className="min-h-5 text-right">- {createIssue.isPending ? (- <span className="inline-flex items-center gap-1.5 text-xs font-medium text-muted-foreground">- <Loader2 className="h-3 w-3 animate-spin" />- Creating issue...- </span>- ) : createIssue.isError ? (+ {createIssue.isError ? (+ <div className="min-h-5 text-right"><span className="text-xs text-destructive">{createIssueErrorMessage}</span>- ) : null}- </div>+ </div>+ ) : null}<Buttonsize="sm"className="min-w-(--sz-8_5rem) disabled:opacity-100"