Skip to content

Make the promo say who it is and how to switch it off (#631) - #632

Merged
fdaviddpt merged 2 commits into
mainfrom
fix/631
Sep 9, 2026
Merged

fdaviddpt merged 2 commits into
mainfrom
fix/631

Conversation

@fdaviddpt

@fdaviddpt fdaviddpt commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #631.

What the report actually contained

Two defects, reported as one.

The off switch was undiscoverable. features.plugin_promos was already documented in README.md, docs/configuration.md and docs/hooks.md. Documentation is not where anyone looks at the moment an unasked-for line appears in their terminal, which is what the reporter meant by "without a clear path to disabling" it.

The line did not say who was speaking. systemMessage is emitted raw at scripts/session-start-hook.sh:1673 -- this hook attaches no plugin name, and whether the client attaches one is not a property this repo can assert. So the reporter saw an advertisement with no return address, and had to work out which of his installed plugins had produced it before he could file against the right repository. Unattributed, an off-switch key is a key in nobody's config.json in particular: every plugin may have a features block.

The rendered line now carries both halves:

claude-remember: claude-jit-context -- rules injected only when they match -- github.com/Digital-Process-Tools/claude-jit-context (off: features.plugin_promos)

What deliberately did not change

  • The default stays on. Opt-in was the reporter's ask and is declined. A promo channel nobody opts into reaches nobody; that is removal wearing a politer name. If the feature should go, it should be deleted rather than disabled by a default nobody will ever flip. The complaint that survived scrutiny was discoverability, not existence.
  • The 7-day throttle stays. Frequency was never the complaint -- the reporter's own reproduction steps ("repeat until 'once in a while' occurs") describe waiting for it to fire.
  • The relevance gate stays, and is the reason this is finite: the promo speaks only for a sibling plugin absent from installed_plugins.json. There are two. Install both and it never speaks again.

Length budget: 140 -> 170

The guard decides only when an entry is skipped-and-logged; it lengthens no rendered line. Longest shipped entry now renders at 159 of 170.

Two cheaper spellings were measured and rejected rather than assumed:

option longest entry rejected because
plugin_promos=false 139, fits 140 config.json is JSON -- that spelling is valid syntax nowhere, and a hint someone can paste to no effect is worse than no hint
drop github.com/ from the display 148, fits 150 most terminals stop auto-linking a bare org/repo, and an unclickable link defeats the only thing the promo exists to do

A URL shortener was also considered and rejected outright: git.io was retired in 2022, and a third-party redirect would have a stranger log the reader's IP on every click -- manufacturing exactly the data processing this feature currently does not do, in order to save characters.

Tests

TestPromoCarriesItsOwnOffSwitch asserts the hint is present and that the line is attributed. The second case is the one that matters: it walks every entry in the shipped promos.json and asserts each still renders with the hint attached. Without it, a copy edit that pushes an entry over budget would suppress the promo silently, and every existing suppression test in the file would still pass -- an absence rendered as a clean result, which is this repository's own recurring defect class.

Full suite: 2269 passed, 45 skipped locally.

History

This branch previously carried the opt-in flip (663d331, f41dce6), force-discarded after review concluded it would delete the feature rather than fix the complaint.

🤖 Generated with Claude Code

[AI-generated]

fdaviddpt and others added 2 commits September 9, 2026 21:44
The cross-plugin promo at SessionStart (#574) shipped with a documented
off switch -- `features.plugin_promos` appears in README.md,
docs/configuration.md and docs/hooks.md -- and a reporter still described
it as arriving "without a clear path to disabling" it. Both facts are
true at once: documentation is not where someone looks at the moment an
unasked-for line appears in their terminal. The rendered promo now ends
`(off: features.plugin_promos)`, so the path is where the interruption is.

What did NOT change, deliberately:

- The default stays on. Flipping it to opt-in was the reporter's ask and
  was rejected: a promo channel nobody opts into reaches nobody, which is
  deletion wearing a politer word. The complaint that survived scrutiny
  was discoverability, not existence.
- The 7-day throttle stays. The reporter never complained of frequency --
  his own reproduction steps ("repeat until 'once in a while' occurs")
  describe waiting for it.
- The relevance gate stays, and is worth restating: the promo speaks only
  for a sibling plugin absent from installed_plugins.json, so it is
  self-terminating. Install both siblings and it never speaks again.

The length budget moves 140 -> 150. That guard decides only when an entry
is skipped-and-logged; it lengthens no rendered line. The full key is
spelled out rather than a shorter plugin_promos=false that would have
fit inside 140: config.json is JSON, so that spelling is valid syntax
nowhere, and a hint a reader can paste to no effect is worse than no hint
at all. Longest shipped entry now renders at 142 of 150.

Tests: TestPromoCarriesItsOwnOffSwitch asserts the hint is present, and --
the positive control that matters here -- that every shipped entry still
renders with it attached. Without that second case, a copy edit pushing an
entry over budget would suppress the promo silently and every existing
suppression test would still pass.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
The off-switch hint added in the previous commit named a key but not an
address. systemMessage is emitted raw at session-start-hook.sh:1673 --
this hook attaches no plugin name, and whether the client attaches one is
not a property this repo can assert. So `(off: features.plugin_promos)`
arrived in a terminal naming a key in nobody's config.json in particular:
every plugin may have a `features` block, and the reporter had to work out
for himself which of his installed plugins had spoken before he could file
against the right repo.

An off switch nobody can find and one nobody can address are the same
defect twice. The line now opens `claude-remember:`.

Budget 150 -> 170 to fit it. Two cheaper spellings were measured and
rejected rather than assumed:

- Dropping `github.com/` from the displayed URL buys 11 characters and
  fits 150, but most terminals stop auto-linking a bare org/repo, and an
  unclickable link defeats the only thing the promo exists to do.
- A URL shortener was considered and rejected outright: git.io was retired
  in 2022, and a third-party redirect would have a stranger log the
  reader's IP on every click -- manufacturing exactly the data processing
  this feature currently does not do, to save characters.

Longest shipped entry renders at 159 of 170.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
@fdaviddpt fdaviddpt changed the title Default cross-plugin promo to opt-in, not opt-out (#631) Make the promo say who it is and how to switch it off (#631) Sep 9, 2026
@fdaviddpt
fdaviddpt merged commit 3865257 into main Sep 9, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the fix/631 branch September 9, 2026 21:18
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.

Cross-promotional notifications should be opt-in only

1 participant