Commit 57ef717
fix: prevent server-side plan execution in final response generation
Two critical fixes for final response generation:
1. Make query_osvm_ai_with_options() public
- Was private, needed by streaming_agent
- Allows passing custom system prompts and ownPlan flag
2. Add finalization system prompt with ownPlan: true
- Creates explicit finalization prompt telling AI:
* Format results clearly
* Answer user's question directly
* DO NOT generate new plans/code
* DO NOT execute actions
- Sets ownPlan: true to prevent server from using aiPlanExecution
- Passes both to query_osvm_ai_with_options()
Problem solved:
❌ Before: Final response used query_with_debug() with no options
→ Server tried to execute with aiPlanExecution
→ Wasted time trying to find tools like 'getSOLTransfers'
✅ After: Uses ownPlan: true + finalization prompt
→ Server just generates text, no execution
→ Fast text-only LLM call
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1157e4f commit 57ef717
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
873 | 890 | | |
874 | 891 | | |
875 | 892 | | |
| |||
0 commit comments