Token导航 LogoToken导航

Agent Skill · 研究检索

multi-agent-tenant-upgrade(多 Agent 租户升级)

multi-agent-tenant-upgrade 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

multi-agent-tenant-upgrade 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 6,154。

总安装 23,158周安装 946GitHub Stars 公开资料未说明下载 7,492核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.5.2

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:multi-agent-tenant-upgrade(多 Agent 租户升级)
来源仓库:https://github.com/maverick-software/multi-agent-tenant-upgrade
安装命令:
openclaw skills install multi-agent-tenant-upgrade
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install multi-agent-tenant-upgrade

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

升级 OpenClaw Control UI 的多代理用户体验,含代理选择器与会话历史查看器。适用于需要直观管理多个活跃代理会话的管理员。支持带搜索功能的会话过滤与选项卡切换。安装命令为 openclaw skills install multi-agent-tenant-upgrade,需前端资源部署权限。

使用前应备份原有界面配置,避免升级导致布局错乱或功能丢失。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install multi-agent-tenant-upgrade;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

multi-agent-tenant-upgrade 怎么安装?

在终端执行 openclaw skills install multi-agent-tenant-upgrade。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

multi-agent-tenant-upgrade 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

multi-agent-tenant-upgrade 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

multi-agent-tenant-upgrade 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

multi-agent-tenant-upgrade 用的人多吗?

公开数据是累计安装 23,158 次,近一周安装 946 次,下载 7,492 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

multi-agent-tenant-upgrade 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
multi-agent-tenant-upgrade

多 Agent 租户升级 · 本页

23,158—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
agent-chat-ux
version
1.5.2
author
Charles Sears
description
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, backend agent CRUD, and auth mode badge.

agent-chat-ux

name: agent-chat-ux version: 1.5.2 author: Charles Sears description: 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.


⚠️ Security & Transparency Notes

Before applying this skill's patches, be aware of the following:

Credential Access (agents.wizard)

The AI Wizard backend (agents.wizard RPC) calls the configured model provider API directly via HTTP. To do this it needs an API key. It resolves credentials in this exact order:

  1. Default config auth — uses it if the resolved mode is api-key (most common)
  2. Auth profile store — searches for the first api_key-type profile matching the provider. Reads only provider and type fields to find it; does not log or return values.
  3. Environment variable — ANTHROPIC_API_KEY or OPENAI_API_KEY as a last resort
If you don't want the wizard reading your auth store, set ANTHROPIC_API_KEY in your environment and ensure your default auth profile is already api-key mode — step 2 is skipped entirely in that case.

External API Calls

agents.wizard makes a single HTTP POST to:

  • https://api.anthropic.com/v1/messages (Anthropic models)
  • https://api.openai.com/v1/chat/completions (OpenAI-compatible models)

No other outbound calls. The call carries your user-supplied description and nothing else from your system.

Patch Scope

These patches modify only agent-related files:

PatchFile modifiedWhat it changes
schema-agents.txtsrc/gateway/protocol/schema/agents-models-skills.tsAdds emoji optional param to AgentsUpdateParamsSchema
server-agents.txtsrc/gateway/server-methods/agents.tsAdds agents.wizard RPC; fixes agents.update to write - Emoji: (not - Avatar:) so emoji edits persist correctly
app-main.txtui/src/ui/app.tsAdds 19 @state() fields: 10 for Create Agent/Wizard + 9 for edit agent, delete agent
app-render.txtui/src/ui/app-render.tsWires create/wizard props + edit agent save handler (sends emoji param, not avatar; evicts identity cache after save)
app-render-helpers.txtui/src/ui/app-render.helpers.tsAgent selector dropdown in chat header (uses resolveAgentEmoji() for correct emoji), per-agent session filter, + New Session button
agents-view.txtui/src/ui/views/agents.tsCreate Agent panel (manual + wizard modes, 103-emoji picker); Edit agent inline form (name/emoji/workspace); Delete agent with confirmation; always-editable Overview
agents-utils.txtui/src/ui/views/agents-utils.tsbuildModelOptionsMulti() for multi-select fallback dropdown
agents-panels-cron.txtui/src/ui/views/agents-panels-status-files.tsCron Jobs tab Scheduler card now shows agent-specific job count and next-wake (not global gateway stats)

Each patch is scoped to a single concern. If any patch file modifies more than the files listed above, stop — you have an outdated copy.

LLM Output Validation

Wizard model output is parsed as JSON and validated before use:

  • Must be a JSON object with name (string), emoji (string), soul (string)
  • name is capped at 100 characters, emoji at 10
  • soul must be ≥ 20 characters
  • Empty or non-JSON responses are rejected with a user-visible error — nothing is auto-created

