We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b34027 commit 1883fc2Copy full SHA for 1883fc2
1 file changed
src/daemon/context.ts
@@ -1,4 +1,5 @@
1
import type { CommandFlags } from '../core/dispatch.ts';
2
+import { getDiagnosticsMeta } from '../utils/diagnostics.ts';
3
4
export type DaemonCommandContext = {
5
requestId?: string;
@@ -28,8 +29,9 @@ export function contextFromFlags(
28
29
traceLogPath?: string,
30
requestId?: string,
31
): DaemonCommandContext {
32
+ const effectiveRequestId = requestId ?? getDiagnosticsMeta().requestId;
33
return {
- requestId,
34
+ requestId: effectiveRequestId,
35
appBundleId,
36
activity: flags?.activity,
37
verbose: flags?.verbose,
0 commit comments