Bug Report
Trajectory ID: 93015799-5233
Error Description:
Agent executor failed with the following error:
text
Error: agent executor error: failed to load template for section communication_style (filename=communication_style, isInternal=false)
template: communication_style:6:19: executing "communication_style" at <.CascadeConfig.GetSupportsLatexRendering>:
can't evaluate field GetSupportsLatexRendering in type *cortex_go_proto.CascadeConfig
Key Stack Trace:
-
Occurs in PromptBuilder → GetSystemPrompt → rendering the communication_style template
-
Root cause: The template is trying to access .CascadeConfig.GetSupportsLatexRendering, but this field/method does not exist on the current *cortex_go_proto.CascadeConfig struct.
Reproduction:
Triggered when the conversation attempts to render the communication_style section (likely related to LaTeX rendering support check).
Analysis:
This appears to be a regression caused by a protobuf definition change (CascadeConfig) where the system prompt template was not updated accordingly. The template directly references a getter that no longer exists.
Suggested Fix:
Please update the communication_style template (around line 6) to safely handle the field, for example:
Go
{{ if .CascadeConfig }}{{ .CascadeConfig.GetSupportsLatexRendering }}{{ else }}false{{ end }}
or use the correct current field name from the latest CascadeConfig proto.
This error prevents some conversations from working properly. A hotfix would be greatly appreciated.
Thank you!