Commit ee140ff
committed
fix: restore pending permissions via REST API after session switch
renderer.reset() clears the permission queue on every session change.
The previous approach (preserve_permissions flag) tried to keep the queue
alive across resets, but permissions that arrived for a different worktree
while the user was away were never in the queue to begin with.
Mirror the question_window.restore_pending_question pattern instead:
after the session loads, query GET /permission for pending permissions,
filter for ones belonging to the active session, and show them.
This removes all preserve_permissions plumbing and the auto-deny
behaviour from reset() (the cancel function handles explicit abort).1 parent d515b84 commit ee140ff
3 files changed
Lines changed: 73 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
307 | 314 | | |
308 | 315 | | |
309 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
272 | 334 | | |
273 | 335 | | |
274 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 249 | | |
257 | 250 | | |
258 | | - | |
259 | 251 | | |
260 | 252 | | |
261 | 253 | | |
| |||
405 | 397 | | |
406 | 398 | | |
407 | 399 | | |
408 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
409 | 403 | | |
410 | 404 | | |
411 | 405 | | |
| 406 | + | |
412 | 407 | | |
413 | 408 | | |
414 | 409 | | |
| |||
0 commit comments