Work on fixing bugs and reformat

This commit is contained in:
2026-02-16 16:01:17 +00:00
parent 8ca1695fab
commit 3f82c27ab9
32 changed files with 1100 additions and 442 deletions

View File

@@ -8,10 +8,7 @@ from django.core import signing
from core.models import ChatSession, Message, PersonIdentifier, WorkspaceConversation
from core.realtime.typing_state import get_person_typing_state
from core.views.compose import (
COMPOSE_WS_TOKEN_SALT,
_serialize_messages_with_artifacts,
)
from core.views.compose import COMPOSE_WS_TOKEN_SALT, _serialize_messages_with_artifacts
def _safe_int(value, default=0):

View File

@@ -25,9 +25,7 @@ def set_person_typing_state(
"source_service": str(source_service or ""),
"display_name": str(display_name or ""),
"updated_ts": now_ms,
"expires_ts": (
now_ms + (TYPING_TTL_SECONDS * 1000) if started else now_ms
),
"expires_ts": (now_ms + (TYPING_TTL_SECONDS * 1000) if started else now_ms),
}
cache.set(
_person_key(user_id, person_id),