Skip to content

Conversation

@saksharthakkar
Copy link

  • Add execution_callbacks ContextVar to allow wrappers to inject callbacks at execution time
  • Modify _get_graph_config to copy self.callbacks (prevent mutation) and extend with context callbacks
  • Export execution_callbacks from runtime module

This enables clean callback injection without monkey-patching, solving the duplicate callback issue when runtime instances are reused across multiple executions (chat/debug mode).

…injection

- Add execution_callbacks ContextVar to allow wrappers to inject callbacks at execution time
- Modify _get_graph_config to copy self.callbacks (prevent mutation) and extend with context callbacks
- Export execution_callbacks from runtime module

This enables clean callback injection without monkey-patching, solving the duplicate callback issue when runtime instances are reused across multiple executions (chat/debug mode).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant