chilly-france-44439
12/28/2025, 8:25 PMwide-doctor-37830
12/28/2025, 9:00 PMkeep_first setting we inherited from v0 is not quite the behavior we want -- in the case of the event dump it's trying to keep the first few messages in the tool loop, but it can't start a condensation in the middle of one so it fails. We could lower keep_first to just keep up to the first user message, and/or raise max_size so we're likely to actually get a full tool loop in before condensation.
• Delay condensation: in the case that we hit one of our condensation triggers (tokens/events) but can't actually forget anything, put the condensation on hold until the first opportunity. The suggested change in the bug report gets halfway there but I think there's also an unrelated bug where we'd start to condense a tool loop, continue the conversation, then get Anthropic yelling at us again because we condensed the thinking block and it still wants to keep the tool loop going.
My hypothesis is that what Claude Code does is more likely to get the agent off-track than our rolling condensations. We would probably be well-served by making the condensation parameters a little less aggressive though.
I'm traveling the next two days so I'll only be sporadically available, but back at on Wednesday if you want to assign me the issue to look at then. In the meantime maybe we can just set keep_first=2 (or it might be 1, can't remember the indexing atm) and max_size=180 or 240 or something else large.adamant-controller-19704
12/28/2025, 9:14 PMwide-doctor-37830
12/28/2025, 9:30 PMlimited-student-10747
12/28/2025, 9:44 PMadamant-controller-19704
12/28/2025, 9:46 PMadamant-controller-19704
12/28/2025, 9:54 PMadamant-controller-19704
12/28/2025, 9:57 PMlimited-student-10747
12/28/2025, 9:58 PMadamant-controller-19704
12/28/2025, 10:05 PMcalm-artist-7206
12/29/2025, 10:40 AMchilly-france-44439
12/29/2025, 3:40 PMlimited-student-10747
12/29/2025, 3:46 PMlimited-student-10747
12/29/2025, 3:47 PMchilly-france-44439
12/29/2025, 3:48 PMchilly-france-44439
12/29/2025, 3:48 PMstarting everything from scratch has a fairly high likelihood of confusing the agentespecially in cases where we use open-source models nod
limited-student-10747
12/29/2025, 3:51 PMcsmith49nutritious-balloon-65098
12/29/2025, 3:51 PMnutritious-balloon-65098
12/29/2025, 3:52 PM