Error: 400 {"type":"error","error":{"type":"invalid_request_error":"messages.3: role 'system' must precede an 'assistant' message or end the array; まず確認したいのは compaction 後に会話を再開しようとしていないかです
同じ系統の報告が 2 件ありました。[#73821](https://github.com/anthropics/claude-code/issues/73821) は `messages.67` に対して `role 'system' must precede an 'assistant' message or end the array` と出ており、[#88276](https://github.com/anthropics/claude-code/issues/88276) は `Unable to start conversation after compaction` のあとに、同種の 400 エラーが返っています。少なくとも issue 上では、どちらも「messages 配列の中で system の位置が不正」と読める内容でした。 手元で確認できた一次情報では、実行環境は次のとおりです。 ```text OS : Linux 3.10.0-1160.76.1.el7.x86_64 (x86_64) Python : 3.8.13 検証日時
papoo.work