Skip to content

feat(config): Add style.error override for tool error responses#666

Merged
JeanMertz merged 1 commit into
mainfrom
prr235
May 21, 2026
Merged

feat(config): Add style.error override for tool error responses#666
JeanMertz merged 1 commit into
mainfrom
prr235

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

@JeanMertz JeanMertz commented May 20, 2026

Tools can now declare a dedicated style.error block in their config that controls how a failed tool response is rendered, independently of the shared style block that governs both request and response display.

[conversation.tools.my_tool.style.error]
inline_results = "full"
results_file_link = "off"

When style.error is absent the renderer falls back to the response side of the existing style config, so the change is fully backwards compatible.

@JeanMertz JeanMertz changed the title chore: Split writer persona into composable skills feat(config): Add error_style override for tool error responses May 20, 2026
@JeanMertz JeanMertz changed the title feat(config): Add error_style override for tool error responses feat(config): Add error_style override for tool error responses May 20, 2026
Tools can now declare a dedicated `error_style` block in their config
that controls how a failed tool response is rendered, independently of
the shared `style` block that governs both request and response display.

```toml
[conversation.tools.my_tool.error_style]
inline_results = "full"
results_file_link = "off"
```

When `error_style` is absent the renderer falls back to the response
side of the existing `style` config, so the change is fully backwards
compatible.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz changed the title feat(config): Add error_style override for tool error responses feat(config): Add style.error override for tool error responses May 21, 2026
@JeanMertz JeanMertz merged commit bbc56e5 into main May 21, 2026
14 checks passed
@JeanMertz JeanMertz deleted the prr235 branch May 21, 2026 17:22
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.

1 participant