Skip to content

Fix server log warnings, conversation title persistence, and HyperNetX integration#19

Open
pformoso-deus-ai wants to merge 3 commits intomainfrom
fix/conversation_title
Open

Fix server log warnings, conversation title persistence, and HyperNetX integration#19
pformoso-deus-ai wants to merge 3 commits intomainfrom
fix/conversation_title

Conversation

@pformoso-deus-ai
Copy link
Collaborator

@pformoso-deus-ai pformoso-deus-ai commented Feb 12, 2026

Summary

  • Conversation title persistence: Fix silent failures in auto-title generation with LLM-primary + fallback strategy
  • FalkorDB group_id format: Sanitize patient/session IDs by replacing colons with dashes and using -- as composite separator, fixing Graphiti validation failures
  • datetime.utcnow() deprecation: Replace all 40 occurrences across 13 files with timezone-aware datetime.now(timezone.utc) (Python 3.12+ deprecation)
  • FastAPI on_event deprecation: Migrate @app.on_event("startup") to lifespan async context manager pattern (Starlette 0.26+ / FastAPI 0.93+)
  • HyperNetX integration: Add hypergraph analytics service, HyperNetX adapter, API router, and reasoning engine bridge
  • OpenSpec artifacts: Archive completed changes and sync specs to main

Test plan

  • All 63 existing tests pass with zero regressions
  • New episodic memory tests (sanitize group_id, convert episode parsing) pass
  • New chat history tests (title generation, fallback, greeting stripping) pass
  • Start server and verify no deprecation warnings in logs
  • Verify startup log messages appear (layer services, crystallization, hypergraph)
  • Verify chat interface works end-to-end from frontend
  • Verify conversation titles persist across page refreshes

🤖 Generated with Claude Code

pformoso-deus-ai and others added 3 commits February 11, 2026 19:37
- Initialize OpenSpec with Claude Code tooling (commands + skills)
- Create hypernetx-integration change with full spec-driven workflow:
  proposal, design, 4 capability specs, and 30 implementation tasks
- Capabilities: hypergraph-adapter, hypergraph-analytics,
  hypergraph-api, hypergraph-reasoning

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The auto-title pipeline had two strategies that both failed silently for
non-medical conversations: intent-based topic extraction only matched 18
hardcoded terms, and the LLM fallback was unreachable when the first
strategy produced no topic_hint. This left sessions stuck as "New
Conversation" with no diagnostic logs.

- Swap strategy order: LLM (gpt-4o-mini) is now primary, message-based
  fallback is secondary
- Add _fallback_title_from_message() that strips greetings, title-cases,
  and truncates at word boundary (50 chars)
- Add WARNING logs at every decision point (no messages, no user message,
  LLM error, empty response, persistence failure)
- Log at startup when OPENAI_API_KEY is missing
- Improve read-back verification log with expected vs actual title
- Add 30s periodic refresh + visibility change listener to SessionList
- Add 19 new tests (14 unit + 5 integration) covering all strategies and
  failure paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lifespan

Address three deprecation/runtime warnings from server logs:

- Sanitize FalkorDB/Graphiti group_id format by replacing colons with dashes
  and using -- as composite separator for patient/session IDs
- Replace all datetime.utcnow() calls with timezone-aware
  datetime.now(timezone.utc) across 13 source files (40 occurrences)
- Migrate FastAPI @app.on_event("startup") to lifespan context manager

Also includes HyperNetX integration (hypergraph analytics service, adapter,
router, reasoning engine bridge) and archives completed OpenSpec changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pformoso-deus-ai pformoso-deus-ai changed the title Fix conversation title auto-generation silent failures Fix server log warnings, conversation title persistence, and HyperNetX integration Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant