ScienceDiscovery
中文 GitHub

Automatic Session titles

The first Run names an untitled Session in two stages. A short first message can serve as the provisional title. A long or empty message uses a neutral Session MM-DD HH:mm title instead of a cut-off sentence. Background naming then asks the selected model to summarize the first message's core topic or intent in the user's language. Later messages do not rename the Session, and compare-and-set prevents an in-flight naming result from replacing a manual edit.

Generation policy

Acceptance examples

Input or model behavior Expected result
Long Chinese request about TP53, immune environment and treatment cohorts A complete summary such as TP53表达与治疗响应
Long English request comparing cohorts and proposing validation experiments TP53 expression and treatment response, stored intact even though it exceeds 24 characters
Oversized Chinese or English model title A second generation, never a sliced prefix
TP53 cohort analysis… Regenerate; merely deleting the ellipsis is insufficient
<think>outer<think>inner</think>secret</think>TP53 analysis TP53 analysis
Reasoning only, failed request or a second oversized response Retain the safe provisional title
Narrow sidebar, then reload Same complete persisted title and full-title tooltip; visual clipping only

The unit suite covers budgets, retries, usage and reasoning removal. The mocked browser journey test/journey-session-titles.spec.ts covers first submission, persisted naming, safe fallback, reload and sidebar styling. Mock outputs verify the contract; they do not establish real-model semantic quality.

Comparison evidence

Reviewed on 2026-10-15. These are public documentation/source observations, not a live UI experiment or evidence about closed-source internals.

None of these sources establishes reliable automatic enforcement of our proposed budgets. Explicit validation and one bounded regeneration are ScienceDiscovery's own policy. Real-model quality evaluation remains separate from deterministic regression coverage.