We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c02fbc commit b8c237dCopy full SHA for b8c237d
clients/typescript/contextforgeClient.ts
@@ -524,10 +524,7 @@ export class ContextForgeClient {
524
if (!phase || !['planning', 'execution', 'review'].includes(phase)) {
525
throw new Error('phase must be one of: planning, execution, review');
526
}
527
- if (summary !== undefined && typeof summary !== 'string') {
528
- throw new Error('summary must be a string when provided');
529
- }
530
- if (summary !== undefined && summary.trim() === '') {
+ if (summary !== undefined && (typeof summary !== 'string' || summary.trim() === '')) {
531
throw new Error('summary must be a non-empty string when provided');
532
533
0 commit comments