ai-harness: a forwarded command completes with no result, also when the owner rejects it
Maintainer thường phản hồi trong vòng 1 ngày
@tombeckenham đang làm issue này rồi.
Từ ngày 15/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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 getscompleted.
The real result exists only in the owner's events. Code: executeCommand in packages/ai-harness/src/session/turn.ts.
Steps:
- Open one thread on two durable hosts that share
log,runs,workClaims, andinbox. - Start a turn on host A, so A owns the thread.
- Call
hostB.command('unknown')while the turn runs. - 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.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.2k
- Fork
- 365
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 263
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 TanStack/ai
-
openai-base: a tool call cut off by finish_reason "length" is reported as "tool_calls" and re-sentCó thể đã có người làm @tombeckenham đã nhận hôm nay. Đang mởwaiting-on: maintainer
TanStack/ai#1853 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-ollama: streamed chat() reports finishReason "stop" when done_reason is "length"Có thể đã có người làm @AlemTuzlak đã nhận hôm nay. Đang mởwaiting-on: maintainer
TanStack/ai#1852 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-vercel-gateway: surface provider_metadata.gateway cost on usage (usage.cost)Có thể đã có người làm @tombeckenham đã nhận hôm nay. Đang mởwaiting-on: maintainer
TanStack/ai#1845 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
withPersistence does not save activity rows when a run is stopped or failsCó thể đã có người làm @tombeckenham đã nhận 5 ngày trước. Đang mởwaiting-on: maintainer
TanStack/ai#1804 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Discriminate status-dependent record and option types (RunRecord, SessionIndexEntry, InputState, durable-only options)Có thể đã có người làm @jherr đã nhận 6 ngày trước. Đang mởenhancement waiting-on: maintainer
TanStack/ai#1799 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
phivk/rubiks-lab#33 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be editedCó thể đã có người làm @ManyaJain111 đã nhận hôm nay. Đang mởbug enhancement possible-duplicate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
AOSSIE-Org/PictoPy#1637 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
chaitin/MonkeyCode#1437 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rtdb-info-connected-order test: unhandled 'connection is closed' rejection fails the CLI suiteĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cards enhancement migration ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
fil-donadoni/tolaria#6309 ·
Maintainer thường phản hồi trong vòng 1 ngày