Repository navigation
Sync upstream bb through #6466 (remove query tags) - #98
Merged
Merged
Conversation
Upstream: a2829ad Take core off query tags: UI preferences refresh through a system change (get-bb#6466) Base: 747c8fd Release: 0.48.0 (top of upstream CHANGELOG at this commit) Conflict step, merged with git merge-tree --merge-base=<base> and resolved by hand (bead mk-8lcd6.4): - packages/server-contract/src/client-route-descriptors.ts: deleted, as upstream did. The fork's window-preset routes (windows, reportWindow, proposeWindowPreset, acceptWindowSuggestion, dismissWindowSuggestion) move inline into publicApiRoutes.system with no tag declarations, with the same paths, methods, request schemas and response lists. - packages/server-contract/src/public-api.ts: upstream's inline UI preference routes, the fork's music routes and the five window routes inline, plus the ./api/windows.js imports. - apps/server/src/routes/ui-preferences.ts: keeps the fork's requireWritableUiPreferenceKey guard on reset and adds upstream's ui-preferences-changed system notification. - apps/server/src/routes/windows.ts: the route-tag invalidation is gone, so propose, accept and dismiss now send the ui-preferences-changed system notification on success, as the old ui-preferences tag did. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Summary
Upstream sync step: brings Aleph from upstream
747c8fd099toa2829ad9df(upstream PR get-bb#6466, "remove query tags"; release 0.48.0). Single-parent sync commit on top of main6b3609b06. Bead mk-8lcd6.4.Upstream get-bb#6466 removes the query-tags contract mechanism (
tags()/invalidates()route declarations, theinvalidateTagsoption oftypedRoutes,contract-tags.ts,tagsChangedMessageSchema, the app'sroute-tags.ts) and replaces it with the system change kindui-preferences-changed, sent bydeps.hub.notifySystem([...]).UPSTREAM_BASEnow recordsa2829ad9df. 47 files changed; the sync was made withscripts/upstream-sync.sh prepareand the conflicting part resolved fromgit merge-tree.Resolution, file by file
packages/server-contract/src/public-api.ts(conflict): dropped theclient-route-descriptorsimport; kept the fork'smusicSecretandmusicPairingroutes; took upstream's inlineuiPreferences,updateUiPreference,resetUiPreference; moved the fork's window routes inline (windowsGET /windows,reportWindowPOST /windows/report,proposeWindowPresetPUT /windows/presets/:presetId/suggestion,acceptWindowSuggestionPOST .../suggestion/accept,dismissWindowSuggestionPOST .../suggestion/dismiss) with their request/response schemas and 404/409ApiErrorresponses, without tags.packages/server-contract/src/client-route-descriptors.ts: deleted as upstream did; its fork-only window routes now live inpublic-api.tsas above; theindex.tsexport was dropped.apps/server/src/routes/ui-preferences.ts: reset handler uses the fork'srequireWritableUiPreferenceKeyguard and thendeps.hub.notifySystem(["ui-preferences-changed"]).apps/server/src/routes/windows.ts: removed theinvalidateTagsoption; propose, accept (accepted branch) and dismiss sendui-preferences-changedon success. Report sends nothing, since nothing consumed the old windows tag.No fork route or contract export was dropped, and no test was weakened. One test is gone with the mechanism it covered: NotificationHub "batches tag changes", deleted upstream.
Gate
Fresh clone, sequential,
nice -n 19 ionice -c3,CI=1, 8 worker cap, CPU pressure checked first. Typecheck and tests forapps/serverandpackages/server-contract:6b3609b06279a63265Tests failing at head and not at main: none. The test count differs by exactly the deleted tag-batch test. (The two known install-machine-script HOME failures did not reproduce at either ref in this environment.)
Review
Packaged cross-lab review (
dispatch.sh --role cross-lab-review, backend codex,gpt-6.1-sol, medium effort; producer identityclaude-sonnet-5-5): "PASS WITH NOTES", no supported defects; fork routes and guards survive, preference notifications reach the app, remaining tag references serve plugin caching. The reviewer ran 110 app tests fresh. Dispatch idb820832f-586d-4796-870a-613d19084983. It reviewed the fork-vs-upstream diff of the resolution; no findings to fix.Next conflict
Stopped at get-bb#6466 as scoped. Probe from this head: the next first-parent conflict is upstream get-bb#6511 (
2f5abff03,apps/app/src/components/secondary-panel/useSecondaryPanelResize.ts); 16 clean first-parent commits precede it (clean through get-bb#6487,0950d00f9). 61 conflicting paths at upstream head. Not resolved here.🤖 Generated with Claude Code