Fix: disable streaming for parse prd (#1151)

* fix: temporarily disable streaming
This commit is contained in:
Ralph Khreish
2025-08-22 18:33:02 +02:00
committed by GitHub
parent 89335578ff
commit db720a954d
5 changed files with 37 additions and 49 deletions

View File

@@ -63,8 +63,15 @@ export class PrdParseConfig {
this.targetTag = this.tag || getCurrentTag(this.projectRoot) || 'master';
this.isMCP = !!this.mcpLog;
this.outputFormat = this.isMCP && !this.reportProgress ? 'json' : 'text';
// Feature flag: Temporarily disable streaming, use generateObject instead
// TODO: Re-enable streaming once issues are resolved
const ENABLE_STREAMING = false;
this.useStreaming =
typeof this.reportProgress === 'function' || this.outputFormat === 'text';
ENABLE_STREAMING &&
(typeof this.reportProgress === 'function' ||
this.outputFormat === 'text');
}
/**