Files
adnaan e2b4981a45 fix(agent): clear pending approvals on task cleanup and move emotion module to features/
- Add approvalService.clearRequest() to settle leftover pending approvals as
  reject on task teardown, preventing pendingResolves/queuedDecisions from
  leaking per thread and executeTools hanging forever on abnormal loop exits
- Clone requestMessages in runLoop so the loop owns its message array instead
  of mutating the caller's array (fragile contract with prepare())
- Relocate emotion module from agent/emotion to features/emotion and update
  all import paths
2026-11-03 17:29:34 +08:00
..