mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-29 14:03:08 +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');
|
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(
|
vi.mocked(sdk.query).mockReturnValue(
|
||||||
(async function* () {
|
(async function* () {
|
||||||
yield { type: 'text', text: 'test' };
|
yield { type: 'text', text: 'test' };
|
||||||
@@ -205,7 +205,7 @@ describe('claude-provider.ts', () => {
|
|||||||
expect(sdk.query).toHaveBeenCalledWith({
|
expect(sdk.query).toHaveBeenCalledWith({
|
||||||
prompt: 'Test',
|
prompt: 'Test',
|
||||||
options: expect.objectContaining({
|
options: expect.objectContaining({
|
||||||
maxTurns: 20,
|
maxTurns: 100,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -170,7 +170,8 @@ export const AgentInfoPanel = memo(function AgentInfoPanel({
|
|||||||
// - completed tasks stay completed
|
// - completed tasks stay completed
|
||||||
// This matches server-side behavior in feature-state-manager.ts
|
// This matches server-side behavior in feature-state-manager.ts
|
||||||
if (isFeatureFinished) {
|
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 {
|
return {
|
||||||
content: task.description,
|
content: task.description,
|
||||||
status: (finalStatus || 'completed') as 'pending' | 'in_progress' | 'completed',
|
status: (finalStatus || 'completed') as 'pending' | 'in_progress' | 'completed',
|
||||||
|
|||||||
Reference in New Issue
Block a user