Skip to content

feat: automatic task de-duplication on create#751

Open
reski-rukmantiyo wants to merge 2 commits intonextlevelbuilder:devfrom
reski-rukmantiyo:feat/task-auto-dedup
Open

feat: automatic task de-duplication on create#751
reski-rukmantiyo wants to merge 2 commits intonextlevelbuilder:devfrom
reski-rukmantiyo:feat/task-auto-dedup

Conversation

@reski-rukmantiyo
Copy link
Copy Markdown
Contributor

Cherry-picked from f99b2ce — replaces manual "must list before create" gate with automatic de-duplication.

Summary

Replaces the hard gate requiring agents to call team_tasks(action="search") before creating tasks. Now automatically searches for similar active tasks on create — blocks only when a genuine duplicate exists, reducing friction and token cost.

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

dev

Checklist

  • go build ./... passes
  • go build -tags sqliteonly ./... passes (if Go changes)
  • go vet ./... passes
  • Tests pass: go test -race ./...
  • Web UI builds: cd ui/web && pnpm build (if UI changes)
  • No hardcoded secrets or credentials
  • SQL queries use parameterized $1, $2 (no string concat)
  • New user-facing strings added to all 3 locales (en/vi/zh)
  • Migration version bumped in internal/upgrade/version.go (if new migration)

Test Plan

  • AutoSearchCreateAllowed: no similar tasks → auto-search passes, task created
  • AutoSearchBlocksDuplicate: existing active task with similar subject → blocked with "Similar tasks already exist"
  • Existing create tests continue to pass

reski-rukmantiyo and others added 2 commits April 8, 2026 05:30
Cherry-picked from 7fb0876 — filter skills by enabled flag in ListAccessible
and ListWithGrantStatus to exclude administratively disabled skills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@reski-rukmantiyo
Copy link
Copy Markdown
Contributor Author

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