Skip to content

Keep duplicate tasks off the human's list - #201

Merged
danielehrhardt merged 1 commit into
mainfrom
fix/human-task-dedupe
Oct 17, 2026
Merged

danielehrhardt merged 1 commit into
mainfrom
fix/human-task-dedupe

Conversation

@danielehrhardt

Copy link
Copy Markdown
Contributor

Agents put the same thing on My tasks several times (H-154 = H-93, H-117 = H-116, COO roll-ups H-156/H-157/H-159 that only list open tickets).

  • human_task_create, ask_human and request_approval check the open list (all agents and chats) and refuse a duplicate, naming the existing ticket.
  • A decision found in a final answer is skipped when its title mentions an H-ref (status roll-ups), matches an open ticket, or matches one answered in the last 3 days.
  • A reworded decision in the same chat keeps its ticket instead of replacing it.
  • Matching: word overlap of the titles (EN/DE filler words dropped, numbers normalized), at least 3 shared words and 80 % of the shorter title.

Tests: bun test test/human-tasks.test.ts 24 pass; core suite 2002 pass, the same 6 fail on main without this change (folders, mods, maintenance, updates).

human_task_create, ask_human and request_approval refuse what the list
already holds (from any agent or chat) and name the existing ticket.
A decision found in a final answer is not added when it only lists
open H-refs or asks what the list holds or the human answered lately.
@danielehrhardt
danielehrhardt merged commit 188ce9b into main Oct 17, 2026
8 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