Add custom Claude buttons configurable in settings#23
Merged
Conversation
Users can now configure arbitrary "New Session: X" buttons that spawn claude with any custom command. Each button has a display label, a tmux window prefix (auto-derived from label, independently editable), and a command string used as-is when the button is pressed. Buttons containing --dangerously-skip-permissions are auto-styled red like the existing YOLO button. Buttons render in the CLAUDE section (wrapping 4-per-row) and as compact pills on each row of the recent-sessions list. The resume path reuses the custom command/prefix with `-r <session-id>` appended. Also: - Drop the pre-existing (unused) per-repo/per-worktree/global custom_claude_command override — custom buttons subsume the use case - Move Add Worktree out of the CLAUDE section to sit next to Git Pull in the repo header, where it belongs - Widen Settings + Manage modals (new modal-wide class) and let them fill available vertical space so the Manage button is always visible - Bump textual to >=8.2.4
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
Users can now configure arbitrary
New Session: Xbuttons that spawnclaudewith any custom command. Each button has:YoloDisc)YoloDisc→yolodisc:<repo>)Buttons whose command contains
--dangerously-skip-permissionsare auto-styled red like the existing YOLO button. Buttons render in the CLAUDE section (4-per-row wrapping) and as compact pills on each row of the recent-sessions list. The resume path reuses the custom command + prefix and appends-r <session-id>.Also in this PR
custom_claude_commandoverride. Custom buttons subsume that use case, and the feature was never used in practice.Add Worktreeout of the CLAUDE section to sit next to⟳ Git Pullin the repo header, where a repo-scope action belongs.modal-wideclass) so they fill available vertical space — theManage Custom Buttons...button is now always visible without scrolling on reasonably sized terminals.>=8.2.4.Test plan
make check(ruff + mypy + format) clean[⟳ Git Pull][Add Worktree]in header, CLAUDE row shows[New Session][New Session: YOLO][YoloDisc][Opus], recent sessions card with[Resume][YOLO][YoloDisc][Opus]WORKTREEheader with Repository/Worktree/Branch/Based on, onlyGit Pull(no Add Worktree), same custom buttonsManage Custom Buttons...visible without scrolling--dangerously-skip-permissionsrender redtu >=0.6.1for testing in tu)