Commit c87821a
committed
fix(coding-agent): prefer persisted header depth for legacy rehydration entries
The legacy-entry rehydration fallback (entry.rlmDepth ?? 1) is passed as
config, which outranks the opened transcript header in AgentSession — so a
nested legacy child whose header carried a deeper persisted depth woke at
depth 1, weakening the host recursion gate. Registry depth stays
authoritative when present; otherwise the validated header depth wins and 1
remains the last-resort default for fully legacy children.
origin: PR #584 fallback restored in round-1 triage; surfaced by post-rebase
bot review of PR #589.1 parent 7f57ccf commit c87821a
2 files changed
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
2622 | | - | |
2623 | | - | |
2624 | | - | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
2625 | 2630 | | |
2626 | 2631 | | |
2627 | 2632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4664 | 4664 | | |
4665 | 4665 | | |
4666 | 4666 | | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
4667 | 4705 | | |
4668 | 4706 | | |
4669 | 4707 | | |
| |||
0 commit comments