@@ -608,11 +984,19 @@ export function AISidebar({ fullPage = false }: AISidebarProps) {
✨
- {activeAgent.name} Ready
+ {activeAgent.name} Ready ({chapterLines.length} lines in chapter)
-
- Ask {activeAgent.name} to critique your chapter, brainstorm plot turns, sharpen dialogue, or check canon consistency.
+
+ Prompts include 1-based line numbers ([Line 1]–[Line {Math.max(1, chapterLines.length)}]). Ask about any line or generate line-by-line suggestions.
+
) : (
messages.map((m) => (
@@ -623,7 +1007,9 @@ export function AISidebar({ fullPage = false }: AISidebarProps) {
{m.role === "user" ? "You" : activeAgent.name}
-
{m.content}
+
+ {renderMessageWithLineLinks(m.content)}
+
))
)}
@@ -633,7 +1019,7 @@ export function AISidebar({ fullPage = false }: AISidebarProps) {