tractor/ai/prompt-io/opencode/20260819T020757Z_b38efed7_p...

745 B

Fix the final PR #481 review finding: runtime_kwargs is mutually exclusive with both caller placement options whenever it is provided, including an empty dict.

git diff HEAD~1..HEAD -- tractor/to_actor/_api.py tests/test_to_actor.py

Use an explicit is not None check rather than dict truthiness. Expand the validation regression across an= and portal=, each with empty and configured runtime kwargs, so every invalid combination fails before actor runtime startup.

Verification:

  • Trio/TCP: 23 passed
  • Trio/UDS: 23 passed
  • mp_spawn/TCP: 23 passed
  • Ruff and git diff --check: clean