Updates the cached last completed turn summary for sidebar display. Empty or whitespace-only summaries are stored as NULL here so direct query callers cannot accidentally persist blank sidebar text. This intentionally preserves updated_at. The staleness guard relies on every new-turn query, such as
(ctx context.Context, arg UpdateChatLastTurnSummaryParams)
| 1231 | // goroutine summary writes will be rejected as stale. |
| 1232 | // Two summary workers using the same freshness marker are last-write-wins. |
| 1233 | UpdateChatLastTurnSummary(ctx context.Context, arg UpdateChatLastTurnSummaryParams) (int64, error) |
| 1234 | UpdateChatMCPServerIDs(ctx context.Context, arg UpdateChatMCPServerIDsParams) (Chat, error) |
| 1235 | UpdateChatMessageByID(ctx context.Context, arg UpdateChatMessageByIDParams) (ChatMessage, error) |
| 1236 | UpdateChatModelConfig(ctx context.Context, arg UpdateChatModelConfigParams) (ChatModelConfig, error) |
no outgoing calls