Skip to content

Chat: hide workflow drafter from the agent picker#67

Merged
lezama merged 1 commit into
mainfrom
ux/chat-hide-drafter
May 19, 2026
Merged

Chat: hide workflow drafter from the agent picker#67
lezama merged 1 commit into
mainfrom
ux/chat-hide-drafter

Conversation

@lezama
Copy link
Copy Markdown
Owner

@lezama lezama commented May 18, 2026

Summary

  • The Chat block now filters the workflow drafter agent out of its picker. The drafter is a specialty agent for the Workflows authoring flow; surfacing it on Chat means first-time users get a JSON workflow spec back when they ask "what is my latest post?".
  • Adds an openclawp_chat_block_agents filter so installs can customise the list further.

Why

Found during a UX review of the full plugin tour: with only the drafter registered (default install), the Chat surface looks broken on first use.

Test plan

  • On a fresh install with no opt-in filters, the Chat page no longer lists "openclaWP Workflow Drafter" in the agent dropdown.
  • Activating openclawp_register_example_agent and reloading shows the example agent in the dropdown.
  • Workflows → Create with AI still uses the drafter (it doesn't go through the Chat block).
  • If all agents are filtered out, the Chat block shows its empty state.

🤖 Generated with Claude Code

The Chat block called wp_get_agents() without filtering, so the
specialty workflow-drafter agent (used by Workflows -> Create with AI to
emit a workflow JSON spec) ended up in the Chat picker. On default
installs it was often the only registered openclaWP agent, so it became
the chat default and first-time users got a 25-line JSON workflow spec
back when they asked "what is my latest post?".

Skip agents whose meta source_type is 'workflow-drafter', and expose an
openclawp_chat_block_agents filter so installs can adjust the final
list. Update the empty-state copy to acknowledge that specialty agents
are excluded from this surface.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lezama lezama merged commit c99f042 into main May 19, 2026
5 of 6 checks passed
@lezama lezama deleted the ux/chat-hide-drafter branch May 19, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant