Extract agent ids and names before creating async task to prevent "Instance is not bound to a Session" error when accessing attributes after the original session is closed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>