Skip to content

Sync Threadleaf titles to Codex sessions - #17

Merged
windzu merged 1 commit into
mainfrom
agent/sync-codex-thread-titles
Jul 30, 2026
Merged

Sync Threadleaf titles to Codex sessions#17
windzu merged 1 commit into
mainfrom
agent/sync-codex-thread-titles

Conversation

@windzu

@windzu windzu commented Jul 30, 2026

Copy link
Copy Markdown
Owner

What changed

  • Added a provider-neutral optional session-title capability to the chat runtime.
  • Mapped the Codex runtime implementation to thread/name/set.
  • Synced the Threadleaf conversation title after a turn without coupling page routing or persistence to Codex RPC details.
  • Isolated title-sync failures so completed responses remain completed.
  • Bumped the plugin version to 0.1.1.

Why

Threadleaf conversations were persisted by Codex and appeared in Codex recent tasks, but their user-facing title could fall back to the raw first prompt, including injected page context. Threadleaf already derives a cleaner conversation title, so the provider session should receive the same title.

Impact

New and resumed Threadleaf conversations use the same readable title in Threadleaf and Codex recent tasks. Providers that do not support session titles are unchanged.

Validation

  • npm run typecheck
  • npm test (43 passing)
  • npm run build
  • Real Obsidian/Codex app-server verification: the Threadleaf title Reply with exactly SECOND_OK. This intentionally lo… matched the persisted Codex thread title for the same session ID.

@windzu
windzu marked this pull request as ready for review July 30, 2026 07:15
@windzu
windzu merged commit cd16f12 into main Jul 30, 2026
1 check passed
@windzu
windzu deleted the agent/sync-codex-thread-titles branch July 30, 2026 07:16
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