Skip to content

v0.42.3: install-statusline defaults to TP-only (drop caveman by default)#44

Merged
Shahinyanm merged 1 commit into
masterfrom
v0.42.3-tponly-default
Jun 5, 2026
Merged

v0.42.3: install-statusline defaults to TP-only (drop caveman by default)#44
Shahinyanm merged 1 commit into
masterfrom
v0.42.3-tponly-default

Conversation

@Shahinyanm
Copy link
Copy Markdown
Member

User: install-statusline put [CAVEMAN] [TP] in the bar — why add caveman? Fair. The old default installed the chain wrapper (renders a third-party badge too). We install OUR badge; presuming caveman belongs there = the sessionTitle-clobber class.

Fix: default = TP-only (tp-statusline.sh[TP deny 27k]). --chain opts into [CAVEMAN] [TP].

  • configured-chain → switches to TP-only by default (drops caveman badge — the user's exact case)
  • caveman-only → not replaced (it's caveman's); --chain adds, --force replaces
  • custom/other → untouched without --force

1355/1355 tests.

User reaction: install-statusline put `[CAVEMAN] [TP]` in the status
bar — "why did you add caveman? we don't need it." Fair. The previous
default installed the CHAIN wrapper, which renders a third-party tool's
badge alongside ours. We install OUR badge; deciding that caveman's
badge belongs in your status bar is the same presumption class as the
sessionTitle clobber.

Fix: default is now the TP-only badge (tp-statusline.sh → `[TP deny
27k]`). `--chain` opts into the combined `[CAVEMAN] [TP]` view.

State handling:
  - not-configured      → TP-only (or chain with --chain)
  - configured-chain    → switch to TP-only by default (drops the
                          caveman badge — exactly the user's case);
                          --chain keeps it
  - configured-tp-only  → no-op (or upgrade to chain with --chain)
  - configured-caveman-only → NOT replaced (it's caveman's, not ours);
                          --chain adds [TP] alongside, --force replaces
  - configured-other / unknown → untouched without --force

decideStatuslineAction now returns the command to write and takes
{force, chain}. New TP_ONLY_COMMAND constant.

Tests: 1355/1355 pass (+6).
@Shahinyanm Shahinyanm merged commit aa6a32b into master Jun 5, 2026
@Shahinyanm Shahinyanm deleted the v0.42.3-tponly-default branch June 5, 2026 13: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.

1 participant