deepseek-harness/packages/core/tools/src
Tianyi Cui 1b29273f12 fix: reach quiescence even when the runtime rejects (agent review)
[P1] review finding: the run-scoped abort + queue drain ran only after
runtime.run() FULFILLED, so a backend that starts a binding call and
then throws left the sub-dispatch running past run_code's settlement —
its tool/code-dispatch event could append after the parent call
returned, breaking the drain-before-return contract. The quiescence
pair now lives in a finally around runtime.run(); the folded queue tail
keeps the drain from masking the thrown error. Pinned by a test whose
fake runtime fails mid-flight: pre-fix it returns in milliseconds with
the slow tool still running.
2026-07-08 22:03:27 +08:00
..
code-mode.ts fix: reach quiescence even when the runtime rejects (agent review) 2026-07-08 22:03:27 +08:00
index.ts feat: Code Mode — the registry's mode config, the SDK codegen, and the run_code bridge 2026-07-08 12:58:23 +08:00
json-schema.ts docs: satisfy the new export-JSDoc gate on the assertion signature 2026-07-07 22:13:01 +08:00
presentation.ts docs(tools): fix cross-module JSDoc links and the catalog source list 2026-07-04 00:39:09 +08:00
schema.ts Gate JSDoc completeness on every package export 2026-07-06 22:09:30 +08:00
ts-types.ts feat: Code Mode — the registry's mode config, the SDK codegen, and the run_code bridge 2026-07-08 12:58:23 +08:00