The AI chat was using both --resume (CLI session resumption) AND formatted conversation history in the prompt simultaneously. This dual-context approach confused the model — it saw the conversation twice (from session + from prompt markup), leading to "I don't have context" responses on follow-ups. Fix: remove --resume entirely from chat mode. Each CLI call is now independent, with full conversation history formatted into the prompt via <conversation_history> markup. trimHistory handles graceful truncation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4.4 KiB
4.4 KiB