feat(KB-326): implement real-time steering comment injection
- Add real-time steering comment injection mechanism for active tasks - Improve steering injection logging and simplify trigger conditions - Add comprehensive tests for steering injection functionality - Add documentation for the real-time steering mechanism
This commit is contained in:
14
.changeset/real-time-steering.md
Normal file
14
.changeset/real-time-steering.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
"@gsxdsm/fusion": minor
|
||||
---
|
||||
|
||||
Add real-time steering comment injection during task execution
|
||||
|
||||
Steering comments added during task execution are now dynamically injected into the running agent session. Previously, steering comments were only included at execution start. Now, when a user adds a steering comment while a task is in-progress, it is delivered to the agent via the `session.steer()` API, allowing the AI to adjust its approach in real-time.
|
||||
|
||||
Key behaviors:
|
||||
- New steering comments are detected via `task:updated` events
|
||||
- Comments are injected using the pi-coding-agent `steer()` method
|
||||
- Each comment is only injected once (tracked by ID to prevent duplicates)
|
||||
- Failed injections are logged but not retried (to avoid spamming the agent)
|
||||
- Injection success is logged to the task for visibility
|
||||
Reference in New Issue
Block a user