Skip to content

fix(desktop): generate first-answer titles instead of compacting context - #680

Merged
huichen merged 2 commits into
mainfrom
fix/first-turn-title
Sep 17, 2026
Merged

huichen merged 2 commits into
mainfrom
fix/first-turn-title

Conversation

@huichen

@huichen huichen commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Correct the first-answer setting to generate and save a conversation title using the same generate_session_title API as the rename dialog; never call compact.
  • Generate in the background without blocking run finalization; skip stale results after a rename, setting change or later turn.
  • Rename the preference/UI to title generation while retaining existing opt-ins, mirror the UI language, and update product/storage documentation.

Validation

  • Desktop: tsc --noEmit, ESLint, Vitest (129 files / 1087 tests passed).
  • Tauri: fmt, clippy --all-targets -- -D warnings with GUI and --no-default-features.
  • Full Tauri tests: GUI 1276 passed + binary/integration tests; headless 1008 passed + binary/integration tests. One pre-existing review fixture hit a SQLite lock on the initial GUI run; its focused rerun and the full rerun passed.
  • Regression coverage for no compaction/prompt requests, once-only first turn, opt-in and legacy preference persistence, both UI languages, errors, replay, old history, and in-flight changes.

Corrects the behavior introduced in #677.

@huichen
huichen enabled auto-merge (squash) September 17, 2026 03:12
@huichen
huichen merged commit babaeda into main Sep 17, 2026
12 checks passed
@huichen
huichen deleted the fix/first-turn-title branch September 17, 2026 03:20
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