Repository navigation
Commit 6b8e026
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 34160d8 commit 6b8e026
8 files changed
Lines changed: 39 additions & 393 deletions
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 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 | | - | |
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 | | - | |
453 | 340 | | |
454 | 341 | | |
455 | 342 | | |
| |||
877 | 764 | | |
878 | 765 | | |
879 | 766 | | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
880 | 771 | | |
881 | 772 | | |
882 | 773 | | |
| |||
906 | 797 | | |
907 | 798 | | |
908 | 799 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | 800 | | |
914 | 801 | | |
915 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
2393 | 2392 | | |
2394 | 2393 | | |
2395 | 2394 | | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
2400 | 2395 | | |
2401 | 2396 | | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | 2397 | | |
2418 | 2398 | | |
2419 | 2399 | | |
| |||
This file was deleted.
0 commit comments