Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Track thread title source and adopt server titles

8 months ago

2502ddd
Authored
mweinbach2/20/2026, 5:47:30 AM
Introduce ThreadTitleSource and track titleSource on ThreadRecord. Add normalization and placeholder detection (default vs manual) across persistence and store helpers. Set titleSource on thread creation and local rename, sanitize persisted threads to include a titleSource, and export normalizeThreadTitleSource. Implement logic to selectively adopt non-manual session_info titles (model/heuristic) only when appropriate and only persist when the title actually changes. Update tests to cover sanitization and session_info/title adoption behavior.

Parent904efae

6 files changed
  • apps/desktop/electron/services/persistence.ts+21−1
  • apps/desktop/src/app/store.actions.ts+4−1
  • apps/desktop/src/app/store.helpers.ts+56−2
  • apps/desktop/src/app/types.ts+3−0
  • apps/desktop/test/persistence-state-sanitization.test.ts+1−0
  • apps/desktop/test/protocol-v2-events.test.ts+68−0