Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Problem

Sub-agent workspaces were showing up as agent_explore_... in the sidebar when agents didn't provide a description when spawning sub-tasks. The sidebar falls back to the auto-generated workspace name when no title is set.

Solution

Made the title field required for the task tool (renamed from description for clarity):

  • TaskToolArgsSchema - Changed description: z.string().optional() to title: z.string().min(1)
  • Updated all usages across taskService, orpc, tools, storybook mocks, and UI components

Now agents must provide a title when spawning sub-tasks, which will be displayed in the sidebar instead of the cryptic workspace name like agent_explore_abc123.

Testing

  • All existing tests updated and passing
  • make static-check passes

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

Sub-agent workspaces were showing as 'agent_explore_...' in the sidebar
when agents didn't provide a description. The sidebar falls back to the
auto-generated workspace name when no title is set.

Changes:
- Rename 'description' to 'title' in TaskToolArgsSchema for clarity
- Make 'title' required (z.string().min(1)) instead of optional
- Update all usages across taskService, orpc, tools, and storybook

Now agents must provide a title when spawning sub-tasks, which displays
in the sidebar instead of the cryptic workspace ID.
@ammario ammario merged commit dad982c into main Dec 21, 2025
20 checks passed
@ammario ammario deleted the fix/require-subagent-title branch December 21, 2025 02:56
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.

2 participants