Skip to content

Conversation

@himattm
Copy link
Collaborator

@himattm himattm commented Jan 27, 2026

Summary

Bump version from 0.2.0b1 to 0.2.0 for stable release.

Changelog (0.1.4 → 0.2.0)

Fixed

  • Orphaned task cleanup with PID reuse detection - Tasks from cancelled sub-agents no longer block subsequent tasks (Refactor queue core and fix orphaned task cleanup #7)

    • Added is_task_queue_process() to detect if a PID is actually running task_queue vs being reused by an unrelated process
    • Added SERVER_INSTANCE_ID and _active_task_ids tracking in MCP server to detect orphaned tasks from disconnected clients
    • Added CLI_INSTANCE_ID tracking in tq.py for same protection
    • Handle asyncio.CancelledError to properly clean up when sub-agents are cancelled
  • Ctrl+C leaving orphaned waiting tasks - Split registration from wait to ensure cleanup

Changed

  • Refactored shared infrastructure - Extracted queue_core.py with shared database, logging, and cleanup logic
  • Memory efficiency - Stream output directly to file with bounded deque
  • Wait time calculation - Use POLL_INTERVAL_WAITING instead of hardcoded value

Added

  • server_id column to queue table with migration for existing databases
  • Signal handling integration tests for tq CLI

Security

  • Pin pypa/gh-action-pypi-publish to commit SHA
  • Add nosec B602 comments explaining intentional shell=True usage for CLI tool

Test plan

  • Version updated in pyproject.toml
  • No code changes from beta, just version bump
  • Beta (0.2.0b1) tested in production

🤖 Generated with Claude Code

@himattm himattm merged commit 756095d into main Jan 27, 2026
6 of 7 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.

2 participants