Skip to content

feat: add customLine config option for user-defined HUD labels#229

Closed
ywatanabe1989 wants to merge 1 commit intojarrodwatts:mainfrom
ywatanabe1989:feat/custom-line
Closed

feat: add customLine config option for user-defined HUD labels#229
ywatanabe1989 wants to merge 1 commit intojarrodwatts:mainfrom
ywatanabe1989:feat/custom-line

Conversation

@ywatanabe1989
Copy link

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.

Summary

Testing

  • npm test
  • npm run test:coverage

Checklist

  • Tests updated or not needed
  • Docs updated if behavior changed

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>
@jarrodwatts
Copy link
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.

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