Skip to content

feat: add generated chat titles - #8

Merged
loocor merged 3 commits into
mainfrom
feat/better-naming-for-md-export
May 26, 2026
Merged

feat: add generated chat titles#8
loocor merged 3 commits into
mainfrom
feat/better-naming-for-md-export

Conversation

@loocor

@loocor loocor commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • add Helper auto naming settings and a Regenerate chat title session action
  • generate chat titles through the Codex app-server for local and remote sessions
  • use generated titles for friendly Markdown export filenames
  • harden title regeneration with longer bridge timeouts, sidebar cache-only refresh, export prevalidation, and canonical auto naming settings

Verification

  • bun test runtime/_test-settings.test.js src/routes.test.ts
  • bun run check
  • bun run bundle:runtime
  • git diff --check
  • cargo test --manifest-path src-tauri/Cargo.toml -- --nocapture

loocor added 2 commits May 26, 2026 13:42
Add Helper auto naming settings, a Regenerate chat title menu action, and Codex app-server backed title generation. Reuse the generated title for friendly Markdown export filenames while preserving local and remote session context.
Use longer route-specific bridge timeouts for naming and Markdown export, avoid duplicate title persistence from the sidebar, validate exportable rollout content before generated filenames, and prefer canonical auto naming settings over legacy aliases.
@loocor loocor self-assigned this May 26, 2026
@loocor
loocor requested a review from Copilot May 26, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds “auto naming” capabilities to Codex Helper by introducing generated chat titles (via the Codex app-server) for both title regeneration and friendlier Markdown export filenames, along with new UI/settings and hardened bridge behavior.

Changes:

  • Add auto-naming settings (enable regenerate action, friendly filenames, min/max title length) across TS runtime + Rust bridge.
  • Introduce /auto-rename-chat bridge route and Codex app-server client support for generating + setting thread titles.
  • Improve export behavior with rollout prevalidation and longer bridge timeouts for naming/export routes.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/rust-bridge.ts Allows routing /auto-rename-chat through the Rust bridge binary.
src/routes.ts Adds/validates new auto-naming settings (including legacy key canonicalization).
src/routes.test.ts Adds tests for auto-naming settings, canonical/legacy behavior, and long timeouts.
src/bridge.ts Adds per-route bridge timeouts + friendlier timeout messages for naming/export.
src-tauri/src/settings.rs Extends Rust settings with auto-naming options and range validation + tests.
src-tauri/src/session_actions.rs Adds auto-rename action and integrates friendly-title generation into Markdown export.
src-tauri/src/routes.rs Wires new /auto-rename-chat route to session actions.
src-tauri/src/markdown.rs Adds rollout prevalidation helper and new tests for empty rollouts.
src-tauri/src/codex_app_server.rs Implements thread read + title generation + title set APIs via app-server JSON-RPC.
src-tauri/src/bridge_cli.rs Exposes /auto-rename-chat via the bridge CLI for local testing.
runtime/styles.js Adds styling for number inputs used in auto-naming settings UI.
runtime/settings.js Renders auto-naming settings and adds number-setting update handling.
runtime/sessions.js Adds “Regenerate chat title” session action and friendly filename export behavior.
runtime/native-settings.js Adds native settings UI for auto-naming toggles and numeric inputs.
runtime/constants.js Adds new settings defaults and helper attribute for numeric settings.
runtime/bootstrap.js Hooks change events for numeric settings inputs.
runtime/_test-settings.test.js Updates runtime tests to cover new auto-rename and friendly filename flows.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src-tauri/src/codex_app_server.rs
Comment thread runtime/settings.js
Comment thread src-tauri/src/markdown.rs Outdated
Align generated-title waiting with the bridge timeout, validate auto naming number inputs before sending settings updates, and reuse parsed rollout messages between export prevalidation and rendering.
@loocor
loocor merged commit 6b629ca into main May 26, 2026
4 checks passed
@loocor
loocor deleted the feat/better-naming-for-md-export branch May 26, 2026 06:03
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.

2 participants