feat: add customLine config option for user-defined HUD labels#229
Closed
ywatanabe1989 wants to merge 1 commit intojarrodwatts:mainfrom
Closed
feat: add customLine config option for user-defined HUD labels#229ywatanabe1989 wants to merge 1 commit intojarrodwatts:mainfrom
ywatanabe1989 wants to merge 1 commit intojarrodwatts:mainfrom
Conversation
The existing --extra-cmd CLI argument lets users display custom labels,
but requires modifying the statusLine command in settings.json. This adds
a `customLine` config option that serves as a declarative alternative.
When set in config.json, it runs the specified shell command and displays
the result as a dimmed label. The command must output JSON: {"label": "text"}.
CLI --extra-cmd still takes priority when both are specified.
Example use case: displaying account email by resolving local credentials,
since the Anthropic OAuth userinfo API is not yet available for individual
users.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d0589ec to
ec3ddae
Compare
Owner
|
Thanks for the work here. I merged the safer static custom-line approach in #223 instead. I do not want config.json to become a command-execution surface, so I am closing this dynamic variant rather than carrying both models forward. |
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.
The existing --extra-cmd CLI argument lets users display custom labels, but requires modifying the statusLine command in settings.json. This adds a
customLineconfig option that serves as a declarative alternative.When set in config.json, it runs the specified shell command and displays the result as a dimmed label. The command must output JSON: {"label": "text"}. CLI --extra-cmd still takes priority when both are specified.
Example use case: displaying account email by resolving local credentials, since the Anthropic OAuth userinfo API is not yet available for individual users.
Summary
Testing
npm testnpm run test:coverageChecklist