Fix async state exception calls in _get_state_result
When using async_dispatch pattern, async code should call the explicit
async version (aget_state_exception) rather than the dispatching function
(get_state_exception) to avoid type errors.
This fixes failing test: test_task_passes_failed_state_to_retry_fn_sync
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fix suspend_flow_run async dispatch by removing @inject_client from sync version
The @inject_client decorator always returns an async function, which was interfering
with the async_dispatch pattern. The client injection should only be on the async
version (asuspend_flow_run) to maintain proper dispatch behavior in sync contexts.
This fixes the failing test_flow_is_suspended[sync] test where suspend_flow_run
was incorrectly returning a coroutine in sync flows.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>