Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix: resolve multiple UX issues from user feedback
Gener2fd59e46b8e4
diff --git a/src/cli/daemon/daemon.ts b/src/cli/daemon/daemon.tsindex 76d213ea6..c96a7a889 100644--- a/src/cli/daemon/daemon.ts+++ b/src/cli/daemon/daemon.ts@@ -421,7 +421,11 @@ export async function startDaemon(if (pending_rescan) {log.info("Rescan requested — restarting daemon to re-detect runtimes");+ for (const id of evictedIds) {+ evictWorkspace(id);+ }requestRestart();+ return;}for (const apiTask of apiTasks) {diff --git a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsxindex 6f6f7b967..f78ae992e 100644--- a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx+++ b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx@@ -150,6 +150,9 @@ export default function RuntimesPage() {const [confirmOpen, setConfirmOpen] = useState(false);const [confirmTitle, setConfirmTitle] = useState("");const [confirmDescription, setConfirmDescription] = useState("");+ const [confirmLabel, setConfirmLabel] = useState("Remove");+ const [confirmLoadingLabel, setConfirmLoadingLabel] = useState<string | undefined>(undefined);+ const [confirmVariant, setConfirmVariant] = useState<"destructive" | "default">("destructive");const [confirmLoading, setConfirmLoading] = useState(false);const confirmAction = useRef<(() => Promise<void>) | null>(null);@@ -168,12 +171,15 @@ export default function RuntimesPage() {// Close the sheet only after the daemon is actually online. Runtime// registration can happen before the user starts the daemon process.+ const sheetOpenRef = useRef(sheetOpen);+ useEffect(() => { sheetOpenRef.current = sheetOpen; }, [sheetOpen]);useEffect(() => {return subscribeWs((msg) => {if (msg.type === "runtime.status" &&msg.workspaceId === workspaceId &&- msg.status === "online"+ msg.status === "online" &&+ sheetOpenRef.current) {setSheetOpen(false);setGeneratedToken("");@@ -185,10 +191,14 @@ export default function RuntimesPage() {const openConfirm = (title: string,description: string,- action: () => Promise<void>+ action: () => Promise<void>,+ opts?: { label?: string; loadingLabel?: string; variant?: "destructive" | "default" }) => {setConfirmTitle(title);setConfirmDescription(description);+ setConfirmLabel(opts?.label ?? "Remove");+ setConfirmLoadingLabel(opts?.loadingLabel);+ setConfirmVariant(opts?.variant ?? "destructive");confirmAction.current = action;setConfirmOpen(true);};@@ -430,7 +440,12 @@ export default function RuntimesPage() {variant="ghost"size="sm"className="text-xs h-6 px-2"- onClick={() => handleUpdate(machine.runtimes[0].id, daemonId)}+ onClick={() => openConfirm(+ "Update daemon",+ `This will update the daemon on "${displayName}" to the latest CLI version. The daemon will restart during the update.`,+ async () => { await handleUpdate(machine.runtimes[0].id, daemonId); },+ { label: "Update", loadingLabel: "Updating...", variant: "default" }+ )}>Update</Button>@@ -454,7 +469,12 @@ export default function RuntimesPage() {variant="ghost"size="sm"className="text-xs h-6 px-2"- onClick={() => handleRescan(machine.runtimes[0].id, daemonId)}+ onClick={() => openConfirm(+ "Rescan runtimes",+ `This will restart the daemon on "${displayName}" to re-detect available runtimes (Claude Code, Codex, OpenCode).`,+ async () => { await handleRescan(machine.runtimes[0].id, daemonId); },+ { label: "Rescan", loadingLabel: "Triggering...", variant: "default" }+ )}><RefreshCw className="size-3 mr-1" />Rescan@@ -556,6 +576,9 @@ export default function RuntimesPage() {onOpenChange={setConfirmOpen}title={confirmTitle}description={confirmDescription}+ confirmLabel={confirmLabel}+ loadingLabel={confirmLoadingLabel}+ confirmVariant={confirmVariant}loading={confirmLoading}onConfirm={handleConfirm}/>diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.cssindex ce018480a..0439c9d9f 100644--- a/src/web/src/app/globals.css+++ b/src/web/src/app/globals.css@@ -866,6 +866,9 @@margin-top: 0.2em;margin-bottom: 0.2em;}+.markdown li > p {+ display: inline;+}.markdown li > ul,.markdown li > ol {margin-top: 0.15em;@@ -877,6 +880,7 @@padding: 0.15em 0.35em;border-radius: 0.3em;background: var(--muted);+ overflow-wrap: break-word;}.markdown pre {margin-top: 0.75em;diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsxindex 592e2b632..37e464123 100644--- a/src/web/src/components/agent-chat/agent-chat-view.tsx+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx@@ -1323,7 +1323,7 @@ export function AgentChatView() {const isNewAgent = agent?.created_at && (renderNow - new Date(agent.created_at).getTime() < 5 * 60 * 1000);const hasEmailTask = (activeTaskCounts[agentId] ?? 0) > 0;- if (isNewAgent && hasEmailTask) {+ if (isNewAgent && hasEmailTask && activeChannel === "default") {return (<div className="flex flex-col items-center justify-center py-20 gap-3 animate-[fade-up_400ms_ease-out_both]"><div className="relative animate-bounce">diff --git a/src/web/src/components/ui/confirm-dialog.tsx b/src/web/src/components/ui/confirm-dialog.tsxindex f377b7d93..b0c77ffc9 100644--- a/src/web/src/components/ui/confirm-dialog.tsx+++ b/src/web/src/components/ui/confirm-dialog.tsx@@ -16,6 +16,8 @@ interface ConfirmDialogProps {title: string;description: string;confirmLabel?: string;+ loadingLabel?: string;+ confirmVariant?: "destructive" | "default";loading?: boolean;onConfirm: () => void;}@@ -26,6 +28,8 @@ export function ConfirmDialog({title,description,confirmLabel = "Remove",+ loadingLabel,+ confirmVariant = "destructive",loading = false,onConfirm,}: ConfirmDialogProps) {@@ -46,12 +50,12 @@ export function ConfirmDialog({Cancel</Button><Button- variant="destructive"+ variant={confirmVariant}size="sm"onClick={onConfirm}disabled={loading}>- {loading ? "Removing..." : confirmLabel}+ {loading ? (loadingLabel ?? `${confirmLabel}...`) : confirmLabel}</Button></DialogFooter></DialogContent>diff --git a/src/web/src/lib/auth.ts b/src/web/src/lib/auth.tsindex 08b5461cd..d6e530ee9 100644--- a/src/web/src/lib/auth.ts+++ b/src/web/src/lib/auth.ts@@ -34,6 +34,8 @@ export function createAuth(env: Env) {// may not yet be visible on a D1 read-replica, but the signed cookie carries// the session payload set by the sign-in handler itself.session: {+ expiresIn: 30 * 24 * 60 * 60,+ updateAge: 24 * 60 * 60,cookieCache: {enabled: true,maxAge: 5 * 60,