Skills

Reproduce Chat States

Reproduce a known chat state in the running desktop on demand (model provider errors...

Install

npx skills add different-ai/openwork --skill reproduce-chat-states -g -a claude-code -y
Repository
different-ai/openwork24.4k
Category
Design
Updated
3d ago
License
See repository
Context cost
Lightabout 588 tokens
Runs scripts
Yes, review before use

What it does

Reproduce a known chat state in the running desktop on demand (model provider errors and retries, Code Mode and Den script failures, parallel tool steps, app creation, sequential commands) and check how it renders. Use when fixing or designing chat error, retry, tool-step or app-card UI.

Reproduce chat states

Each state below fires in a new session of the running desktop window through drive-desktop-cdp. Provider states also need fake-model-faults set up.

export CDP_URL=http://127.0.0.1:<cdp port>
R=.opencode/skills/reproduce-chat-states/scripts/repro.mjs
C=.opencode/skills/drive-desktop-cdp/scripts/cdp.mjs
node $R provider-refused && node $C wait-idle && node $C shot /tmp/refused.png

Run node $R with no argument for the list. Pass a second argument (or set GATEWAY_MODEL) to change the real model used for the non-fault states.

States and what to look at

StateFiresCheck
provider-refused, provider-dns, provider-resetengine transport error, retried, then finalone error per turn, plain title, raw text only behind the details icon
provider-retryingsame as reset; watch the first 30s"Reconnecting to the model" with attempt progress, no raw text
provider-midstream, provider-stallcut or stalled replyinterrupted reply keeps partial text
http-429, http-5xx, http-401, http-402HTTP error bodiesthe matching plain-language title and next action
codemode-wrong-tooltools.search(...) in Code Modea recovered step must not read as a hard failure
den-script-rejectedDen script with .thenDen's real reason in details, not a generic placeholder
den-script-service-failureprovider op fails inside a Den script"Script on OpenWork Cloud failed", reason behind the icon
den-script-parallel20 Slack calls in one scriptone readable group, collapsed until opened
parallel-searches10 Exa searches plus Slackclean service names and logos, no routing ids
app-createMCP app build with retriesone card per app that advances through its steps
sequential-commands5 separate bash callsthe chat does not jump (see measure-chat-flicker)

Reading what happened

Read the whole SKILL.md on GitHub

More in Design