@teamscala/service-boot 0.23.315 → 0.23.316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.315",
9
+ "version": "0.23.316",
10
10
  "sideEffects": false,
11
11
  "files": [
12
12
  "src"
@@ -426,6 +426,11 @@ export const taskSyncRouter = {
426
426
  const ctx = context as Context;
427
427
  const prisma = ctx.prisma as Prisma;
428
428
  const log = getAppLogger();
429
+ // DIAG: capture the real exception+stack for the pane-with-run 500
430
+ // (oRPC swallows it to a generic 500; the run-link catch is not firing).
431
+ const __diagPane = (input as { lane?: { pane?: string } })?.lane?.pane ?? ctx.headers?.get("x-lane-pane");
432
+ const __diagSession = (input as { lane?: { session?: string } })?.lane?.session ?? ctx.headers?.get("x-lane-session");
433
+ try {
429
434
  // The SessionStart hook sends the pane + the CLI's native session id.
430
435
  // SESSION is the match key (kind_data.lane.session) — it is unique per
431
436
  // CLI session and re-minted each session, so a fresh session cannot find
@@ -599,6 +604,14 @@ export const taskSyncRouter = {
599
604
  });
600
605
  }
601
606
  return { task_id: taskId, created };
607
+ } catch (__diagErr) {
608
+ log.error("[task-sync] bindLane THREW (diag)", {
609
+ pane: __diagPane, session: __diagSession,
610
+ error: __diagErr instanceof Error ? __diagErr.message : String(__diagErr),
611
+ stack: __diagErr instanceof Error ? __diagErr.stack : undefined,
612
+ });
613
+ throw __diagErr;
614
+ }
602
615
  }),
603
616
 
604
617
  /**