Skip to content

style(config): bold shell name on "Skipped" row in wt config show - #2579

Merged
max-sixty merged 3 commits into
mainfrom
shell-warning-text
May 4, 2026
Merged

max-sixty merged 3 commits into
mainfrom
shell-warning-text

Conversation

@max-sixty

@max-sixty max-sixty commented May 4, 2026 •

Copy link
Copy Markdown
Owner

Aligns the Skipped per-shell row with every other status row in the SHELL INTEGRATION section — bold shell name, then : , then the body. Previously the entire row was wrapped in <dim> so the shell name lost its bold treatment and the row didn't visually scan the same as Already configured / Outdated / Not configured.

The bold-name and dim-body spans are sequential (<bold>foo</>: <dim>bar</>), not nested — that avoids the SGR-22 reset trap the writing-user-outputs skill warns about (closing </bold> would otherwise also clear an outer <dim>).

The Skipped row only renders when a shell binary is installed but has no rc file — #2574's is_installed() filter suppresses the more common "no binary, no rc file" case. New test_config_show_skipped_with_installed_binary flags WORKTRUNK_TEST_BASH_INSTALLED=1 with no .bashrc to lock in the styling on that path.

This was written by Claude Code on behalf of @max-sixty

max-sixty and others added 2 commits May 3, 2026 23:56
Every other per-shell row in the SHELL INTEGRATION section bolds the
shell name (`<bold>{shell}</>: Already configured ...`). The Skipped
row was the outlier — `<dim>{shell}: Skipped; {path} not found</>`
dimmed the entire body including the shell name. Now the shell name
is bold and only the trailing "Skipped; … not found" stays dim, so
shell-name styling is consistent across rows while the deemphasis on
the inactive entry is preserved.

The bold and dim spans are sequential (`<bold>foo</>: <dim>bar</>`),
not nested — they don't share an SGR-22 reset, which is the trap the
writing-user-outputs skill warns about.

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	tests/snapshots/integration__integration_tests__config_show__config_show_claude_available_plugin_not_installed.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_deprecation_details.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_cd_deprecation.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_no_ff_deprecation.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_pre_hook_table_form_deprecation.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_project_commit_generation_deprecations.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_displays_select_section_deprecation.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_empty_project_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_empty_system_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_fish_outdated_wrapper.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_fish_with_completions.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_fish_without_completions.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_from_linked_worktree_shows_main_worktree_hint.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_full_command_not_found.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_full_not_configured.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_full_update_available.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_full_version_check_unavailable.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_github_remote.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_gitlab_remote.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_invalid_project_toml.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_invalid_system_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_invalid_user_toml.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_no_project_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_no_user_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_nushell_outdated_wrapper.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_opencode_available_plugin_not_installed.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_opencode_plugin_installed.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_opencode_plugin_outdated.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_outside_git_repo.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_partial_shell_config_shows_hint.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_plugin_installed.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_powershell_detected_via_psmodulepath.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_shell_active_but_not_in_config_file.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_shell_integration_active.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_statusline_configured.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_suggests_project_config_for_ci.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_suggests_user_config_for_commit_generation.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_not_suppressed_by_wrapper.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_unmatched_candidate_warning.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_project_keys.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_warns_unknown_user_keys.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_whitespace_only_project_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_with_project_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_with_system_config.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_correct_order.snap
#	tests/snapshots/integration__integration_tests__config_show__config_show_zsh_compinit_warning.snap
#	tests/snapshots/integration__integration_tests__configure_shell__config_show_detects_fish_legacy_conf_d.snap
#	tests/snapshots/integration__integration_tests__configure_shell__config_show_fish_legacy_with_functions_dir.snap
@worktrunk-bot

Copy link
Copy Markdown
Collaborator

codecov/patch is failing on this PR but the misses are merge-noise from #2572, not lines this PR added. The actual diff touches lines 1018-1023 (the <bold>{shell}</>: <dim>...</> cformat); coverage.head for those is 1 or null per the Codecov compare API. The 7 reported misses are at lines 705-760, 797-799, 1034 — all introduced by c48d91a (#2572) and pulled in via Merge branch 'main' into shell-warning-text. Same false-positive shape CLAUDE.md describes for renames.

Adds `test_config_show_skipped_with_installed_binary` — bash flagged
installed via test override with no `.bashrc`, so the entry survives
#2574's `is_installed()` filter and renders as a Skipped row. Locks in
the bold-name + dim-body styling on the previously-uncovered code path
in `render_shell_status` (line 1022).

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 9cde5bd into main May 4, 2026
25 checks passed
@max-sixty
max-sixty deleted the shell-warning-text branch May 4, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants