Skip to content

Sync upstream bb through #6466 (remove query tags) - #98

Merged
mistakeknot merged 1 commit into
mainfrom
sync/upstream-a2829ad9df
Nov 3, 2026
Merged

mistakeknot merged 1 commit into
mainfrom
sync/upstream-a2829ad9df

Conversation

@mistakeknot

Copy link
Copy Markdown
Owner

Summary

Upstream sync step: brings Aleph from upstream 747c8fd099 to a2829ad9df (upstream PR get-bb#6466, "remove query tags"; release 0.48.0). Single-parent sync commit on top of main 6b3609b06. Bead mk-8lcd6.4.

Upstream get-bb#6466 removes the query-tags contract mechanism (tags() / invalidates() route declarations, the invalidateTags option of typedRoutes, contract-tags.ts, tagsChangedMessageSchema, the app's route-tags.ts) and replaces it with the system change kind ui-preferences-changed, sent by deps.hub.notifySystem([...]).

UPSTREAM_BASE now records a2829ad9df. 47 files changed; the sync was made with scripts/upstream-sync.sh prepare and the conflicting part resolved from git merge-tree.

Resolution, file by file

  • packages/server-contract/src/public-api.ts (conflict): dropped the client-route-descriptors import; kept the fork's musicSecret and musicPairing routes; took upstream's inline uiPreferences, updateUiPreference, resetUiPreference; moved the fork's window routes inline (windows GET /windows, reportWindow POST /windows/report, proposeWindowPreset PUT /windows/presets/:presetId/suggestion, acceptWindowSuggestion POST .../suggestion/accept, dismissWindowSuggestion POST .../suggestion/dismiss) with their request/response schemas and 404/409 ApiError responses, without tags.
  • packages/server-contract/src/client-route-descriptors.ts: deleted as upstream did; its fork-only window routes now live in public-api.ts as above; the index.ts export was dropped.
  • apps/server/src/routes/ui-preferences.ts: reset handler uses the fork's requireWritableUiPreferenceKey guard and then deps.hub.notifySystem(["ui-preferences-changed"]).
  • apps/server/src/routes/windows.ts: removed the invalidateTags option; propose, accept (accepted branch) and dismiss send ui-preferences-changed on success. Report sends nothing, since nothing consumed the old windows tag.
  • Everything else (app hooks and cache owners, ui-preferences sync, plugin-sdk, query-tags, hono-typed-routes, domain change kinds, lockfile, docs) merged cleanly from upstream.

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 for apps/server and packages/server-contract:

typecheck tests
origin/main 6b3609b06 pass apps/server 7135 pass / 0 fail (1 skipped); server-contract 94 pass
this head 279a63265 pass apps/server 7134 pass / 0 fail (1 skipped); server-contract 94 pass

Tests 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 identity claude-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 id b820832f-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

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]>
@mistakeknot
mistakeknot merged commit 0d10749 into main Nov 3, 2026
2 checks passed
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