feat: add generated chat titles - #8
Merged
Merged
Conversation
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.
There was a problem hiding this comment.
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-chatbridge 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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification