Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-session-reply-debugOpenClaw session reply 调试

Agent Skill

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

总安装

9,332

周安装

385

GitHub Stars

1

下载量

3,049
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:openclaw-session-reply-debug(OpenClaw session reply 调试)
来源仓库:https://github.com/zxs1633079383/openclaw-session-reply-debug
安装命令:
openclaw skills install openclaw-session-reply-debug
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install openclaw-session-reply-debug

简介

诊断 OpenClaw 无回复问题,支持安全切换活动模型参考。

  • 适用于消息发送成功但助理未响应的故障排查场景。openclaw-session-reply-debug 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 提供多重回退机制与模型切换建议,包括 hf、ollama 等选项。
  • 需具备修改模型配置与重启服务的权限,建议在沙箱环境测试。
  • 调试过程可能影响会话连续性,操作前应备份当前状态。

SKILL.md

name
openclaw-session-reply-debug
description
Diagnose OpenClaw "message sent but no assistant reply" issues, then safely switch active model references with primary + multi-fallback support, including heartbeat-triggered recovery to the highest available model.

OpenClaw Session Reply Debug

Use this skill when OpenClaw shows only agent identity (for example "Orchestrator") or no assistant text after /new or /reset.

Skill Package Files

  • {baseDir}/SKILL.md: entry workflow for diagnosing reply failures and model switching.
  • {baseDir}/openclaw-model-connectivity-test.md: mandatory runbook for model connectivity/availability validation.
  • {baseDir}/scripts/switch-model-to-gpt-5.2.js: deterministic model-reference switch script.
  • {baseDir}/scripts/switch-model-with-fallback.js: generic primary + fallback switch script.

When To Use

  • User reports: "I sent a message but got no reply."
  • Assistant rows exist but content is empty.
  • Session shows repeated retries with runtime errors.
  • You need to switch active model references from a preferred model to one or more ordered fallback models.
  • You want OpenClaw heartbeat / cron to keep probing higher-priority models and switch back automatically when they recover.

How Users May Ask For This

Users do not need to mention the script name. Natural-language requests should be interpreted into primary + fallbacks.

Typical examples:

  • OpenClaw,为我切换到 gpt-5.4,备用 gpt-5.3 和 gpt-5.2。
  • 帮我把主模型设为 gpt-5.4,降级顺序 gpt-5.3 -> gpt-5.2。
  • 让 heartbeat 自动探测 gpt-5.4,不可用就切到 gpt-5.3,再不行就 gpt-5.2。
  • 如果 gpt-5.4 恢复可用,就自动切回最高模型。

Interpretation rule:

  • gpt-5.4 => --primary gpt-5.4
  • gpt-5.3, gpt-5.2 => repeated --fallback
  • heartbeat 自动探测 / 自动切回 => reuse OpenClaw heartbeat / cron, do not build a custom daemon

For the example:

OpenClaw,为我切换 gpt-5.4,备用 gpt-5.3、gpt-5.2。

the effective command is:

node {baseDir}/scripts/switch-model-with-fallback.js \
  --primary gpt-5.4 \
  --fallback gpt-5.3 \
  --fallback gpt-5.2 \
  --apply

If the user only wants an emergency narrow rollback, the fixed script is still valid:

  • 把 gpt-5.3 回滚到 gpt-5.2

Fast Path (3-5 minutes)

  1. Resolve session key -> sessionId -> sessionFile.
  2. Inspect latest assistant rows in session JSONL.
  3. If stopReason=error, read errorMessage directly.
  4. Check active model/provider references in config + sessions cache.
  5. Apply the narrow rollback script or the generic primary/fallback script.
  6. Verify with the same session.

Find This Chat's JSONL

Known session key:

rg -n '"agent:main:main"' "$HOME/.openclaw/agents/main/sessions/sessions.json" -S
node -e 'const d=require(process.env.HOME+"/.openclaw/agents/main/sessions/sessions.json"); console.log(d["agent:main:main"])'

Unknown session key:

ls -lt "$HOME/.openclaw/agents/main/sessions" | head -n 20
tail -n 80 "$HOME/.openclaw/agents/main/sessions/<candidate>.jsonl"

Evidence Checklist

Session JSONL:

tail -n 120 "$HOME/.openclaw/agents/main/sessions/<session-id>.jsonl"

Look for:

  • "content":[]
  • "stopReason":"error"
  • "errorMessage":"..."

