Skip to content

fix(miro-tasks): fetch exactly one not-done task using status filter and limit#27

Open
YI586 wants to merge 1 commit intomainfrom
fix/miro-tasks-single-task-filtering
Open

fix(miro-tasks): fetch exactly one not-done task using status filter and limit#27
YI586 wants to merge 1 commit intomainfrom
fix/miro-tasks-single-task-filtering

Conversation

@YI586
Copy link
Collaborator

@YI586 YI586 commented Feb 21, 2026

Summary

  • Rewrote the Stop hook instructions to use table_list_rows with filter_by (status filtering) and limit=1 to deterministically pull exactly one incomplete task
  • The 4-step workflow discovers column metadata first, classifies status values, then fetches the first not-done row in table order (highest priority)
  • When total=0 (all tasks done), auto-disables tracking
  • Bumped miro-tasks version to 1.0.2, regenerated Gemini extension

Test plan

  • Enable miro-tasks with /miro-tasks:enable <table-url> on a table with mixed done/not-done tasks
  • Trigger Stop hook — verify Claude calls table_list_rows with limit=1 twice (discovery + filtered fetch)
  • Confirm the returned task is the first incomplete row in table order
  • Mark all tasks done, trigger Stop again — verify auto-disable fires

🤖 Generated with Claude Code

…and limit

The Stop hook now instructs Claude to use table_list_rows with filter_by
and limit=1 to deterministically pull the first incomplete task in table
order, instead of fetching all rows and picking arbitrarily.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants