Skip to content

Comments

feat(settings/git): expose editable commit-message prompt in Git settings#381

Merged
Dimillian merged 1 commit intomainfrom
codex/github-mention-feat-view-and-edit-commit-message-prompt
Feb 9, 2026
Merged

feat(settings/git): expose editable commit-message prompt in Git settings#381
Dimillian merged 1 commit intomainfrom
codex/github-mention-feat-view-and-edit-commit-message-prompt

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Provide a user-editable commit-message prompt used by the built-in commit-message generator so teams can customize the template (and preserve the existing generated-message behavior).
  • Surface the current prompt in the Settings → Git panel and offer Save/Reset controls consistent with other settings fields.
  • Ensure both the app and the daemon use the stored template when building prompts, with a safe default fallback.

Description

  • Added a settings editor UI to the Git section: a textarea with Save and Reset buttons and dirty/saving state handling (src/features/settings/components/sections/SettingsGitSection.tsx, src/features/settings/components/SettingsView.tsx).
  • Persisted a commitMessagePrompt field through frontend types/normalization and defaults, and added DEFAULT_COMMIT_MESSAGE_PROMPT helper (src/types.ts, src/features/settings/hooks/useAppSettings.ts, src/utils/commitMessagePrompt.ts).
  • Updated shared backend prompt builder to accept a template and fall back to the default when the template is empty, and wired the app and daemon to read commit_message_prompt from app settings when composing the final commit-message prompt (src-tauri/src/shared/codex_aux_core.rs, src-tauri/src/codex/mod.rs, src-tauri/src/bin/codex_monitor_daemon.rs, src-tauri/src/types.rs).

Testing

  • Ran npm run lint with no reported errors.
  • Ran npm run test and the test suite completed successfully (439 passed).
  • Ran npm run typecheck (tsc --noEmit) which completed successfully.
  • Ran cargo check in src-tauri which failed in this environment due to a missing system dependency (glib-2.0 via pkg-config), not due to code errors.

Codex Task

@Dimillian
Copy link
Owner Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian merged commit e2f97b4 into main Feb 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant