fix: propagate Reactor context to chunk event hooks in ReActAgent
Three bare .subscribe() calls in ReActAgent (fireReasoningChunk, fireActingChunk, fireSummaryChunk) created new subscription chains without the parent Reactor context, causing ReasoningChunkEvent, ActingChunkEvent, and SummaryChunkEvent to have an empty ContextView in downstream hooks.
Fix each with Flux.deferContextual + contextWrite to capture and propagate the parent context, matching the existing pattern used by executeToolCalls at line 2389-2391.
AgentScope-Java Version
[The version of AgentScope-Java you are working on, e.g. 1.0.12, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]
Description
[Please describe the background, purpose, changes made, and how to test this PR]
Checklist
Please check the following items before code is ready to be reviewed.
- [ ] Code has been formatted with
mvn spotless:apply - [ ] All tests are passing (
mvn test) - [ ] Javadoc comments are complete and follow project conventions
- [ ] Related documentation has been updated (e.g. links, examples, etc.)
- [ ] Code is ready for review
Codecov Report
:x: Patch coverage is 76.56250% with 15 lines in your changes missing coverage. Please review.
:loudspeaker: Thoughts on this report? Let us know!
@AlbumenJ Hi, I saw that this PR has not been merged. Is there any problem?
正在拆分 PR,将用 bugfix/reactor-context 和 feat/skill-basedir 两个干净的 PR 替代