bcquality/custom/setup
Michael Dieringer 386729f2ef bc-mcp-bridge: reactive + proactive session self-heal
Two fixes bundled together, both diagnosed from a live BC MCP failure in
a Jernpladsen (Project Management 365) session:

- 2026-08-05 (previously drafted, never committed): BC rejects a
  non-initialize request with a stale/absent Mcp-Session-Id with "A new
  session can only be created by an initialize request." The prior retry
  just cleared sessionId and resent the same message with no header,
  reproducing the identical error. Now replays the client's cached
  initialize message first to obtain a fresh session, then retries.
  This also fixes dispatchCreateComment's per-chunk fresh-session reset,
  which was hitting exactly this failure on every chunk of a >250-char
  Task Comment.

- 2026-08-07: the reactive fix above only self-heals after BC has
  already rejected a request. A client that opens a fresh session per
  call (e.g. a Power Automate flow) never hits staleness at all, which
  is why that pattern reads as more reliable than our long-lived
  interactive bridge process. Added a proactive refresh: if the cached
  session has been idle past a heuristic threshold, re-initialize
  before attempting the call instead of waiting for the rejection.
2026-08-07 08:34:20 +02:00
..
machine Deploy a shared MCP-tool permissions allowlist; detect legacy .claude/settings.json 2026-08-04 07:31:46 +02:00
templates Fix all 6 confirmed findings from today's gap audit 2026-08-03 14:12:05 +02:00
bc-mcp-bridge.js bc-mcp-bridge: reactive + proactive session self-heal 2026-08-07 08:34:20 +02:00
curabis-standard.agent.md Add Node.js runtime prerequisite check before machine setup Step 3 2026-08-04 12:41:09 +02:00
support-users-onboarded.md Fix all 6 confirmed findings from today's gap audit 2026-08-03 14:12:05 +02:00
sync-bcquality-knowledge.ps1 Deploy a shared MCP-tool permissions allowlist; detect legacy .claude/settings.json 2026-08-04 07:31:46 +02:00