When using a reasoning model (o1, o3, o4-mini, etc.) without explicitly setting reasoningEffort or reasoningSummary, the include param was not set. OpenAI returns a bare rs_... reasoning item ID which gets stored in thinkingSignature and replayed in the next turn. Since store is false, OpenAI cannot find the rs_... item server-side and returns a 404. Fix: move params.include = ["reasoning.encrypted_content"] outside the reasoningEffort/reasoningSummary guard so it is always set for any reasoning model. This ensures the encrypted blob is returned and can be replayed correctly without needing server-side storage. |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||