Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Jan 17, 2026

Summary

  • Prune tools (discard/extract) now throw errors for validation failures instead of returning error strings
  • This results in status: "error" from OpenCode, allowing proper error handling
  • Cooldown only triggers when prune tool completes successfully (status: "completed")
  • Failed prune attempts now show the normal <prunable-tools> list so the model can retry
  • Logger now captures status and error fields for tool calls in context logs

- Tools now throw errors for validation failures, resulting in status: 'error'
- Cooldown only triggers when prune tool completes successfully
- Logger now captures tool status and error fields for debugging
@Tarquinen Tarquinen merged commit 9170831 into dev Jan 17, 2026
1 check passed
@Tarquinen Tarquinen deleted the fix/prune-tool-error-handling branch January 17, 2026 06:02
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.

2 participants