New-task form and work-request API honour the workflow's repository mode #332

Closed
opened 2026-10-27 13:35:53 +00:00 by sam · 0 comments
Owner

Goal

Choosing a workflow whose repository is optional or none relaxes the repository field, and POST /api/work-requests accepts none.

Evidence

Work-request handler rejects an empty repository; ui/src/tasks/NewTaskForm.vue:111 marks it required.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run task check once at the end; if it fails twice on the same problem, comment on this bead and stop.

Stop when

  • API checks repository against the workflow's mode.
  • Form hides/relaxes the field by mode; Playwright check.
    Then commit (Conventional Commits, scoped by package), bd close this bead and stop.

Close reason

work requests were unwired since the UI split (WorkRequests never set, always 503); now enqueued via the State Store, repository checked against the workflow's mode and configured repos; form hides/relaxes the field by mode, verified with Playwright


Imported from beads archie-core-l8rc.4 · GitHub #1262 · type feature · priority P1 · created 2026-10-05 · closed 2026-10-05

## Goal Choosing a workflow whose repository is optional or none relaxes the repository field, and POST /api/work-requests accepts none. ## Evidence Work-request handler rejects an empty repository; ui/src/tasks/NewTaskForm.vue:111 marks it required. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run `task check` once at the end; if it fails twice on the same problem, comment on this bead and stop. ## Stop when - [ ] API checks repository against the workflow's mode. - [ ] Form hides/relaxes the field by mode; Playwright check. Then commit (Conventional Commits, scoped by package), `bd close` this bead and stop. ### Close reason work requests were unwired since the UI split (WorkRequests never set, always 503); now enqueued via the State Store, repository checked against the workflow's mode and configured repos; form hides/relaxes the field by mode, verified with Playwright --- _Imported from beads `archie-core-l8rc.4` · GitHub #1262 · type feature · priority P1 · created 2026-10-05 · closed 2026-10-05_
sam added the highfeature labels 2026-10-27 13:35:53 +00:00
sam self-assigned this 2026-10-27 13:35:53 +00:00
sam closed this issue 2026-10-27 13:35:53 +00:00
sam added a new dependency 2026-11-14 14:45:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#332