deepseek-harness/docs/core-data-structures
Yichen Jiang 0d00106fa8 fix(session): persist the delegation depth in the session header
A subagent child's recursion depth lived only in runtime AgentOptions,
so a persisted child came back from resume counted as top-level and
maxDepth stopped binding after every restart. Add
SessionHeader.delegationDepth, round-trip it through the JSONL and
SQLite backends (SQLite schema v5), restore it on agent-loop resume,
and write it when the in-process backends create a child. The seam now
owns the shared depth vocabulary (delegationDepthOf): the persisted
header is authoritative and monotone — runtime options may deepen it
but never lower it.
2026-07-19 17:20:36 +08:00
..
approval.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
bash.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
code-runtime.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
compaction.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
core.md Merge remote-tracking branch 'origin/master' into codex/website-api-jsdoc 2026-07-19 15:48:39 +08:00
filesystem.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
llm-streaming.md docs: shorten public API fence marker 2026-07-19 14:23:59 +08:00
persistence.md fix(session): persist the delegation depth in the session header 2026-07-19 17:20:36 +08:00
sandbox.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
scope.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
session-query.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
session.md docs: shorten public API fence marker 2026-07-19 14:23:59 +08:00
skills.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
spill.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
subagent.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
system-prompt.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
tasks.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
token-meter.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
tools.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
user-interaction.md Merge latest origin/master into feat/tui-package 2026-07-19 12:47:05 +08:00
web.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
workflow.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00