web: compose with Enter, share chat titles, reserve the star

Enter inserts a newline and Ctrl/Cmd+Enter sends; slash commands still run on
Enter. Chat renames are stored in the server registry so every device sees the
same title, with a one-time upload of old local titles. The star no longer
covers the row status, and shell frames patch the background bar in place so the
composer stays mounted while streaming.
This commit is contained in:
2026-10-20 03:44:16 +01:00
parent 4072698731
commit ff36e777c9
15 changed files with 317 additions and 40 deletions
+4
View File
@@ -91,6 +91,7 @@ type operatorRegistry interface {
CloseOperatorSession(ctx context.Context, sessionID string) error
ReopenOperatorSession(ctx context.Context, sessionID string) error
SetOperatorSessionStar(ctx context.Context, sessionID string, starred bool) error
SetOperatorSessionTitle(ctx context.Context, sessionID, title string) error
}
var chatTokenSequence atomic.Uint64
@@ -153,6 +154,9 @@ func handleChat(ctx context.Context, request protocol.Message, broker chatBroker
case protocol.ChatStar:
handleChatStar(ctx, request, registry, write)
return true
case protocol.ChatRename:
handleChatRename(ctx, request, registry, write)
return true
case protocol.ChatShells:
handleChatShells(ctx, request, broker, registry, write)
return true