Skip to content

[Bounty proposal] fix(hive-app): search_tasks only scans the 50 most recent workspace actions, not per project ($50 proposed) #15296

Closed

Description

@Abhist17

Following the contribution guide's invitation to propose paid work — @kodjima33, @josancamon19, would a US$50 bounty be appropriate for this? Proposed amount, not an existing award. Fix and tests are already up as a PR.

Symptom

tool_hive_update_task_status ("mark 'Fix login bug' as done") and tool_hive_create_task's parent_task_name lookup both return "task not found" for a real, existing task if it isn't among the 50 most recently touched actions across the entire Hive workspace — regardless of how small or active the task's own project is.

Cause

search_tasks in plugins/omi-hive-app/main.py fetches a single page:

result = hive_rest_request(uid, "GET", f"workspaces/{workspace_id}/actions", params={"limit": 50})

with no further pagination, then filters that one page locally for a title match. In any workspace with more than 50 actions in flight, a task outside that window is silently unfindable by exact name — the caller only asked about one specific task, but the search only ever looked at a workspace-wide recency window.

Fix

Scan every project in the workspace instead, via the same projectId-scoped request get_project_tasks already uses elsewhere in this file — raising the effective ceiling to 50 per project rather than 50 for the whole workspace. Bounded at 20 projects per search and stops early once there are enough exact matches to be definitive.

Precedent

Same general shape (a search/read helper that silently returns an incomplete result set instead of the actual requested record) as the already-fixed Notion get_page block-children pagination (#13915 → #14079) and the proposed Dropbox folder-listing pagination fix (#15153).

Testing

New test_search_tasks_multi_project.py: a match only present in a workspace's second project is found; one project erroring doesn't lose matches from the others; ambiguous partial matches spread across projects are all surfaced. Existing test_update_task_status.py updated for the extra projects-list call this adds — its actual behavioral assertions (which match gets mutated, that an ambiguous result refuses to mutate anything) are unchanged. Registered in .github/checks-manifest.yaml and verified it's actually discovered and run.


Proposed Bounty Reward: $50.00 USD
Bounty Payout Destination (EVM, any EVM-compatible network): 0x49A441f63f00b1978Aa4DD4ff52C237a4A7FdF82
Bounty Payout Destination (Solana): FQetSNNrMouXQ1W3hzCunkd3V5kyvvBtKxQZ2mWfksxV

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 20, 2026
  2. Abhist17 commented on Sep 20, 2026

    @Abhist17
    ContributorAuthor

    Heads up for reviewers: the comment above (from alienvisitor8675-bit) has no PR attached, and the pasted code doesn't match this codebase at all — it calls get_projects() and get_project_tasks(project_id), neither of which exist here (the real functions are get_user_projects(uid, workspace_id) and hive_rest_request(...)), and the first code block is syntactically broken (a bare for project in projects: followed immediately by a stray closing fence, no body). Same account posted an identical templated "Automated Solution Generated" comment with no PR on #15206 and #15195 — looks like a bounty-scraping bot, not a real submission.

    The actual fix with tests and a real, passing CI run is here: #15297.

  3. moved this from In progress to In review in omi TODO / bountieson Sep 21, 2026
  4. Abhist17 commented on Sep 21, 2026

    @Abhist17
    ContributorAuthor

    Merged as #15297 (by @kodjima33, 2026-09-21), with both of @aryanorastar's review asks addressed (diff shrunk to the real fix, no exception text reaching users). Claiming the proposed $50 per the contribution guide — sending the link to [email protected]. Payout: EVM 0x49A441f63f00b1978Aa4DD4ff52C237a4A7FdF82 or Solana FQetSNNrMouXQ1W3hzCunkd3V5kyvvBtKxQZ2mWfksxV (USDC/USDT fine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions