Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: dismiss ResumeAgentModal after successful task queue

Adam Eivy34d0fdf8e483
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index de04bb18fa..a475d62854 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -24,3 +24,4 @@
- Submodule status API (`/api/git/submodules/status`) always returned empty array — `stdout.trim()` was stripping the leading space status character from `git submodule status` output, causing the regex parser to fail
- CoS agents page crash: pipe characters (`|`) in task descriptions triggered infinite loop in markdown parser — non-table pipes now treated as normal text with safety fallback
- CoS agents API returned full output arrays (600KB+) for all agents in listing — output now stripped from listing response and loaded on demand
+- **Resume Agent modal not dismissing** — clicking "Queue Resume Task" successfully queued the task but left the modal open; modal now closes on successful submit
diff --git a/client/src/components/cos/tabs/ResumeAgentModal.jsx b/client/src/components/cos/tabs/ResumeAgentModal.jsx
index 1e1746587f..cfb4bdd97a 100644
--- a/client/src/components/cos/tabs/ResumeAgentModal.jsx
+++ b/client/src/components/cos/tabs/ResumeAgentModal.jsx
@@ -64,9 +64,10 @@ export default function ResumeAgentModal({ agent, taskType = 'user', providers,
app: formData.app,
type: taskType,
screenshots: screenshots.length > 0 ? screenshots.map(s => s.path) : undefined
+ }).then(() => {
+ onClose();
}).catch(err => {
toast.error(err?.message || 'Failed to resume agent');
- }).finally(() => {
submittingRef.current = false;
setIsSubmitting(false);
});