* test(#4462): expose whitespace workstream scope * fix(#4462): normalize the workstream environment scope * docs(#4462): add changeset for #4509 * fix(#4462): normalize sibling planning scope readers * test(#4462): cover workstream normalization properties * fix(#4462): share normalized workstream resolution --------- Co-authored-by: Tom Boucher <trekkie@nomorestars.com>
This commit is contained in:
@@ -683,7 +683,7 @@ function loadConfigResolved(cwd: string, options: Record<string, unknown> = {}):
|
||||
: (options['workstreamContext'] && Object.prototype.hasOwnProperty.call(options['workstreamContext'], 'ws'))
|
||||
? (options['workstreamContext'] as Record<string, unknown>)['ws']
|
||||
: (process.env['GSD_WORKSTREAM'] || null);
|
||||
const ws = typeof activeWorkstream === 'string' ? activeWorkstream : (activeWorkstream === null ? null : null);
|
||||
const ws = typeof activeWorkstream === 'string' ? activeWorkstream.trim() || null : null;
|
||||
// wsRequested: true when caller explicitly requested a non-empty workstream.
|
||||
// Used for source labeling (Fix 4) and early absent-dir intercept (Fix 2).
|
||||
const wsRequested = ws != null && ws !== '';
|
||||
|
||||
Reference in New Issue
Block a user