feat(FN-4942): complete Step 2 — route tracking creation via hook

Fusion-Task-Id: FN-4942
Fusion-Task-Lineage: 20865705-e5ec-4261-932c-4d47c2d8dc12
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 17:07:43 -07:00
committed by gsxdsm
parent fc98f46196
commit 8ef7fe2b18
5 changed files with 49 additions and 22 deletions

View File

@@ -537,7 +537,7 @@ export function createServer(store: TaskStore, options?: ServerOptions): ReturnT
// (HTTP routes, CLI, pi extension, mission triage, etc.) triggers
// GitHub tracking issue creation when enabled.
try {
registerGithubTrackingHook();
registerGithubTrackingHook({ githubToken: options?.githubToken });
} catch (error) {
// Some unit tests mock @fusion/core with narrow export surfaces. Keep
// server bootstrap resilient when hook registration is unavailable.