feat(monitor): reroute — one-click change of agent type on an assigned issue #232
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator, I want a Reroute to… dropdown on the Monitor row of an assigned issue so that when the dependency propagator (or I) picked the wrong type, I can reassign with a single click instead of the Forgejo unassign + reassign dance.
Complements #222 (re-dispatch same type) — this is "change type" rather than "re-run same type".
Acceptance criteria
Server
POST /board/reroute{ repo, issue_number, new_type }— auth-gated (M18-8). Internally doesPATCH /issues/{N}withassignees: [new_type], which fires theissues.assignedwebhook and dispatches normally. Returns202.architect/foreman(host-mode) — returns400with a hint that foreman chat is driven from/app/planner.🔀 Rerouted from **dev** → **boss** by <operator>.UI
routes/monitor.index.tsx— add aReroute ▾icon-button next to each row's assignee. Click opens a menu with the 5 container-mode types (boss / dev / reviewer / designer / design-reviewer). Disable the current assignee. Disable any option whose pool has 0 registered instances.Safety rails
/cancel, waits for the task to settle, then reroutes. If the task refuses to cancel within 5 s, return409 Conflictwith a hint.Verification
Out of scope
/agentsfirst.References
apps/server/src/forgejo-api.ts::updateIssueAssignees— already in use by the dependency propagator.