Commit 8ae1de7
jobell
fix: address review feedback on session resilience PR
- Revert events=events to events=[] to fix event duplication regression
(Session constructor pre-populates; append_event loop would double-append)
- Restore all 8 deleted get_session tests including duplication regression guards
- Preserve source field in _recreate_session (alongside session_name)
- Update state-loss warning to only fire for truly unknown fields
- Wrap _recreate_session failure with RuntimeError preserving 404 context
- Add stream timeout (10min) to resubscribe loop matching sendA2AMessage behavior
- Fix setChatStatus in finally to be conditional (preserve input_required/error)
- Change resubscribeTask return type from any to unknown
- Narrow pendingTask.state type to 'working' | 'submitted' union; removes as TaskState cast
- Add tests: retry-also-404 (no infinite recursion), recreation-fails RuntimeError,
source field preservation, state-loss warning, known-fields-only no-warning
Signed-off-by: jobell <jobell@ancestry.com>1 parent 781d07b commit 8ae1de7
File tree
5 files changed
+346
-99
lines changed- python/packages/kagent-adk
- src/kagent/adk
- tests/unittests
- ui/src
- components/chat
- lib
5 files changed
+346
-99
lines changedLines changed: 24 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
273 | 283 | | |
274 | 284 | | |
275 | 285 | | |
| |||
0 commit comments