Add custom Claude command configuration with three-level hierarchy #2
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
shlex.quote()in tmux command executionConfiguration Hierarchy
UI Changes
New "Command" Button in Detail Views
Both repository and worktree detail views now have a Command button in the MANAGE section:
New ClaudeCommandModal
Settings Modal Update
Added CUSTOM CLAUDE COMMAND section:
Security Fix
Shell injection vulnerability in
tmux.pyfixed:Files Changed
models.pycustom_claude_commandfield toSettings,Repository,Worktree; AddedClaudeCommandResultdataclass; Added validation functions and Pydantic validatorsapp.py_resolve_claude_command()hierarchy; Added_show_claude_command_modal()handler; Pass custom command to tmux servicemodals.pyClaudeCommandModalwith presets; UpdatedSettingsModalwith command input and validationtmux.pycustom_commandparameter; Fixed shell injection withshlex.quote()state.pyupdate_repository_command()andupdate_worktree_command()methodsrepository_detail.pyworktree_detail.pycomponents/messages.pyConfigureClaudeCommandmessagetheme.py.section-header-rowCSSTest plan
🤖 Generated with Claude Code