Skip to content

Commit db0de5c

Browse files
committed
fix docs not loading
1 parent 0abe15e commit db0de5c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

common/src/json-config/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const CodebuffConfigSchema = z
8080
.describe('An array of commands to run on file changes.'),
8181
maxAgentSteps: z
8282
.number()
83+
.optional()
8384
.default(12)
8485
.describe(
8586
'Maximum number of turns agent will take before being forced to end',

common/src/util/zod-schema.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import z from 'zod/v4'
22

3-
import { logger } from './logger'
4-
53
/**
64
* Convert a Zod4 schema to JSON string representation.
75
*/
@@ -21,14 +19,6 @@ export function schemaToJsonStr(
2119
// Otherwise, pass on plain object
2220
return JSON.stringify(schema, null, 2)
2321
} catch (error) {
24-
// Graceful fallback
25-
logger.warn(
26-
{
27-
error,
28-
schema,
29-
},
30-
'Failed to convert schema to JSON',
31-
)
3222
return 'None'
3323
}
3424
}

0 commit comments

Comments
 (0)