mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-12 19:00:58 +08:00
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:
+6
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user