PR5: prettier reflow of PR3 resolveThreadPolicy call in router.ts

- formatting-only: the pre-commit prettier hook reflowed the long
  resolveThreadPolicy argument list left by the PR3 slice
- no behavior change

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkDAnLGWJUqjgJNXpyqGZ
This commit is contained in:
gavrielc
2026-07-10 21:30:53 +03:00
parent f797024770
commit 0bb9016e94
+6 -1
View File
@@ -321,7 +321,12 @@ export async function routeInbound(event: InboundEvent): Promise<void> {
// collide with the reserved 'system:%' session namespace
// (src/db/sessions.ts) — they are platform-native identifiers, and this
// is the only place an inbound thread id enters session resolution.
const threadsEnabled = resolveThreadPolicy(agent.threads ?? null, channelDefaults, mg.is_group === 1, supportsThreads);
const threadsEnabled = resolveThreadPolicy(
agent.threads ?? null,
channelDefaults,
mg.is_group === 1,
supportsThreads,
);
const effectiveThreadId = threadsEnabled ? event.threadId : null;
const engages = evaluateEngage(agent, messageText, isMention, mg, effectiveThreadId);