再現手順
GET /topics/private-messages/ashley.json?page=0&per_page=20
観察された現象
TypeError: String can't be coerced into Integer
lib/topic_query/private_message_lists.rb:277
原因
offset = options[:page].to_i * options[:per_page]
MCPの list.ts は常に以下を構築します:
new URLSearchParams({
page: String(page),
per_page: String(per_page),
});
期待される修正
上流のリクエストからサポートされていない per_page を省略するか、Discourseコア側で有界な整数強制変換の修正を調整してください。