Claude 3.7 Sonnet Agent Composer on both 0.45 and 0.46 seems to have a force cut-off (force termination that makes the generation fails and exit) at composing long files at ~500 lines.
Do you experience the same phenomenon? If yes, how do you solve this problem?
I ran into this last night - while I enforce files having less than 500 lines for maintainability, there were a couple instances where I was working with claude to create new API connectors using schema definitions and it failed every single time to generate the file (in hindsight, the file would have been 1500~ lines). Instead I had to get claude to work in increments and break the functionality into more reusable, modular parts.
It’s not a big deal, as there is no way I would have wanted a 1500 line file for my own sanity. But it would have been nice to know the reason claude was failing so I didn’t waste 10 credits coming to the conclusion myself