Skip to content

LeoYeAI/agent-master-skills / skills/agent-chat-ux-v1-4-0

agent-chat-ux

Verified

Multi-agent UX for OpenClaw Control UI — agent selector, per-agent sessions, session history viewer with search, agent-filtered Sessions tab with friendly names, Create Agent wizard, emoji picker, and backend agent CRUD.

references/agents-panels-cron.txt

View on GitHub
diff --git a/ui/src/ui/views/agents-panels-status-files.ts b/ui/src/ui/views/agents-panels-status-files.ts
index 23de4cb96..2b8453dd2 100644
--- a/ui/src/ui/views/agents-panels-status-files.ts
+++ b/ui/src/ui/views/agents-panels-status-files.ts
@@ -274,6 +274,16 @@ export function renderAgentCron(params: {
   onRefresh: () => void;
 }) {
   const jobs = params.jobs.filter((job) => job.agentId === params.agentId);
+  const agentNextWakeMs =
+    jobs.length > 0
+      ? jobs.reduce<number | null>((min, job) => {
+          const t = job.state?.nextRunAtMs ?? null;
+          if (t == null) {
+            return min;
+          }
+          return min == null ? t : Math.min(min, t);
+        }, null)
+      : null;
   return html`
     <section class="grid grid-cols-2">
       ${renderAgentContextCard(params.context, "Workspace and scheduling targets.")}
@@ -281,7 +291,7 @@ export function renderAgentCron(params: {
         <div class="row" style="justify-content: space-between;">
           <div>
             <div class="card-title">Scheduler</div>
-            <div class="card-sub">Gateway cron status.</div>
+            <div class="card-sub">Agent cron scheduling status.</div>
           </div>
           <button class="btn btn--sm" ?disabled=${params.loading} @click=${params.onRefresh}>
             ${params.loading ? "Refreshing…" : "Refresh"}
@@ -296,11 +306,11 @@ export function renderAgentCron(params: {
           </div>
           <div class="stat">
             <div class="stat-label">Jobs</div>
-            <div class="stat-value">${params.status?.jobs ?? "n/a"}</div>
+            <div class="stat-value">${jobs.length}</div>
           </div>
           <div class="stat">
             <div class="stat-label">Next wake</div>
-            <div class="stat-value">${formatNextRun(params.status?.nextWakeAtMs ?? null)}</div>
+            <div class="stat-value">${formatNextRun(agentNextWakeMs)}</div>
           </div>
         </div>
         ${
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall