Skip to content

fix: editable git prompt template in Git settings#379

Closed
Dimillian wants to merge 1 commit intomainfrom
codex/expose-prompt-as-editable-in-git-tab
Closed

fix: editable git prompt template in Git settings#379
Dimillian wants to merge 1 commit intomainfrom
codex/expose-prompt-as-editable-in-git-tab

Conversation

@Dimillian
Copy link
Copy Markdown
Owner

Motivation

  • Provide a way for users to customize the default PR prompt used when asking questions about GitHub pull requests from the Git panel.

Description

  • Add a new gitPullRequestPrompt setting (frontend src/types.ts, backend src-tauri/src/types.rs) with a default template and normalization in useAppSettings.
  • Expose an editable textarea in the Git section of Settings with save/reset controls and draft handling (SettingsGitSection.tsx, SettingsView.tsx).
  • Extend the PR prompt generator to accept a template with tokens and fill them (src/utils/pullRequestPrompt.ts), and wire the configurable template into the PR composer flow (usePullRequestComposer.ts, App.tsx).
  • Update tests and test fixtures to exercise template passing (usePullRequestComposer.test.tsx, SettingsView.test.tsx).

Testing

  • Ran npm run lint and it completed successfully after fixes.
  • Ran npm run test (Vitest) and the full test suite passed (439 passed).
  • Ran npm run typecheck (tsc --noEmit) and it completed successfully.
  • Ran cargo check in src-tauri which failed due to a missing system dependency (glib-2.0) in the environment and is unrelated to the added Rust serialization changes.

Codex Task

@Dimillian Dimillian changed the title Add editable pull request prompt template in Git settings and wire into PR composer fix: editable got prompt template in Git settings Feb 9, 2026
@Dimillian Dimillian changed the title fix: editable got prompt template in Git settings fix: editable git prompt template in Git settings Feb 9, 2026
@Dimillian Dimillian closed this Feb 9, 2026
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