feat: Update maxTurns default from 20 to 100 and format code

This commit is contained in:
gsxdsm
2026-02-16 22:47:30 -08:00
parent 8af1b8bd08
commit f06088a062
2 changed files with 4 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ describe('claude-provider.ts', () => {
expect(typeof callArgs.prompt).not.toBe('string');
});
it('should use maxTurns default of 20', async () => {
it('should use maxTurns default of 100', async () => {
vi.mocked(sdk.query).mockReturnValue(
(async function* () {
yield { type: 'text', text: 'test' };
@@ -205,7 +205,7 @@ describe('claude-provider.ts', () => {
expect(sdk.query).toHaveBeenCalledWith({
prompt: 'Test',
options: expect.objectContaining({
maxTurns: 20,
maxTurns: 100,
}),
});
});

View File

@@ -170,7 +170,8 @@ export const AgentInfoPanel = memo(function AgentInfoPanel({
// - completed tasks stay completed
// This matches server-side behavior in feature-state-manager.ts
if (isFeatureFinished) {
const finalStatus = task.status === 'in_progress' || task.status === 'failed' ? 'completed' : task.status;
const finalStatus =
task.status === 'in_progress' || task.status === 'failed' ? 'completed' : task.status;
return {
content: task.description,
status: (finalStatus || 'completed') as 'pending' | 'in_progress' | 'completed',