refactor(chat): extract consultation and session hooks after contract repairs
Independent Staging Quality Gate / validate (push) Has been cancelled
Independent Staging Quality Gate / publish (push) Has been cancelled

Keep archive as a PATCH of archived_at rather than DELETE, pass entry_mode through onboarding, and let popstate to the default chat reuse selectSession. Then move send/stop/recovery and session management out of page.tsx so the home surface stays within the batch-two line budget.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-02 04:34:10 +08:00
parent 8b7eda9f2d
commit 551d6317ae
18 changed files with 1908 additions and 1195 deletions
+4
View File
@@ -65,6 +65,10 @@ CORE_PYTEST_TARGETS = [
"tests/test_rectification_*.py",
# This file regexes frontend source. Home-split and other page.tsx moves must keep it green.
"tests/test_supabase_user_data_contract.py",
# Locks archive as PATCH archived_at, never HTTP DELETE (data-safety).
"tests/test_session_management_entrypoints.py",
# Pure source/SQL regex for the birth-time journey; no runtime services.
"tests/test_birth_time_journey_contract.py",
]
RUNTIME_TRUTH_PYTEST_TARGETS = [