Skip to content

fix(core): harden delegation lifecycle, watchdog safety and responsive mobile layout - #114

Merged
Lexus2016 merged 1 commit into
mainfrom
fix/hardening-advisors-validation
Sep 20, 2026
Merged

Lexus2016 merged 1 commit into
mainfrom
fix/hardening-advisors-validation

Conversation

@Lexus2016

Copy link
Copy Markdown
Owner

Summary of Improvements

Addresses edge cases identified during cross-AI peer review (agy & opencode):

  • Watchdog safety: Do not evict/recover in_progress tasks that have an active external delegation (activeDelegations).
  • Delegation task lifecycle:
    • POST /api/delegate: Reject delegating already completed/cancelled tasks (409) and prevent duplicate concurrent delegations for the same task.
    • DELETE /api/delegate/:id: If delegation was bound to a task that remains in in_progress, revert its status back to todo.
  • Kanban dialog viewer & actions:
    • Added real-time polling (2.5s) while #delegationDetailOv is open to display live dialog updates from external agents in sync mode.
    • Check r.ok on delegation messages and stop requests to prevent silent failures.
    • Reset mode radio to handoff upon opening modal for new tasks.
  • Responsive UI:
    • Add display: flex !important to .card-actions under @media (max-width: 800px) so action buttons are visible and usable on touch devices without hover.
    • Adjust #cfgModal .modal width to 100% with max-width: calc(100vw - 24px) to avoid horizontal scrollbar overflow.
    • Debounce Kanban tab focus/reconnect resync with a 1500ms latch to eliminate refresh storms.

@Lexus2016
Lexus2016 merged commit a29b3b6 into main Sep 20, 2026
2 checks passed
@Lexus2016
Lexus2016 deleted the fix/hardening-advisors-validation branch September 20, 2026 20:19
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