mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
feat: Update maxTurns default from 20 to 100 and format code
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user