Tasks: Server-side input queue for auto-resume
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu với coderd/aitasks.go và migration mới cho task_pending_inputs, sau đó xem lại lifecycle RFC được tham chiếu và phần tích hợp hiện có với hệ thống job. Theo dõi cách /send xử lý các task đang tạm dừng và cách trạng thái sẵn sàng của workspace cũng như việc phân phối được biểu diễn. Hoàn thành có nghĩa là các message được xếp hàng trả về 202 cùng một ID, được phân phối sau khi workspace tự động khởi động và ghi lại các trạng thái thất bại như đã chỉ định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Repo: coder/coder
Scope: Allow /send to accept messages for paused tasks, queue them, and deliver asynchronously.
Note: Consider ACP (Agent Communication Protocol) impact before implementation. ACP standardization may influence message queue design and delivery mechanism.
Changes:
- Create
task_pending_inputstable:idUUID PRIMARY KEYtask_idUUID REFERENCES tasks(id)contentTEXT NOT NULLstatusTEXT NOT NULL DEFAULT 'pending'created_atTIMESTAMPTZ NOT NULLdelivered_atTIMESTAMPTZerrorTEXT
- Modify
/sendto accept messages for paused tasks - Return 202 Accepted with message ID for queued messages
- Background worker: trigger workspace start, poll for ready, deliver message, update status
- Handle failures (build fails, delivery fails) with appropriate status updates
Benefits beyond auto-resume (per RFC):
- Solves Terraform env var length limits for long prompts
- Unifies initial prompt + follow-up delivery path
- Enables prompt modification until task starts
- Enables prebuilds for tasks
Files:
- New migration for
task_pending_inputstable coderd/aitasks.go(modified send handler)- New background worker or integration with existing job system
Acceptance criteria:
-
/sendto paused task returns 202 and queues message - Workspace automatically starts
- Message delivered when workspace ready
- Failure states handled gracefully with status tracking
- Direct API consumers no longer need orchestration logic
Dependencies:
- GA phase complete
- ACP (Agent Communication Protocol) evaluation (does not block, but may influence design)
References:
- PRD: Start/Pause/Resume the Task Workspace
- RFC: Tasks: Start/Pause/Resume Lifecycle: Auto-Resume Option B
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 3
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/internal
-
flake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
flake
-
flake
Tất cả issue của coder/internal
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
mksglu/context-mode#1200 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:auth-provider issue-rating: 🌊 off-meta tidepool P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100