+ Talking to
+ {@render agentChip(false)}
+
+ {/if}
+
+
+
+ {#if chatReady}
+
+ {#key `${newChat}:${currentResource.path}`}
+
+ {:else if !catalog.loading && (newChat || agents.length === 0)}
+
+
+
+ {/key}
+ {#if newChat && !chatStarted && currentResource.description}
+
+
+
+ {/if}
+ {:else if agentResource.current !== undefined}
+
+ {#if newChat && !chatStarted}
+ {@render talkingTo()}
+ {/if}
+ {AGENT_CHAT_BLOCKED_REASON}
+
+ {/if}
+
+ {agents.length === 0
+ ? 'No saved agent in this workspace. Create one from the home page to chat with it.'
+ : 'No agent can chat yet: set its memory to auto from its editor.'}
+
+ {/if}
+