Repository navigation
Conversation
The pin star in the Agents list stayed hidden until a user found the Pin agents setting, so most never saw the feature. agentPins now defaults to true, and the sanitizer keeps any saved boolean, so an explicit false stays false. A value that is not a boolean takes the default. Closes devswha#882 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks for this. Closing it: #1120 removes the Pin agents setting, so pins no longer need a default. An agent is pinned from its row's ⋯ menu or a right-click instead. |
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 #882
Change
The pin star in the Agents list is hidden until a user finds Settings → Appearance → Pin agents, so most users never see the feature.
agentPinsnow defaults totrue.sanitizeSettingskeeps any saved boolean, so an explicitly savedfalsestaysfalse; a value that is not a boolean (null,"true",1) takes the default. The setting, its toggle and the star are otherwise unchanged. The server needs no change.Shared settings (#854)
agentPinsis a shared setting, and the server holds no defaults:PreferenceStorekeeps only the settings some browser has changed, and a browser sends only what differs from its baseline. So the new default works out like this:agentPinsvalue. Every browser that has no stored choice shows the stars. Opening a page writes nothing, and nothing is sent for the default.agentPins: false. A browser takes it on load, so the stars stay off for everyone who shares that server.agentPins: false. It keeps it. Settings are saved as one record, so a browser that saved any setting before this change also storedagentPins: false, and that cannot be told apart from a deliberate choice. Those browsers need to turn the setting on once. Only browsers with no stored settings get the new default.src/lib/preferencesSync.test.tscovers the first two cases and the third.No other text needed an update: the docs, the README and the site demo do not describe pins as off by default (the released 0.4.x changelog entry that says so stays as history), and the demo opens with no stored settings, so it now shows the stars.
Validation
All commands ran in the worktree on Windows 11 with Bun 1.4.3.
RED, on the old default (the new test against unchanged
src/lib/settings.ts):HERDR_TEST_MODE=unit bun test ./src/lib/settings.test.ts: exit 1,expect(DEFAULT_SETTINGS.agentPins).toBe(true)receivedfalse(58 pass, 1 fail).bun scripts/sidebar-activity-demo-regression.ts: exit 1,every agent offers a pin by default(0 !== 5).GREEN, with the change:
HERDR_TEST_MODE=unit bun test ./src/lib/settings.test.ts ./src/lib/preferencesSync.test.ts ./server/preferences.test.ts: exit 0, 73 pass, 0 fail. ThesanitizeSettingscases cover a missing value →true,false→false,true→true, andnull,"true","false",0,1→true.bun run typecheck: exit 0.bun run build: exit 0.bun scripts/sidebar-activity-demo-regression.ts(builds the demo app, loopback only, no herdr session): exit 0, all eight sections pass, includingby default the Agents list is flat, in herdr's order, with pin stars.bun scripts/sidebar-spacing-demo-regression.tsandbun scripts/deep-link-demo-regression.ts, which draw the Agents list with default settings: exit 0 each.One unrelated failure:
server/telemetry.test.ts"the notice sends the install once, and a restart on the same version sends nothing" fails on Windows, and fails the same way on unmodifiedmain. The full unit suite was not run.Changelog: one line under Unreleased → Changed.
🤖 Generated with Claude Code