deepseek-harness/packages/core/agent-loop/tests
_Kerman 0dc5d07ae7 fix: close five composition seams found in review round five
goal-session rides retry turns and survives admission failures. A
recovery policy closes a goal round's failed turn and reopens its
history under a retry trigger; the attempt now adopts that turn and
drops the failed turn's provisional reason, so the round settles from
the retry's own outcome instead of blocking an armed goal with
turn-error after a successful response. A downstream admission hook
that throws (rather than blocks) used to strand the queued reservation
forever; the listener now clears a still-turnless matching attempt on
the rejection path and reschedules the round.

agent-loop contains a persistently rejecting step close in the catch
path the same way the finally contains the turn close, so the
post-finally tail always publishes the terminal status — previously a
double veto escaped run(), leaving status at running while whenIdle()
resolved. The whenIdle catch arm is annotated as the backstop it now
is: every driver rejection path is contained today.

workspace-context folds an already-appended baseline from the session
log when the plugin is hot-remounted over a live session, instead of
injecting a duplicate from its fresh mount-local guard.

The TUI's reference-admission discard listener installs before
followup(): admission runs synchronously inside it on the common path,
so a listener installed afterwards missed its own cleanup and leaked
one callback per referenced prompt.
2026-07-26 23:03:32 +08:00
..
agent-initiator.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
agent.spec.ts Trim redundant source comments 2026-07-25 13:02:37 +08:00
cancel.spec.ts Merge remote-tracking branch 'origin/master' into xtr/agent-loop-message-machine 2026-07-26 14:05:33 +08:00
config-session-id.spec.ts Merge remote-tracking branch 'origin/master' into xtr/agent-loop-message-machine 2026-07-26 14:05:33 +08:00
contract-regressions.spec.ts Merge remote-tracking branch 'origin/master' into xtr/agent-loop-message-machine 2026-07-26 14:05:33 +08:00
coverage-edges.spec.ts fix: close five composition seams found in review round five 2026-07-26 23:03:32 +08:00
interception.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
invariant.spec.ts refactor(agent-loop): simplify message machine 2026-07-24 11:46:46 +08:00
loop.spec.ts fix(agent-loop): let a concluding tool result beat same-step steering 2026-07-26 11:47:25 +08:00
mock-adapter.ts Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
properties.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
request-cache.e2e.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
request-error.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
request-reconstruction.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
resume.spec.ts test: restore 100% per-file coverage for agent-loop and the acp bridge 2026-07-26 14:57:24 +08:00
scope-lifecycle.spec.ts fix: close three seams the message-machine refactor left open 2026-07-26 20:51:32 +08:00
tool-calls.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00
tool-order.spec.ts refactor(agent): unify sourced message delivery 2026-07-24 22:38:50 +08:00