CLI: add --mode to `t3 thread send` (auto | queue | steer | restart)

未关闭 适合新手
#30,205 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
cli

调研方向

从 threadSendCommand(位于 apps/server/src/cli/thread.ts)开始,追踪它如何调用 t3_thread_send 并处理 --wait。添加指定的 --mode 标志,保持 queue 为默认值,并传递所选的模式。完成标准是四种模式均可用,且 --wait 仍会等待返回的 runId。

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

描述

t3_thread_send accepts mode: "auto" | "queue" | "steer" | "restart", but t3 thread send always sends mode: "queue" (apps/server/src/cli/thread.ts, threadSendCommand). Scripts that drive T3 from outside can therefore only queue a new turn; they cannot steer a running one.

Use case. We bridge Slack threads to T3 threads: a daemon runs t3 thread send <id> --wait - for each new message in a bound Slack thread. When someone adds a correction while the agent is mid-turn ("actually, check staging, not prod"), queueing makes the agent finish the wrong turn first. auto (start if idle, steer if running) is the behaviour we want, and the server already implements it.

Proposal. A --mode <auto|queue|steer|restart> flag on t3 thread send, defaulting to queue so current behaviour is unchanged, passed through to t3_thread_send. With --wait, wait on the runId the send returns (for steer that is the running turn), as today.

Related: #29863 (--effort on start/send).

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
20 小时 2 分钟
30 天内合并 PR
164

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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