Skip to content

Add RUNTIME section to wt config show - #375

Merged
max-sixty merged 6 commits into
mainfrom
config-show
Jan 2, 2026
Merged

max-sixty merged 6 commits into
mainfrom
config-show

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Add RUNTIME section to wt config show displaying binary name, version, and shell integration status
  • Helps debug shell integration issues where users invoke git wt (binary) instead of git-wt (shell function)
  • Shows "invoked as" line when argv[0] differs from the binary name

Example output:

RUNTIME
 ┃ wt v0.8.5
↳ Shell integration not active

Test plan

  • All existing tests pass (653 integration tests)
  • Added snapshot test for shell integration active state
  • Lints pass

Closes #348

🤖 Generated with Claude Code

max-sixty and others added 6 commits January 2, 2026 11:32
Display runtime information at the bottom of config show output:
- Binary name (wt or git-wt)
- Version string
- Shell integration status (active vs not active)
- argv[0] if different from binary name (for debugging invocation issues)

This helps debug shell integration issues like #348 where users invoke
`git wt` (binary) instead of `git-wt` (shell function).

Closes #348

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Changed gutter spacing from 2 spaces to 1 space after the gutter marker
- Removed dead fallback code (synoptic always has TOML support built-in)
- Simplified the highlighting loop

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
In CI without git tags, version_str() returns just the commit hash
(e.g., "b9ffe83") instead of a semver string (e.g., "v0.8.5-2-gabcdef").
Updated the snapshot filter regex to match both patterns.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
The previous filter matched any 7+ char hex string in dim codes,
which incorrectly replaced commit hashes in merge progress messages.
Now the filter only matches the specific pattern after "wt" in the
RUNTIME section output.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
The shell integration status already indicates if someone is calling
the binary directly vs through the shell function. The argv[0 check
added complexity and test coverage burden for minimal diagnostic value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 94b2253 into main Jan 2, 2026
@max-sixty
max-sixty deleted the config-show branch January 2, 2026 20:45
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.

Unable to change directory on Windows GitBash with chell integration enabled

1 participant