refactor: land approved runtime cleanup and room binding cutover

This commit is contained in:
ejclaw
2026-04-10 21:04:23 +09:00
parent ce3854745d
commit 4e05f60400
45 changed files with 636 additions and 637 deletions

View File

@@ -14,13 +14,13 @@ const SESSION_COMMAND_CONTROL_PATTERNS = [
function normalizeSessionCommandText(
content: string,
triggerPattern: RegExp,
_triggerPattern: RegExp,
): string {
return content.trim().replace(triggerPattern, '').trim();
return content.trim();
}
/**
* Extract a session slash command from a message, stripping the trigger prefix if present.
* Extract a session slash command from a message.
* Returns the slash command (e.g., '/compact') or null if not a session command.
*/
export function extractSessionCommand(