Merge remote-tracking branch 'origin/worktree-agent-handle' into worktree-bash-owner-token

This commit is contained in:
Tianyi Cui
2026-06-20 13:57:14 +08:00
4 changed files with 5 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ describe('acp bridge — disposal & HMR safety', () => {
it('a client disconnect mid-prompt disposes the session (no registered agent left)', async () => {
// The ACP transport closes (editor quits) while a turn runs. The bridge must
// settle the in-flight prompt cancelled and DISPOSE the agent (PR D's
// settle the in-flight prompt cancelled and DISPOSE the agent (the session's
// per-agent AgentHandle teardown) rather than leaving an orphaned running —
// or even idled-but-still-registered — agent whose updates are swallowed.
const harness = await makeBridgeHarness({ storageDir, script: ['hang'] })

View File

@@ -1,5 +1,5 @@
/**
* Tests for the queue-aware `Agent.cancel()` primitive (PR C). `cancel()` is the
* Tests for the queue-aware `Agent.cancel()` primitive. `cancel()` is the
* broad verb — it clears queued + steering work, aborts an in-flight step, and
* drops a turn about to start — whereas `abort()` kills only the current step.
* These tests exercise every window where a cancel can land (idle, pre-step,

View File

@@ -20,9 +20,8 @@
* write path — never the storage primitives directly — so it runs unchanged for
* every backend (memory / jsonl / sqlite).
*
* Each scenario here was previously DUPLICATED in `jsonl.spec.ts` and
* `sqlite.spec.ts`; it now lives once and runs once per backend through the
* fixture. The per-backend specs keep ONLY their storage-mechanics tests.
* Each scenario lives here once and runs once per backend through the fixture;
* the per-backend specs keep ONLY their storage-mechanics tests.
*
* @module @deepseek-ai/dsh-session-persistence/tests/coordinator-contract
*/