Repository navigation
Conversation
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
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.
Closes #631.
What the report actually contained
Two defects, reported as one.
The off switch was undiscoverable.
features.plugin_promoswas already documented inREADME.md,docs/configuration.mdanddocs/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.
systemMessageis emitted raw atscripts/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'sconfig.jsonin particular: every plugin may have afeaturesblock.The rendered line now carries both halves:
What deliberately did not change
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:
plugin_promos=falseconfig.jsonis JSON -- that spelling is valid syntax nowhere, and a hint someone can paste to no effect is worse than no hintgithub.com/from the displayorg/repo, and an unclickable link defeats the only thing the promo exists to doA URL shortener was also considered and rejected outright:
git.iowas 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
TestPromoCarriesItsOwnOffSwitchasserts the hint is present and that the line is attributed. The second case is the one that matters: it walks every entry in the shippedpromos.jsonand 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]