Source Code Modification

This skill applies git apply patches against ~/openclaw and requires a UI + gateway rebuild. Changes are persistent. Always backup before patching:

cd ~/openclaw && git stash  # or git branch backup/pre-agent-ux

What This Skill Adds

1. Agent Selector Dropdown in Chat Header

When multiple agents are configured, a dropdown appears left of the session dropdown in the chat header. Selecting an agent switches to that agent's most recent session (or falls back to a fresh webchat key for that agent). The session dropdown automatically filters to show only sessions belonging to the selected agent.

2. Per-Agent Session Filtering (Sorted Newest First)

Sessions are now scoped to the active agent and sorted newest-first. No more mixing other agents' cron jobs and subagent sessions into the current chat's session picker.

3. + New Session Button in Chat Header

A + icon button sits right of the session dropdown, allowing new sessions to be started without typing /new.

4. Create Agent Panel (Manual + AI Wizard)

The Agents tab gains a + Create Agent button that expands a panel with two modes:

Manual mode:

  • Agent name
  • Workspace path (auto-generated from name if left blank)
  • Emoji picker (see below)

AI Wizard mode:

  • Describe the agent in plain English
  • Click "Generate Agent" — AI generates name, emoji, and full SOUL.md
  • Review the preview, then click "✅ Create This Agent"

After creation, the agents list and config form are both refreshed automatically — no "not found in config" error, no manual reload needed.

5. Emoji Picker Dropdown

The emoji field in Create Agent and Edit Agent forms is a dropdown with 103 curated emojis grouped into 5 categories (Tech & AI, People & Roles, Animals, Nature & Elements, Objects & Symbols), each showing the emoji and its name. A large live preview shows the selected emoji next to the dropdown.

6. Edit Agent Inline (Agents Overview)

The Agents Overview card now shows editable inputs directly — no toggle needed:

  • Name, Emoji (dropdown, 103 emojis), Workspace are always editable
  • Changes activate the bottom Save button — no separate inline Save/Cancel
  • Emoji is saved as - Emoji: in IDENTITY.md (last-wins override of creation value); identity cache is evicted after save so changes appear immediately
  • Edit uses the emoji param of agents.update (not avatar) so the correct IDENTITY.md key is written

7. Delete Agent

  • 🗑️ Delete button appears in the Overview header for non-default agents
  • Inline confirmation dialog before deletion; hidden for the main/default agent

8. Agent-Specific Cron Stats

The Scheduler card on the Cron Jobs tab previously showed global gateway stats (total job count, global next wake). Now:

  • Jobs → count of cron jobs targeting *this agent only*
  • Next wake → earliest nextRunAtMs across this agent's jobs (n/a if no jobs)
  • Subtitle → "Agent cron scheduling status." (was "Gateway cron status.")

This means agents with no crons correctly show Jobs: 0 / Next wake: n/a.

