Commit 736a24d
committed
feat(message): add external flag to ToolPart to exclude plugin tool calls from model context
External tool parts are displayed in the TUI and persisted, but excluded
from toModelMessages() to prevent orphaned tool_use/tool_result pairs.
Plugins and HTTP endpoints can mark their tool executions as external.1 parent 5d3dba6 commit 736a24d
File tree
2 files changed
+629
-0
lines changed- packages/opencode
- src/session
- test/session
2 files changed
+629
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
722 | 729 | | |
723 | 730 | | |
724 | 731 | | |
| |||
0 commit comments