Skip to content

feat: add configurable composer shortcuts (model / access / reasoning)#95

Merged
Dimillian merged 6 commits intomainfrom
codex/github-mention-request-configurable-keyboard-shortcut-to-s
Jan 18, 2026
Merged

feat: add configurable composer shortcuts (model / access / reasoning)#95
Dimillian merged 6 commits intomainfrom
codex/github-mention-request-configurable-keyboard-shortcut-to-s

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Provide keyboard shortcuts to speed up composer workflows by cycling model, access mode, and reasoning mode, and let users customize them from Settings.

Description

  • Add generic shortcut utilities in src/utils/shortcuts.ts including parseShortcut, formatShortcut, buildShortcutValue, and matchesShortcut to parse, format and match shortcut strings.
  • Implement useComposerShortcuts hook in src/features/composer/hooks/useComposerShortcuts.ts to listen for shortcut keys (when the composer textarea is focused) and cycle the selected model, access mode, or reasoning option.
  • Persist new settings fields (composerModelShortcut, composerAccessShortcut, composerReasoningShortcut) in types and defaults across frontend and backend (src/types.ts, src/features/settings/hooks/useAppSettings.ts, and src-tauri/src/types.rs).
  • Add a Shortcuts section to the Settings UI with capture/clear controls and display using formatShortcut (src/features/settings/components/SettingsView.tsx) and a small CSS tweak for shortcut inputs (src/styles/settings.css).
  • Wire the hook into the app lifecycle in src/App.tsx so composer shortcuts are active and cycle the correct UI state via existing setters (setSelectedModelId, setAccessMode, setSelectedEffort).

Testing

  • Ran npm run lint (ESLint) and it completed successfully.
  • Ran npm run typecheck (tsc --noEmit) and it completed successfully.
  • Attempted npm run tauri build and it failed during the Rust build step due to a missing system dependency (glib-2.0 required by glib-sys), which is an environment issue unrelated to the TypeScript changes.

Codex Task

@Dimillian
Copy link
Owner Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Bravo.

ℹ️ 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 changed the title Add configurable composer shortcuts (model / access / reasoning) feat: add configurable composer shortcuts (model / access / reasoning) Jan 18, 2026
@Dimillian Dimillian merged commit 782818f into main Jan 18, 2026
2 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 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