Model references:

rg -n "openai/gpt-5\\.3|\"model\"\\s*:\\s*\"gpt-5\\.3\"|\"primary\"\\s*:\\s*\"openai/gpt-5\\.3\"" \
  "$HOME/.openclaw/openclaw.json" \
  "$HOME/.openclaw/agents/main/sessions/sessions.json" -S

Runtime logs:

rg -n "unknown provider|Unknown provider|api key|embedded run start|agent model" \
  "$HOME/.openclaw/logs/gateway.log" \
  "$HOME/.openclaw/logs/gateway.err.log" \
  "/tmp/openclaw/openclaw-$(date +%F).log" -S

Apply Rollback To gpt-5.2

Before applying, read and execute the runbook in {baseDir}/openclaw-model-connectivity-test.md.

Dry run:

node {baseDir}/scripts/switch-model-to-gpt-5.2.js

Apply changes:

node {baseDir}/scripts/switch-model-to-gpt-5.2.js --apply

What this changes:

  • Active references openai/gpt-5.3 -> openai/gpt-5.2
  • Session-level bare refs gpt-5.3 -> gpt-5.2 (for keys like model)
  • Keeps provider catalog entries (id/name) untouched to avoid accidental model list corruption

Apply Primary + Fallback Switching

Use the generic script when the user wants a preferred model plus ordered fallback models:

Dry run:

node {baseDir}/scripts/switch-model-with-fallback.js \
  --primary gpt-5.4 \
  --fallback gpt-5.3 \
  --fallback gpt-5.2

Apply:

node {baseDir}/scripts/switch-model-with-fallback.js \
  --primary gpt-5.4 \
  --fallback gpt-5.3 \
  --fallback gpt-5.2 \
  --apply

Behavior:

  • Probe candidates in priority order on every run
  • Select the first available model
  • Rewrite active model references in OpenClaw config + session cache
  • Preserve provider catalog id / name
  • Automatically switch back to the highest-priority available model on a later run

Example:

  • Current model is gpt-5.2
  • A heartbeat run later finds gpt-5.4 available again
  • The same command will switch active references back to gpt-5.4

Heartbeat / Cron Integration

Do not write a custom daemon for this workflow. Reuse OpenClaw's built-in heartbeat / cron, and let heartbeat trigger the existing JS script.

Recommended pattern:

  1. Create a cron job with wakeMode: "next-heartbeat"
  2. Put the desired priority list in the task parameters
  3. Have heartbeat execute the existing JS with those parameters

Current repo support is the CLI contract, so the stable mapping is:

  • task primary -> --primary
  • task fallbacks[] -> repeated --fallback
  • task provider -> --provider
  • task probeTimeoutMs -> --probe-timeout-ms
  • task apply=true -> --apply

If your current OpenClaw cron payload only supports text, pass the parameters by expanding them into the command itself:

node {baseDir}/scripts/switch-model-with-fallback.js \
  --primary gpt-5.4 \
  --fallback gpt-5.3 \
  --fallback gpt-5.2 \
  --apply

This is enough to achieve:

  • automatic downgrade when gpt-5.4 is unavailable
  • automatic recovery to gpt-5.4 once the next heartbeat sees it become available again

Mandatory Model Availability Validation

When switching models, this validation is required:

  1. Pre-switch availability check (from runbook):

- Validate the intended target candidates can pass Provider probe + Agent probe.

  1. Apply the switch script (--apply) or the generic fallback script.
  2. Post-switch availability check (from runbook):

- Re-run Provider probe + Agent probe using the selected active model.

  1. Only declare success when probes pass and session reply is non-empty.

Verify Before Claiming Fix

Send test message to the same session:

openclaw agent \
  --session-id <session-id> \
  --message "connectivity check: reply OK only" \
  --json \
  --timeout 120

Success criteria:

  • Exit code 0
  • "status":"ok"
  • Non-empty assistant payload
  • agentMeta.model is the selected target model (for example gpt-5.4, gpt-5.3, or gpt-5.2)

Notes

  • Archived message hooks do not prove reply generation succeeded.
  • UI can hide root cause; JSONL + logs are source of truth.
  • For emergencies, the fixed gpt-5.3 -> gpt-5.2 script remains valid.
  • For normal operations, prefer the generic primary/fallback script so heartbeat can downgrade and recover automatically.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.58%
按下载量换算2,213

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills