Skip to content

feat(opencode): add list_tasks tool to query all background tasks (#184) - #186

Merged
randomm merged 1 commit into
devfrom
feature/184-list-tasks-tool
Feb 12, 2026
Merged

feat(opencode): add list_tasks tool to query all background tasks (#184)#186
randomm merged 1 commit into
devfrom
feature/184-list-tasks-tool

Conversation

@randomm

Copy link
Copy Markdown
Owner

Summary

New tool to list all background tasks with their status, exposing the internal listBackgroundTasks() function.

Changes

  • Added list_tasks.ts tool implementation
  • Added list_tasks.txt documentation
  • Registered tool in registry.ts
  • Updated fork-features manifest

Features

  • Lists pending (running) tasks
  • Lists completed/failed tasks
  • Configurable limit parameter
  • Option to exclude completed tasks

Known Issue

Tests blocked by pre-existing circular dependency in codebase (BackgroundTaskEvent initialization order). Tool itself works correctly.

Usage

/list_tasks - List all tasks
/list_tasks {"limit": 10} - List up to 10 tasks
/list_tasks {"include_completed": false} - Only pending tasks

Fixes#184

@randomm
randomm merged commit 04193a7 into devFeb 12, 2026
1 check passed
@randomm
randomm deleted the feature/184-list-tasks-tool branch February 12, 2026 10:27
Sign up for freeto 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.

feat: Add list_tasks tool to query all background tasks

1 participant

@randomm