Repository navigation
Commit 407dbe8
committed
[Stage 1/3] Add recursive descendant collection for nested sub-agent questions
Implement recursive session tree traversal to collect questions and permissions
from all descendant sessions (grandchildren, great-grandchildren, etc.), not
just direct children. This fixes issue anomalyco#7654 where questions from deeply nested
sub-agents don't appear in the TUI.
- Add descendants() memo with recursive collect function
- Update permissions() and questions() memos to use descendants()
- Add circular reference protection with visited Set
- Preserve backward compatibility by keeping children() memo unchanged1 parent a5c058e commit 407dbe8
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
121 | 137 | | |
| 138 | + | |
122 | 139 | | |
123 | 140 | | |
124 | | - | |
| 141 | + | |
125 | 142 | | |
| 143 | + | |
126 | 144 | | |
127 | 145 | | |
128 | | - | |
| 146 | + | |
129 | 147 | | |
130 | 148 | | |
131 | 149 | | |
| |||
0 commit comments