Repository navigation
Commit f0742da
committed
revert: remove broken subagent permission auto-reject code
The task permission handling added in commits 6d65d0b..b5ba057 does not work.
Rejecting crashes the task (Effect.orDie), aborting leaves the parent hanging,
and promptAsync into the child session is unreliable. None of the approaches
produce correct behavior, so remove all of it until OpenCode fixes task
permission denial upstream (anomalyco/opencode#31108).
Removed:
- permission.asked event handling and auto-reject/abort/promptAsync logic
from subagent-rate-limit-plugin.ts (reverted to rate-limit-only version)
- getPermissionAskedEvent, getTaskLaunch, trackSubagentSession,
abortSubagentSession helpers and unclaimed session tracking state
- subagent-permission-auto-reject.e2e.test.ts (entire file)
- 4 deterministic matchers in queue-advanced-e2e-setup.ts
- dismiss-stale-permission-buttons: updatePermissionMessage export and
auto-rejected button dismissal in thread-session-runtime.ts
- 3 related changesets
Kept logger.bindClient(client) from 9cddaaf since that is independently useful.
Session: ses_159f8de9bffeqXb0B6Fy5j5Mqm1 parent bdf5417 commit f0742da
8 files changed
Lines changed: 37 additions & 395 deletions
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | 339 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 340 | | |
453 | 341 | | |
454 | 342 | | |
| |||
876 | 764 | | |
877 | 765 | | |
878 | 766 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 767 | + | |
883 | 768 | | |
884 | 769 | | |
885 | 770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
2485 | 2484 | | |
2486 | 2485 | | |
2487 | 2486 | | |
2488 | | - | |
2489 | | - | |
2490 | | - | |
2491 | | - | |
2492 | 2487 | | |
2493 | 2488 | | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | 2489 | | |
2510 | 2490 | | |
2511 | 2491 | | |
| |||
This file was deleted.
0 commit comments