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

ai-harness: a forwarded command completes with no result, also when the owner rejects it

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

维护者通常 1 天内回复

@tombeckenham 已经在做这个了。

开始于 2026年10月15日。

评估

这个 Issue 还没有评估数据。

描述

waiting-on: maintainer
TanStack AI version

@tanstack/ai-harness on the feat/harness-core branch, with #1780 (not released yet).

Framework/Library version

Node 24.8.0. No UI framework: the bug is in the durable host.

Describe the bug and the steps to reproduce it

With #1780, a durable host passes an input for a thread that another host owns to stores.inbox, and the owner runs it. For session.command(...), the host that passed it on ends the command operation right away with status completed and the result undefined.

So the caller gets a wrong answer in two cases:

  • The command returns a value: the caller gets undefined.
  • The owner rejects the command (unknown_command, invalid input) or the command throws: the caller still gets completed.

The real result exists only in the owner's events. Code: executeCommand in packages/ai-harness/src/session/turn.ts.

Steps:

  1. Open one thread on two durable hosts that share log, runs, workClaims, and inbox.
  2. Start a turn on host A, so A owns the thread.
  3. Call hostB.command('unknown') while the turn runs.
  4. The operation on host B completes with undefined. On host A, the command is rejected.

Possible fixes:

  • Host B waits for the owner's result in the log (a settled record for the command input), and ends its operation with it.
  • Host B ends the operation with a receipt only (queued), and the docs say that a forwarded command has no result.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

packages/ai-harness/tests/forwarding.test.ts on #1780 has the two-host setup (sharedStores()). Use it with the steps above, and expect the operation on host B to fail.

Do you intend to try to help solve this bug with your own PR?

Maybe, I'll investigate and start debugging

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
主要语言
TypeScript
星标
3.2k
派生
372
平均合并
1 天 16 小时
30 天内合并 PR
244

环境准备

从这里开始

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

TanStack/ai 的其他 Issue

查看 TanStack/ai 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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