Skip to content

Add background task queue controls#102

Merged
slashdevcorpse merged 3 commits into
mainfrom
feature/background-task-queue
May 31, 2026
Merged

Add background task queue controls#102
slashdevcorpse merged 3 commits into
mainfrom
feature/background-task-queue

Conversation

@slashdevcorpse
Copy link
Copy Markdown
Owner

@slashdevcorpse slashdevcorpse commented May 31, 2026

Summary\n- persist each Codex run as a task with queued, running, completed, failed, and canceled states\n- track duration, exit status, status history, run profile, and linked session/message ids\n- add task cancel and retry actions through a local task API\n- add a chat header task queue panel that reconnects by polling persisted task state after refresh\n\n## Testing\n- pnpm -C apps/codex-claw lint\n- pnpm -C apps/codex-claw build\n- pnpm -C apps/codex-claw test\n\nCloses #89


Summary by cubic

Adds a background task queue for Codex runs with persistence, cancel/retry, and a chat header panel to monitor progress. Exposes /api/tasks for listing and controlling tasks, with status, duration, exit code, and history tracking.

  • New Features
    • Persist each Codex run as a task with states (queued/running/completed/failed/canceled), events, and metadata.
    • New API: GET /api/tasks to list tasks, POST /api/tasks with { action: 'cancel' | 'retry', id }.
    • Task Queue panel in the chat header; polls to reconnect after refresh and shows counts, details, and controls.
    • Server tracks live processes, updates tasks on exit, and supports cancellation and retry using the saved snapshot/run profile.

Written for commit 85e4d15. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings May 31, 2026 08:46
@slashdevcorpse slashdevcorpse merged commit 0c5c227 into main May 31, 2026
5 of 6 checks passed
@slashdevcorpse slashdevcorpse deleted the feature/background-task-queue branch May 31, 2026 08:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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