Skip to content

PM-4652: persist assigned copilot on draft creation#1570

Merged
jmgasper merged 2 commits intodevfrom
PM-4652
Apr 1, 2026
Merged

PM-4652: persist assigned copilot on draft creation#1570
jmgasper merged 2 commits intodevfrom
PM-4652

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 1, 2026

What was broken

  • When a user selected a copilot before clicking New, the created draft reopened without that copilot saved.

Root cause

  • The initial challenge-creation flow reset the form from fetched challenge data before creating the Copilot resource assignment, so the pre-create selection was dropped.

What was changed

  • Persist the selected copilot resource immediately after the first draft is created.
  • Keep the selected copilot populated through the post-create form reset.
  • Update the challenge editor documentation to match the create flow.

Any added/updated tests

  • Added a ChallengeEditorForm regression test covering Assign yourself during initial draft creation.
  • Reran the full platform-ui test suite, lint, and build.

Open with Devin

What was broken
When a user selected a copilot before clicking New, the created draft reopened without that copilot saved.

Root cause
The initial challenge-creation flow reset the form from fetched challenge data before creating the Copilot resource assignment, so the pre-create selection was dropped.

What was changed
Persist the selected copilot resource immediately after the first draft is created, keep the value through the post-create form reset, and update the challenge editor documentation to match the flow.

Any added/updated tests
Added a ChallengeEditorForm regression test covering Assign yourself during initial draft creation and reran the full platform-ui test suite, lint, and build.
@jmgasper jmgasper requested a review from kkartunov as a code owner April 1, 2026 12:26
devin-ai-integration[bot]

This comment was marked as resolved.

@jmgasper jmgasper merged commit 66a2afd into dev Apr 1, 2026
9 checks passed
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