Skip to content

A lot of unnecessary Mermaid diagrams from ArchitectΒ #4999

@dsent

Description

@dsent

App Version

3.21.2

API Provider

Google Gemini

Model Used

Gemini 2.5 Pro

πŸ” Steps to Reproduce

  1. Give any trivial task to Architect

πŸ’₯ Outcome Summary

In 99% of the cases, it will try to generate a Mermaid diagram even for something as simple as a list of three steps. Moreover, this diagram will often contain errors and won't render (see #2897 #4867).

The default Architect instructions say: "Include Mermaid diagrams if they help make your plan clearer." Well, most models don't react well to this instruction. They seem to think that a diagram always makes a plan clearer. It wastes tokens and pollutes the context with totally unnecessary diagrams.

I've changed the wording in this way:
If the logic is really complicated, parallel or circular, include Mermaid diagrams to make the intent clearer. Do not include diagrams for a list of sequential steps.

This greatly improves the results for me. Maybe the default wording should be changed a bit along these lines?

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions