Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Tasks: Server-side input queue for auto-resume

未关闭
#1,272 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
领域
api, backend, database

调研方向

从 coderd/aitasks.go 和针对 task_pending_inputs 的新 migration 开始,然后查看所引用的生命周期 RFC 以及现有的 job-system 集成。跟踪 /send 如何处理已暂停的 task,以及 workspace 就绪状态和投递是如何表示的。完成的标准是:排队的消息返回带有 ID 的 202,在 workspace 自动启动后完成投递,并按规定记录失败状态。

由索引模型根据 Issue 内容生成。

描述

project/tasks

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_inputs table:
    • id UUID PRIMARY KEY
    • task_id UUID REFERENCES tasks(id)
    • content TEXT NOT NULL
    • status TEXT NOT NULL DEFAULT 'pending'
    • created_at TIMESTAMPTZ NOT NULL
    • delivered_at TIMESTAMPTZ
    • error TEXT
  • Modify /send to 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_inputs table
  • coderd/aitasks.go (modified send handler)
  • New background worker or integration with existing job system

Acceptance criteria:

  • /send to 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:

主要语言
没有语言数据
星标
3
派生
0
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/internal 的其他 Issue

查看 coder/internal 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。