9. Agents Tab — Model Selector Cleanup

  • Removed the redundant read-only "Primary Model" row from the Overview grid (it's already editable in the Model Selection section below)
  • Fallback models converted from a free-text comma-separated input to a proper <select multiple> using the same full model catalog as the primary selector
  • Added spacing and clear labels between primary and fallback fields
  • Small hint "(hold Ctrl/⌘ to select multiple)" on the fallback selector

10. Backend — agents.create / agents.update / agents.delete / agents.wizard

New RPC handlers wired into the gateway:

MethodDescription
agents.createProvisions a new agent entry in config + scaffolds workspace (SOUL.md, AGENTS.md, USER.md)
agents.updatePatches agent config (name, workspace, model, identity, etc.)
agents.deleteRemoves agent from config
agents.wizardCalls the configured LLM to generate name, emoji, and SOUL.md from a plain-text description

Auth fix in agents.wizard: Raw HTTP calls to the model API require an api_key token, not an OAuth/bearer token. The wizard now falls back to an explicit api_key profile (or ANTHROPIC_API_KEY env var) when the default resolved auth mode is oauth or token.

11. Session History Viewer (v1.4.0)

A modal overlay accessible from the Sessions tab that displays full conversation history for any session:

  • Agent dropdown filter — scope sessions by agent
  • Session dropdown — pick a session to view (filtered by agent)
  • Search bar — debounced full-text search across message content (case-insensitive)
  • Role filter chips — All / User / Assistant / System / Tool
  • Message timeline — role icons (👤/🤖/⚙️/🔧), timestamps, and message text
  • Pagination — "Load More" with count display (100 messages per page)
  • Click "History" button on any row in the Sessions tab to open

12. Sessions Tab Overhaul (v1.4.0)

The Sessions tab now provides a unified multi-agent experience:

  • Agent filter dropdown — filter sessions by agent (populated from agents.list)
  • Friendly session names — "Main Session", "Cron: pipedream-token-refresh", "discord:#bot-chat" instead of raw keys like agent:main:cron:cc63fdb3-...
  • Agent identity column — shows agent emoji + identity name (e.g. "🤖 Assistant") using identity.name → name → id fallback chain
  • Raw key shown as subtitle — full technical key displayed in smaller muted monospace text below the friendly name
  • Label column removed — redundant since the friendly name already incorporates label/displayName
  • CSS grid layout — proper column alignment using grid-template-columns with proportional widths; headers align precisely with data
  • Empty state — clear message when an agent has no sessions
  • Session count — total/filtered count shown in the store info line
  • History button pre-selects — clicking History on a row opens the modal with agent and session already selected, loading history immediately

13. Backend — sessions.history RPC (v1.4.0)

New RPC handler that reads full JSONL transcript files:

ParamTypeDescription
keystringSession key
limitnumberMax messages (default 200, max 500)
offsetnumberPagination offset
searchstringFull-text search filter
rolesFilterstring[]Filter by role(s)

Returns {key, sessionId, agentId, total, offset, items[{role, text, timestamp}]}.

14. Auth Mode Badge on Every Assistant Message (v1.5.0 / v1.5.1)

A small pill badge appears on every assistant message group showing which auth method was used:

BadgeColorMeaning
OAuthGreenClaude Max OAuth setup token (sk-ant-oat01-*)
APIIndigoDirect Anthropic API key
FallbackOrangeOpenAI or other fallback provider

How it works:

  1. After each final chat event, the UI calls auth.status RPC
  2. The RPC reads lastGood from auth-profiles.json and returns {profileId, mode}
  3. chatAuthMode state is updated and passed as fallbackAuthMode to all message groups
  4. Messages with a specific _authProfileId (from the run pipeline) use that; all others fall back to chatAuthMode
  5. renderAuthBadge() handles both profileId strings (e.g. anthropic:manual) and __mode:oauth shorthand

This ensures every assistant message shows a badge, including tool-use messages and messages from autonomous loops.

"Up to Date" pill: The gateway version header now shows "Up to Date" in a styled pill matching the Version and Health pills (green dot + rounded backdrop).

15. Pipedream Tab Refreshes on Agent Switch (v1.5.0)

Previously, switching agents while on the Pipedream sub-tab kept showing the previous agent's data. Now onSelectAgent reloads Pipedream (and Zapier) state when their respective sub-tabs are active. Same fix applied to Zapier tab.

16. OAuth-First Auth Priority Enforcement (v1.5.1)

The auth profile candidate list is now sorted so token/oauth type profiles always come before api_key profiles, regardless of the order returned by resolveAuthProfileOrder. This guarantees OAuth is tried first for Anthropic even if the profile resolution system silently skips it.

// In pi-embedded-runner/run.ts — applied after resolveAuthProfileOrder()
const sortedProfileOrder = [...profileOrder].sort((a, b) => {
  const typeA = authStore.profiles[a]?.type ?? "api_key";
  const typeB = authStore.profiles[b]?.type ?? "api_key";
  const rank = (t: string) => (t === "token" || t === "oauth" ? 0 : 1);
  return rank(typeA) - rank(typeB);
});

Files Changed

FileChange
src/gateway/protocol/schema/agents-models-skills.tsAdds emoji optional param to AgentsUpdateParamsSchema
src/gateway/server-methods/agents.tsagents.wizard RPC; agents.update emoji fix (writes - Emoji: not - Avatar:)
ui/src/ui/app-render.helpers.tsAgent dropdown in chat (with resolveAgentEmoji()), per-agent session filter, + New Session button
ui/src/ui/views/agents.tsCreate Agent panel, 103-emoji picker, edit/delete agent UI, always-editable Overview
ui/src/ui/views/agents-utils.tsbuildModelOptionsMulti() for multi-select fallback model dropdown
ui/src/ui/views/agents-panels-status-files.tsCron Jobs tab Scheduler card: agent-specific job count + next wake
ui/src/ui/app-render.tsCreate/wizard props wiring + edit agent save handler (emoji param, cache eviction) + session history modal wiring + agent filter for Sessions tab + agent identity name resolution (identity.name fallback chain) + History button agent pre-selection
ui/src/ui/app.ts19 @state() fields: create/wizard (10) + edit/delete agent (9) + session history modal (8) + sessions agent filter (1)
ui/src/ui/app-view-state.tsSession history modal + sessions agent filter type definitions
ui/src/ui/views/sessions.tsOverhauled: friendly names, agent identity column, agent filter dropdown, CSS grid layout, History button, Label column removed
ui/src/ui/views/sessions-history-modal.tsNew file: Session history modal component
src/gateway/protocol/schema/sessions.tsSessionsHistoryParamsSchema
src/gateway/protocol/schema/types.tsSessionsHistoryParams type export
src/gateway/protocol/index.tsvalidateSessionsHistoryParams + re-exports
src/gateway/server-methods/sessions.tssessions.history RPC handler
src/agents/pi-embedded-runner/run.tsCalls updateAgentRunContext with authProfileId; sorts profile candidates so token/oauth always first
src/gateway/server-chat.tsIncludes authProfileId from run context in final chat event payload
src/gateway/server-methods-list.tsRegisters auth.status as a known RPC method
src/gateway/server-methods/sessions.tsauth.status RPC: reads lastGood from auth-profiles store
src/infra/agent-events.tsAdds authProfileId?: string to AgentRunContext; exports updateAgentRunContext()
ui/src/styles/chat/grouped.cssAuth badge styles for per-message display (OAuth/API/fallback)
ui/src/styles/chat/layout.css.chat-auth-badge styles for chat controls bar badge
ui/src/ui/app-gateway.tsCalls auth.status after each final chat event; updates chatAuthMode state
ui/src/ui/app-render.helpers.tsAgent dropdown, per-agent session filter, + New Session; auth badge in controls bar removed in v1.5.1 (moved to per-message)
ui/src/ui/app-view-state.tsAdds chatAuthMode field
ui/src/ui/app.tsAdds @state() chatAuthMode
ui/src/ui/chat/grouped-render.tsrenderAuthBadge() for per-message badge; accepts fallbackAuthMode opt; handles __mode:oauth shorthand
ui/src/ui/controllers/chat.tsAnnotates final messages with _authProfileId from payload
ui/src/ui/types/chat-types.tsAdds authProfileId?: string to MessageGroup type
ui/src/ui/views/chat.tsgroupMessages() propagates _authProfileId; ChatProps adds chatAuthMode; passes fallbackAuthMode to renderMessageGroup
ui/src/ui/app-render.tsonSelectAgent reloads Pipedream/Zapier state when sub-tabs active; passes chatAuthMode to chat props; "Up to Date" styled as pill
ui/src/ui/app-chat.tsRemoved CHAT_SESSIONS_ACTIVE_MINUTES time filter (was 120min, now 0 = show all sessions in chat dropdown)

UI Design & Styling Reference

This section documents the UI design decisions for anyone installing or extending this skill.

Sessions Tab Layout

Uses CSS grid (display: grid) instead of the default OpenClaw .table flex layout for precise column alignment:

.sessions-grid {
  grid-template-columns: 2fr 1.2fr 0.6fr 0.8fr 1fr 0.8fr 0.8fr auto;
  /* Session | Agent | Kind | Updated | Tokens | Thinking | Reasoning | Actions */
}
  • Headers: 12px uppercase, letter-spacing 0.5px, var(--text-muted) color, bottom border
  • Rows: display: contents for grid participation, subtle bottom border, hover highlight at 2% white opacity
  • Session name cell: Friendly name as bold link (var(--accent, #6366f1)), raw key below in 11px muted monospace at 50% opacity
  • Agent column: 13px text, emoji + identity name (e.g. "🤖 Assistant")
  • Selects: max-width: 100px to prevent overflow

Session History Modal

Dark overlay modal with the following structure:

┌──────────────────────────────────────────────────┐
│  Session History                            [✕]  │
│  [Agent ▼]  [Session ▼]                         │
│  [🔍 Search...]  [All] [User] [Asst] [Sys] [Tool]│
│  ─────────────────────────────────────────────── │
│  👤 User · Feb 23, 10:23 AM                     │
│  Hello, can you help me?                         │
│  ─────────────────────────────────────────────── │
│  🤖 Assistant · Feb 23, 10:23 AM                │
│  Of course! What do you need?                    │
│  ─────────────────────────────────────────────── │
│          [Load More ↓]  Showing 100 of 342       │
└──────────────────────────────────────────────────┘

Key CSS variables used:

  • var(--bg-card, #1a1a2e) — modal background
  • var(--border, #333) — borders
  • var(--accent, #6366f1) — user role color, active chip
  • var(--text, #e0e0e0) — message text
  • var(--border-subtle, rgba(255,255,255,0.06)) — message separators

Role colors:

RoleColor
Uservar(--accent, #6366f1) (indigo)
Assistant#10b981 (emerald)
System#f59e0b (amber)
Tool#8b5cf6 (violet)

Role icons: 👤 User, 🤖 Assistant, ⚙️ System, 🔧 Tool, 💬 Other

Session Name Resolution

The friendly name fallback chain:

  1. row.label (user-set label)
  2. row.displayName (server-computed, e.g. "discord:#bot-chat")
  3. Smart key parsing:

- *:main → "Main Session" - *:cron:*:run:* → "Cron Run" - *:cron:* → "Cron Job" - *:subagent:* → "Subagent" - *:openai:* → "OpenAI Session" - *:<channel>:direct:<id> → "Channel · id" - *:<channel>:group:* → "Channel Group"

  1. Raw key as fallback

Agent Identity Resolution

For the Agent column and dropdowns:

  1. agent.identity.name (from IDENTITY.md — e.g. "Assistant")
  2. agent.name (from config — e.g. "main")
  3. agent.id (raw identifier)

Emoji: agent.identity.emoji with "🤖" as fallback.

Chat Dropdown

The session dropdown in the chat header shows all sessions for the selected agent (no time filter). Previously limited to sessions active within 120 minutes, which hid older Discord channels and other sessions.


Installation

This skill requires patching OpenClaw source files and a UI + gateway rebuild.

Prerequisites

  • OpenClaw source at ~/openclaw (fork or local clone)
  • pnpm installed (npm install -g pnpm)
  • Node.js 20+

Step 1: Apply patches

cd ~/openclaw

git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/schema-agents.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/agents-view.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/agents-utils.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/agents-panels-cron.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/app-render-helpers.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/app-render.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/app-main.txt
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/server-agents.txt

If any patch fails due to upstream drift, apply manually using the patch file as a line-by-line reference.

Step 1b: Apply v1.4.0 patches (Session History + Sessions Tab Overhaul)

cd ~/openclaw

# Backend: sessions.history RPC
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.4.0/patch-01-sessions-history-rpc.txt

# Sessions tab: friendly names, agent column, agent filter
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.4.0/patch-02-sessions-tab-overhaul.txt

# App state + render wiring for history modal
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.4.0/patch-03-app-wiring.txt

# New file: session history modal component
cp ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.4.0/patch-04-sessions-history-modal.ts \
   ui/src/ui/views/sessions-history-modal.ts

# Chat dropdown: show all sessions (remove 120min active filter)
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.4.0/patch-05-chat-sessions-all.txt

Step 1c: Apply v1.5.0 patches (Auth badge + Pipedream agent switch fix)

cd ~/openclaw

# Auth badge (auth.status RPC + per-message badge on all assistant groups)
# Also includes: OAuth-first sort, "Up to Date" pill styling
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.5.0/patch-auth-badge.txt

# Pipedream/Zapier tab refresh on agent switch + chatAuthMode wiring to chat view
git apply ~/.openclaw/workspace/skills/agent-chat-ux/references/v1.5.0/patch-pipedream-agent-switch.txt

Step 2: Rebuild UI

cd ~/openclaw
pnpm ui:build

Step 3: Rebuild gateway (for backend agent methods)

cd ~/openclaw
pnpm build

Step 4: Restart gateway

openclaw gateway restart

Step 5: Verify

  1. Open Control UI at http://localhost:18789
  2. Chat tab — agent dropdown appears left of session dropdown (if >1 agent configured); + button appears right of session dropdown
  3. Agents tab — "+ Create Agent" button with Manual and AI Wizard modes
  4. Agents → Overview → Model Selection — fallback is now a multi-select dropdown
  5. Create an agent with the AI Wizard — should generate cleanly and appear in the list with no "not found" error
  6. Agents → Overview — Name, Emoji, Workspace are editable directly; Save button at bottom activates on any change
  7. Change an agent's emoji — after Save it should persist (not revert to the original creation emoji)
  8. Agents → Cron Jobs — agents with no cron jobs show Jobs: 0 / Next wake: n/a (not the global gateway count)
  9. Sessions tab — sessions show friendly names (e.g. "Main Session") with agent emoji+name column; agent filter dropdown works
  10. Sessions tab → History button — opens modal with conversation history, search, and role filter chips
  11. History modal → Agent filter — changing agent filters the session dropdown; selecting a session loads its messages
  12. Chat dropdown — session dropdown shows ALL sessions for the selected agent (including older Discord channels, OpenAI sessions, etc. — not just recent ones)

Usage

Chat: Switching Agents & Sessions

  • Agent dropdown (left of session): picks the agent; session list updates to show only that agent's sessions
  • Session dropdown: switches between existing conversations for the selected agent, newest first
  • + button: starts a new session for the current agent (same as /new)

Agents: Create Agent

  1. Click + Create Agent
  2. Manual: enter name, workspace, pick emoji → "Create Agent"
  3. AI Wizard: describe the agent → "Generate Agent" → review preview → "✅ Create This Agent"

Agents: Fallback Models

In Model Selection:

  • Primary model — single dropdown
  • Fallback models — multi-select (Ctrl/⌘ + click for multiple); these are retried in order when the primary model fails (rate limit, context overflow, etc.)

Sessions: Viewing History

  1. Go to Sessions tab
  2. Optionally filter by agent using the Agent dropdown
  3. Click History on any session row
  4. The modal opens with the full conversation
  5. Search — type to search across all messages (300ms debounce)
  6. Role chips — click All/User/Assistant/System/Tool to filter by role
  7. Load More — pagination loads 100 messages at a time

Sessions: Agent-Filtered View

The Sessions tab now shows:

  • Session column — friendly name with raw key as subtitle
  • Agent column — emoji + name from agent identity
  • Agent filter — dropdown at top to scope the view per-agent

Architecture Notes

Session Key Format

agent:<agentId>:<rest> — the agent selector reads parseAgentSessionKey(state.sessionKey).agentId to determine the active agent and filters the session list accordingly.

Config Refresh After Creation

After agents.create succeeds, the UI calls both agents.list (to update the sidebar) and loadConfig (to refresh configForm). Without the loadConfig call, selecting the new agent would show "not found in config" because the config form was stale.

Wizard Auth Resolution

agents.wizard makes a direct HTTP call to the model provider API. Raw HTTP calls require an api_key type credential — not an OAuth bearer token. The resolution order is:

  1. Default resolveApiKeyForProvider result (used if mode is api-key)
  2. First api_key-type profile in the auth store for the provider
  3. ANTHROPIC_API_KEY / OPENAI_API_KEY env var directly

This mirrors the same pattern used in enhanced-loop-hook.ts.

Model Fallbacks

Stored as model.fallbacks[] in the agent config. The runtime tries them via runWithModelFallback() when the primary model returns an error.


Changelog

1.5.1 (2026-02-28)

  • Fix: Auth badge now shows on ALL assistant message groups, including tool-use and autonomous loop messages — chatAuthMode passed as fallbackAuthMode to every message group renderer
  • Fix: renderAuthBadge() updated to handle __mode:<mode> shorthand in addition to raw profile IDs
  • Fix: OAuth-first enforcement — profile candidate list is sorted so token/oauth profiles always precede api_key, regardless of resolution order quirks
  • Fix: Auth badge removed from chat controls bar (was redundant; per-message badge is more informative)
  • New: "Up to Date" in gateway version header now renders as a styled pill (green dot + rounded backdrop) matching Version and Health pills
  • Patches: Updated patch-auth-badge.txt and patch-pipedream-agent-switch.txt in references/v1.5.0/ to include all v1.5.1 changes

1.5.0 (2026-02-28)

  • New: Auth mode badge in chat controls bar — shows OAuth / API / Fallback pill after each response via auth.status RPC reading lastGood from auth-profiles store
  • New: auth.status RPC — reads lastGood from loadAuthProfileStore() and returns {profileId, mode} (oauth | api | fallback | unknown)
  • New: chatAuthMode UI state — updates after each final chat event; drives the badge color/label
  • Fix: Pipedream tab now refreshes when switching agents (was stuck showing previous agent's External User ID)
  • Fix: Zapier tab also refreshes on agent switch (same fix)
  • Patches: 2 patch files in references/v1.5.0/

1.4.0 (2026-02-23)

  • New: Session History Viewer — modal overlay with full conversation history, full-text search, role filtering (All/User/Assistant/System/Tool), and pagination (100 messages per page)
  • New: sessions.history RPC — reads full JSONL transcripts with search, role filtering, and offset/limit pagination
  • New: Sessions tab agent filter dropdown — scope view to a single agent
  • New: Sessions tab agent identity column — shows emoji + name per row
  • Overhaul: Sessions tab now shows friendly display names ("Main Session", "Cron: pipedream-token-refresh") instead of raw keys (agent:main:main, agent:main:cron:cc63fdb3-...)
  • Overhaul: Raw session key shown as muted subtitle under the friendly name for technical reference
  • New: Empty state for agent-filtered sessions — clear message when an agent has no sessions
  • New: Session count shown in store info line
  • Replaced: Verbose + Label columns removed from Sessions tab, replaced by Agent column (better multi-agent UX; label was redundant with friendly name)
  • Design: CSS grid layout for Sessions tab — proper column alignment using grid-template-columns with proportional widths
  • Design: Agent identity resolution uses identity.name → config name → agent id fallback chain (shows "Assistant" not "Main Agent")
  • Design: History button pre-selects agent filter and session in modal, loads history immediately
  • Design: Raw session key shown as muted monospace subtitle for technical reference
  • Fix: Chat session dropdown now shows ALL sessions (removed CHAT_SESSIONS_ACTIVE_MINUTES 120min time filter that was hiding older Discord channels and API sessions)
  • Patches: 5 patch files in references/v1.4.0/

1.3.0 (2026-02-19)

  • New: Edit agent inline — name, emoji, workspace always editable in Overview; single bottom Save button activates on any change; no inline Save/Cancel toggle
  • New: Delete agent — 🗑️ button with inline confirmation; hidden for default agent
  • New: agents-panels-cron.txt patch — Scheduler card on Cron Jobs tab now shows agent-specific job count and next-wake (n/a when no jobs assigned)
  • Fix: Emoji reverting after save — agents.update now accepts an emoji param and writes - Emoji: to IDENTITY.md; previously wrote - Avatar: which was always overridden by the creation-time - Emoji: line
  • Fix: Schema patch added (schema-agents.txt) — AgentsUpdateParamsSchema now includes optional emoji field
  • Fix: Identity cache eviction after agent save — identity is reloaded immediately so changes are visible without refresh
  • Fix: Chat dropdown emoji now uses resolveAgentEmoji() to correctly pick up IDENTITY.md emoji (not just agent.identity.emoji)
  • Expanded: AGENT_EMOJIS from 60 → 103 entries across all 5 categories

1.2.1 (2026-02-19)

  • Critical fix: Removed out-of-scope props and handlers from app-render.txt that referenced state not defined by this skill's app-main.txt patch — applying the previous patch would have caused TypeScript errors and runtime crashes
  • Critical fix: Removed unused import from app-render.txt
  • Fix: Replaced remaining as any casts in agent create handlers with typed assertions ({ ok?: boolean; error?: string } | null)

1.2.0 (2026-02-19)

  • Security: Added Security & Transparency section to SKILL.md documenting credential access, external calls, patch scope, and LLM output validation
  • Security: .metadata.json now explicitly declares ANTHROPIC_API_KEY/OPENAI_API_KEY as optional env vars with auth resolution order documented
  • Fix: Stripped out-of-scope state fields from app-main.txt that belonged to an unrelated feature
  • Hardening: agents.wizard JSON parsing now performs structural validation before accepting model output — rejects non-object, missing fields, empty strings, truncated content
  • Hardening: name capped to 100 chars, emoji to 10 chars on output to prevent oversized values
  • Metadata: Added capabilities block documenting auth_profile_read, external_api_calls, and source_code_patch with mitigations

1.1.0 (2026-02-18)

  • Fix: AI Wizard 401 error — OAuth token was being passed as x-api-key; now falls back to api_key profile or env var
  • Fix: "Agent not found in config" after creation — loadConfig now called after agents.create in both Manual and Wizard paths
  • New: Emoji picker dropdown (60 emojis, 5 categories, live preview) replaces free-text emoji input
  • Patches refreshed with all fixes included

⚠️ Known Gotchas

Model Dropdown Shows Only 1–3 Models

This manifests in two distinct failure modes that often alternate. Both are fixed permanently in v1.5.2 source patches. Understanding both helps if you're on an unpatched install.


Mode A — Allowlist Trap (agents.defaults.models non-empty)

Symptom: Dropdown shows a handful of models from one provider (e.g. 2 Claude variants) even though many providers have API keys configured. openclaw models list --all shows 750+ models fine.

Root cause: agents.defaults.models in openclaw.json acts as a strict allowlist inside buildAllowedModelSet() in the models.list RPC handler. Any wizard, openclaw models set <model>, or onboarding command writes a single entry there — after that, only that one provider's model is shown. The key is never auto-cleared.

Temporary fix (unpatched installs):

python3 -c "
import json, re
path = '/home/charl/.openclaw/openclaw.json'   # adjust path if needed
raw = open(path).read()
# strip JS comments, fix trailing commas, then parse
clean = re.sub(r'//.*\
', '\
', raw)
clean = re.sub(r',\s*([}\]])', r'\1', clean)
cfg = json.loads(clean)
cfg.setdefault('agents', {}).setdefault('defaults', {})['models'] = {}
open(path, 'w').write(json.dumps(cfg, indent=2))
print('done')
"
systemctl --user restart openclaw-gateway

Permanent fix (source patch — v1.5.2): Remove buildAllowedModelSet from the models.list handler entirely. agents.defaults.models controls routing/defaults, not what appears in the UI dropdown. File: src/gateway/server-methods/models.ts.

-      const cfg = loadConfig();
-      const { allowedCatalog } = buildAllowedModelSet({
-        cfg,
-        catalog,
-        defaultProvider: DEFAULT_PROVIDER,
-      });
-      const models = allowedCatalog.length > 0 ? allowedCatalog : catalog;
+      // Always return the full catalog — agents.defaults.models is for routing,
+      // not for filtering what's visible in the UI dropdown.
+      const models = await context.loadGatewayModelCatalog();
       respond(true, { models }, undefined);

Mode B — Empty Catalog on First Gateway Boot

Symptom: Dropdown shows nothing (or only the currently-selected model as a static fallback). Happens right after a fresh systemctl restart. After a second restart it usually works. The models.list RPC takes 1000+ ms and returns { models: [] }.

Root cause: Three interacting issues:

  1. loadModelCatalog() is lazy — not called until the first models.list RPC. If the gateway was busy at startup (e.g. rebuilding the Control UI, which happens on first install), the dynamic import() of the Pi SDK module may contend with other startup I/O and resolve to an empty registry.
  2. When models.length === 0, modelCatalogPromise is reset to null — so every subsequent call retries, but the error is only logged once (then hasLoggedModelCatalogError suppresses all future failures). This makes the root cause invisible in logs.
  3. The loadGatewayModelCatalog() wrapper had no retry — it returned [] as-is.

Permanent fix (source patches — v1.5.2):

src/gateway/server-model-catalog.ts — retry once on empty + pre-warm at startup:

export async function loadGatewayModelCatalog(): Promise<GatewayModelChoice[]> {
  const result = await loadModelCatalog({ config: loadConfig() });
  if (result.length === 0) {
    // Bust cache and retry once — handles transient startup race.
    return await loadModelCatalog({ config: loadConfig(), useCache: false });
  }
  return result;
}

export function warmModelCatalogInBackground(): void {
  loadGatewayModelCatalog().catch(() => {});
}

src/agents/model-catalog.ts — reset error-log gate on each new attempt so failures stay visible:

       modelCatalogPromise = null;
+      hasLoggedModelCatalogError = false; // allow next attempt to log

src/gateway/server.impl.ts — call warmModelCatalogInBackground() at gateway startup (after sidecars):

import { loadGatewayModelCatalog, warmModelCatalogInBackground } from "./server-model-catalog.js";
// ...inside startGateway(), after startGatewaySidecars():
warmModelCatalogInBackground();

Diagnostic Commands
# How many models does the CLI see?
openclaw models list --all | wc -l          # should be 750+

# What does the live RPC return? (needs wscat or the gateway WS client)
# Quickest check — look at the gateway log for models.list response time:
# < 100ms = hitting cache (good); > 500ms = fresh load (may be empty)
journalctl --user -u openclaw-gateway --no-pager | grep "models.list"

# Is the allowlist populated?
python3 -c "
import json, re
raw = open('/home/charl/.openclaw/openclaw.json').read()
clean = re.sub(r'//.*\
', '\
', raw)
clean = re.sub(r',\s*([}\]])', r'\1', clean)
cfg = json.loads(clean)
print('models allowlist:', cfg.get('agents',{}).get('defaults',{}).get('models',{}))
"

1.5.2 (2026-03-08)

  • Permanent model dropdown fix (Mode A + Mode B): Removes buildAllowedModelSet from models.list handler — the dropdown now always shows the full Pi SDK catalog regardless of agents.defaults.models. Adds warmModelCatalogInBackground() called at gateway startup to pre-warm the catalog and prevent the empty-on-first-boot race. Adds retry in loadGatewayModelCatalog() when the first load returns empty. Resets hasLoggedModelCatalogError on each fresh attempt so failures are always logged.
  • Known Gotchas section: Full root-cause writeup for both failure modes with source-level diffs and diagnostic commands.

1.0.0 (2026-02-18)

  • Initial release
  • Agent selector dropdown in chat header
  • Per-agent session filtering (newest-first)
  • New session button (+) in chat header
  • Create Agent panel — Manual + AI Wizard modes
  • Fallback model multi-select dropdown
  • Removed duplicate "Primary Model" display from Agents overview
  • agents.create / agents.update / agents.delete / agents.wizard backend methods

平台分布

OpenClaw

74.37%
按下载量换算5,572

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills