Skip to content

Opening Agent Settings dialog causes 500-600ms render delay #2695

@RajuGangitla

Description

@RajuGangitla

I am trying to contribute to Inkeep (mainly performance improvements)
and started by measuring the Agent component using React Scan.

When opening the Agent Settings dialog it is taking around 500-800ms.

Root cause:
Whenever the dialog opens, it causes the entire Agent component to
re-render including the ReactFlow canvas.

What I tried:
I tried to separate the AgentSidePanel from the AgentFlowPanel into
their own components, but realized there are shared states (isOpen,
nodeId, edgeId, isCopilotStreaming, canEdit) between them which makes
a clean separation difficult.

I am keeping this open and continuing to look for better optimizations.
Would appreciate any thoughts from the team on the best approach here.

agent-settings.webm
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions