Commit ad027fc
committed
fix: handle None state values in skill_toolset after session rewind
Session rewind sets state keys to None as deletion markers. dict.get()
returns None (not the default) when the key exists with value None,
causing list(None) to raise TypeError.
Change `state.get(key, [])` to `state.get(key) or []` at both call
sites so that explicit None values fall back to an empty list.
Github-Issue: #5193
Reported-by: SAMFVH1 parent 23bd95b commit ad027fc
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
| 794 | + | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| |||
0 commit comments