Skip to content

feat: add agent assignment to task views#100

Merged
jcanizalez merged 1 commit intomainfrom
feat/agent-picker-tasks
Mar 26, 2026
Merged

feat: add agent assignment to task views#100
jcanizalez merged 1 commit intomainfrom
feat/agent-picker-tasks

Conversation

@jcanizalez
Copy link
Copy Markdown
Owner

Summary

  • Extend AgentPicker with allowNone prop for nullable agent selection (matches ProjectPicker pattern)
  • Add agent picker to AddTaskDialog toolbar between project and branch pills
  • Replace read-only agent display in TaskDetailPanel with editable AgentPicker, wired into auto-save
  • 8 new tests for nullable agent picker behavior

Closes #95

Test plan

  • 8 new tests pass (agent-picker-nullable.test.tsx)
  • Existing agent-icon tests still pass
  • ESLint + Prettier pass
  • Manual: create task with agent assigned
  • Manual: change agent on existing task in detail panel
  • Manual: set agent to "None" / unassigned

- Extend AgentPicker with allowNone prop for optional agent selection
- Add agent picker to AddTaskDialog toolbar (between project and branch)
- Make agent field editable in TaskDetailPanel with auto-save
- Wire assignedAgent into create/update payloads
- Add 8 tests for AgentPicker nullable behavior

Closes #95
Copilot AI review requested due to automatic review settings March 26, 2026 02:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI support for assigning (and unassigning) agents on tasks, addressing #95 by making agent selection available during task creation and from the task detail view, backed by a nullable-capable AgentPicker.

Changes:

  • Extend AgentPicker to support nullable selection via allowNone (including a “None” dropdown option and “Unassigned” display state).
  • Add AgentPicker to AddTaskDialog and make the agent field editable in TaskDetailPanel (wired into existing update/create flows and auto-save).
  • Add a new test suite covering nullable AgentPicker behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/agent-picker-nullable.test.tsx Adds coverage for nullable/unassigned behavior and “None” option handling.
src/renderer/components/AgentPicker.tsx Implements allowNone + null agent handling and updates UI rendering for unassigned state.
src/renderer/components/AddTaskDialog.tsx Adds agent selection to the task create/edit dialog and persists it to task config.
src/renderer/components/TaskDetailPanel.tsx Replaces read-only agent display with editable picker and includes agent in auto-save/create payloads.
src/renderer/components/workflow-editor/panels/LaunchAgentConfigForm.tsx Updates handler typing/logic to be compatible with nullable-capable AgentPicker API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jcanizalez jcanizalez merged commit 2df61c6 into main Mar 26, 2026
5 checks passed
@jcanizalez jcanizalez deleted the feat/agent-picker-tasks branch March 26, 2026 02:44
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.

Cannot assign agent to tasks from the UI

2 participants