Tasks Float port, slice 1: Tasks inside the shared window #1161
Closed
kayg
wants to merge 0 commits from
port/tasks-float-1 into dev
pull from: port/tasks-float-1
merge into: kayg:dev
kayg:main
kayg:port/tasks-float-2
kayg:fix/train-1116-2
kayg:fix/train-1116-3
kayg:fix/train-1116-1
kayg:fix/flake-1134
kayg:fix/server-1182
kayg:dev
kayg:port/notes-float-3c
kayg:docs/auto-update-ig
kayg:feat/dav-transport
kayg:wip/mail1011-sv-order-1116
kayg:fix/flake-1179
kayg:fix/flake-1178
kayg:fix/guards-1153-fsio-split
kayg:fix/guards-1153-notes-split-we
kayg:fix/guards-1153-notes-lib
kayg:fix/guards-1153-notes-home
kayg:fix/guards-1153-ui-primitives
kayg:fix/guards-1153-primitives-e2e
kayg:fix/guards-1153-visibility-doc
kayg:feat/paper-grey-1116
kayg:fix/flake-1165
kayg:fix/flake-1119
kayg:docs/imap-766-plan-v2
kayg:fix/e2e-unique-ports
kayg:t3/paged-search-reconcile-final
kayg:wip/mail1011-final-1115
kayg:docs/tasks-float-port
kayg:perf/editor-first-paint-1c
kayg:feat/imap-notes-fetch
kayg:feat/imap-notes-projection
kayg:feat/imap-notes-readonly
kayg:feat/imap-notes-auth
kayg:feat/imap-notes-server-foundation
kayg:wip/mail1011-txn-ownvocab-1115
kayg:wip/mail1011-txn-novocab-1115
kayg:perf/p1117-final-harness
kayg:perf/single-shot-repeats
kayg:port/tasks-matrix
kayg:wip/mail1011-txn-1115
kayg:fix/static-gates-1155
kayg:feat/files-s1-identity-r7
kayg:fix/files-r7-idle-loop
kayg:fix/daily-train-1152
kayg:port/notes-float
kayg:fix/editor-tables-test-types
kayg:port/notes-float-listscript
kayg:feat/tasks-actions
kayg:port/notes-float-phone-preload
kayg:perf/sound-comparator
kayg:port/notes-float-listscroll
kayg:port/notes-float-budgets
kayg:port/notes-float-suite-fix-b
kayg:port/notes-float-sidebar-fix
kayg:port/notes-float-trim
kayg:port/notes-float-3-lists
kayg:fix/attachments-meta-capability
kayg:docs/carddav-writes-v2-plan
kayg:feat/contacts-companion-pure
kayg:issue/carddav-read-perf-fix-r2
kayg:issue/carddav-read-r2
kayg:port/notes-float-devsync2
kayg:review/calendar-2
kayg:review/switcher-a-pills
kayg:port/notes-float-switcher-a
kayg:port/port-tables-2
kayg:review/switcher-ends
kayg:wip/whiteboard-s1-1114
kayg:port/port-tables
kayg:wip/mail1011-perfneutral
kayg:review/photo-tint
kayg:port/notes-float-shell
kayg:wip/local/collections-db
kayg:wip/local/mail-p1
kayg:wip/local/cold-growth-on-tiering
kayg:wip/local/tiering-v3-s1
kayg:wip/local/wal1051-cap
kayg:wip/local/tiering-v3-s1-resume
kayg:wip/local/index-position-startup-scan
kayg:port/notes-float-flat
kayg:port/notes-float-promote
kayg:wip/handover/mail1011-candidate
kayg:wip/handover/files-s1-candidate
kayg:port/notes-float-shell-only
kayg:port/notes-float-perf
kayg:feat/whiteboard-s1
kayg:feat/tiering-v5
kayg:fix/app-switch-hitch
kayg:wip/local/files-s1-dev-v4-final
kayg:feat/files-s1-dev-v4
kayg:fix/c2-glass-shared
kayg:feat/flat-lists
kayg:wip/handover/whiteboard-s1-resume
kayg:wip/att-lazy-861
kayg:feat/switcher-browse
kayg:wip/att-lazy-860
kayg:feat/tasks-float
kayg:recovered/flat-backup-candidate
kayg:perf/stalls-1054-kc
kayg:land/ai-toolbar
kayg:feat/collections-db
kayg:feat/collections-db-fixes
kayg:codex/mail-1011-redesign-20261111
kayg:fix/ai-toolbar
kayg:backup/macos-vm/st3-head
kayg:perf/trim-candidate-phonestack
kayg:feat/switcher-three
kayg:fix/1051-index-idle-checkpoint
kayg:perf/stalls-1054-kb
kayg:perf/stalls-1054-k
kayg:perf/stalls-1054-r3
kayg:fix/c2-contrast-tail
kayg:perf/stalls-1054-r3-preview
kayg:feat/collections-before
kayg:feat/tiering-v4
kayg:fix/timelog-caret
kayg:wip/local/tasks-actions
kayg:docs/tasks-writes-v2-plan
kayg:st3-r3
kayg:feat/pass8
kayg:review/calendar-2-before-1111
kayg:wip/tiering-v3-cold4
kayg:perf/stalls-1054-r2
kayg:fix/suite-A4
kayg:fix/suite-A5-probe
kayg:fix/suite-A6
kayg:fix/suite-A3
kayg:fix/suite-A2
kayg:fix/suite-A5
kayg:fix/suite-A1
kayg:wip/local/attachments-861-fix
kayg:feat/contrast
kayg:wip/local/ports-861
kayg:storage/wal-checkpoint-off-save-1051
kayg:wip/local/mail-1011-reconcile-20261110
kayg:feat/style-sheet-fixes
kayg:feat/money-round
kayg:perf/stalls-1054
kayg:wip/tiering-v3-cold5
kayg:t3/mail-1011-liveness
kayg:feat/iphone-fixes
kayg:feat/notes-approve
kayg:wip/local/shrow-work
kayg:feat/files-s1-identity
kayg:feat/quickfix
kayg:wip/tiering-v3-cold
kayg:wip/local/shared-row-swipes
kayg:backup/macos-vm/pfx-B
kayg:backup/macos-vm/pfx-C
kayg:backup/macos-vm/pfx-D
kayg:feat/contrast-r1
kayg:feat/tiering-v3-s2-tags
kayg:feat/folder-drop
kayg:t3/photos-s1
kayg:feat/tiering-v3-s1-namespace
kayg:wip/local/photos-s1
kayg:t3/photos-plan-slice-one
kayg:recovered/backup/p1b-61505
kayg:t3/paged-search-reconcile
kayg:t3/smooth-pane-transitions
kayg:t3/index-position-startup-scan
kayg:fix/private-staging-759b-r2
kayg:backup/macos-vm/hk/hk1009/pr877
kayg:backup/macos-vm/hk/hk1009/pr878
kayg:docs/undo-block-ids-plan
kayg:fix/undo-768
kayg:backup/macos-vm/hk/hk1009/pr875
kayg:backup/macos-vm/hk/hk1009/pr904
kayg:proto/block-identity-v7d
kayg:backup/macos-vm/hk/hk1009/pr846
kayg:backup/macos-vm/hk/hk1009/pr860
kayg:backup/macos-vm/hk/hk1009/pr861
kayg:backup/macos-vm/hk/hk1009/pr849
kayg:backup/macos-vm/hk/hk1009/pr848
kayg:backup/macos-vm/hk/hk1009/pr853
kayg:backup/macos-vm/hk/hk1009/pr957
kayg:backup/macos-vm/hk/hk1009/pr893
kayg:backup/macos-vm/hk/hk1009/pr889
kayg:backup/macos-vm/hk/hk1009/pr902
kayg:docs/imap-notes-plan
kayg:docs/quota-plan-2
kayg:fix/parallel-test-flakes
kayg:docs/calendar-backend-v2-plan
kayg:feat/calendar-ical-converter
kayg:backup/macos-vm/hk/hk1009/pr808
kayg:docs/contacts-import-v2-plan
kayg:issue/610-pm-midnight
kayg:feat/calendar-v2-s1-containment
kayg:backup/macos-vm/hk/hk1009/pr854
kayg:backup/macos-vm/hk/hk1009/pr845
kayg:backup/macos-vm/hk/hk1009/pr917
kayg:docs/dav-recorder-v2-plan
kayg:plan/previews-865
kayg:plan/save-log-durable-entry
kayg:backup/macos-vm/hk/hk1009/pr934
kayg:fix/e2e-data-on-ram
kayg:backup/macos-vm/hk/hk1009/pr888
kayg:feat/appwindow3
kayg:feat/appwindow2
kayg:feat/appwindow
kayg:feat/money-p1
kayg:feat/keys-sheet
kayg:review/calendar-2-themes
kayg:feat/smooth-cursor
kayg:fix/float-style
kayg:review/calendar-2-float
kayg:release/2026-11-06-hotfix
kayg:archive/port/rows-drop-code
kayg:archive/port/rows-actions
kayg:archive/port/rows
kayg:scratch/tasks-894-ui-gates
kayg:review/calendar-2-night-wip
kayg:recovered/flaky/toast-reduced
kayg:release/2026-11-05
kayg:archive/flaky/rows-drop-fixed
kayg:archive/flaky/rows-actions
kayg:archive/flaky/rows
kayg:sim/bm15-final
kayg:sim/bm15-bis-932
kayg:sim/bm15-bis-909
kayg:sim/bm15
kayg:sim/bm15-bis-887
kayg:perf/tiering-option-b
kayg:fix/sw-lazy-precache
kayg:archive/plan/save-log-durable-entry
kayg:mock/money-fix2
kayg:archive/fix/e2e-data-on-ram
kayg:mock/appearance-all
kayg:mock/pill-press
kayg:mock/pill-press-mac
kayg:backup/macos-vm/appearance-after
kayg:mock/auto-swipes
kayg:mock/mail-actions
kayg:backup/macos-vm/mock/mail-actions
kayg:mock/money-static
kayg:archive/review/standards-917
kayg:perf/tiering-761-fix
kayg:mock/type-audit
kayg:mock/third-pane
kayg:feat/contacts-import-v2-s1
kayg:perf/executor-hot-path
kayg:archive/port/hidden-blocks
kayg:archive/port/devices
kayg:scratch/executor-on-894
kayg:scratch/executor-spans2
kayg:scratch/executor-spans
kayg:archive/port/rows-drop
kayg:feat/tiering-761-d-scale
kayg:feat/tiering-761-c-index
kayg:feat/tiering-761-b-reader
kayg:archive/review/sharing-pr3-review-9fec3d1f
kayg:perf/ports-lazy-budgets
kayg:feat/tiering-761-a-migration
kayg:archive/review/sharing-pr3-review
kayg:archive/review/sharing-pr3-review-code
kayg:archive/plan/previews-865
kayg:archive/port/port-attachments-3
kayg:archive/port/contacts-merge
kayg:fix/motion-audit-859
kayg:fix/motion-audit-859-mac
kayg:archive/port/port-pickers
kayg:archive/port/port-tables-2
kayg:archive/port/port-tables
kayg:recovered/local/sharing-s1-pr2-room-snapshot-candidate
kayg:archive/fix/parallel-test-flakes-code-minipc01
kayg:docs/imap-766-readonly-slice
kayg:feat/dav-recorder-v3
kayg:research/788-diagnosis
kayg:archive/fix/parallel-test-flakes
kayg:archive/perf/pr792-cold-index-edit
kayg:docs/sharing-slice-1
kayg:recovered/feat/dav-recorder-v2
kayg:recovered/feat/dav-recorder-v2-edd7bbb
kayg:spike/imap-766-s0-cases
kayg:archive/fix/undo-768
kayg:recovered/feat/dav-recorder
kayg:recovered/feat/dav-recorder-901acd4
kayg:feat/contacts-import
kayg:perf/cold-growth-on-764
kayg:perf/cold-growth-on-tiering
kayg:recovered/feat/tasks-set-status
kayg:feat/tasks-move-reorder
kayg:feat/tasks-delete-promote-duplicate
kayg:feat/carddav-writes
kayg:perf/quota-on-tiering
kayg:perf/quota-simple
kayg:perf/cold-growth-on-quota-stack
kayg:recovered/perf/cold-growth-on-tiering
kayg:feat/calendar-identity
kayg:feat/calendar-event-parser
kayg:feat/calendar-props-maps
kayg:port/glass-when-ring
kayg:recovered/feat/tiering-761-s1-wip-8132a84
kayg:recovered/feat/tiering-761-s1-wip-9da4094
kayg:recovered/feat/tiering-761-s1-wip-724512c
kayg:recovered/feat/tiering-761-s1-wip-66e667e
kayg:recovered/feat/tiering-761-s1
kayg:wip/6by32-01-tier-761-s1-pause-20261030
kayg:spike/imap-766-s0
kayg:wip/6by32-02-calternal-pause-20261030
kayg:wip/8by64-01-review-688-pause-20261030
kayg:wip/6by32-01-verify-744-pause-20261030
kayg:wip/6by32-01-verify-742-pause-20261030
kayg:fix/private-staging-759b
kayg:wip/6by32-01-review-748-pause-20261030
kayg:wip/6by32-01-review-733c-pause-20261030
kayg:wip/6by32-01-review-733b-pause-20261030
kayg:review/calendar-month
kayg:wip/local/bm15-trash
kayg:plan/759b-staging
kayg:review/767b-tests
kayg:review/preview-2026-10-29
kayg:docs/tiering-731-plan
kayg:wip/c6b02-review-733d
kayg:wip/c6b02-bm1-full-a
kayg:docs/deploy-plan
kayg:fix/storage-owner-liveness-642
kayg:fix/storage-fix-7
kayg:feat/tiering-731
kayg:wip/tiering-731-first-attempt
kayg:perf/idle-honest-2
kayg:fix/storage-private-tmp-642-dev
kayg:fix/storage-exact-file-quarantine-642
kayg:perf/one-flush-save
kayg:review/calendar-static
kayg:review/indexing-ring
kayg:review/when-field-2
kayg:proto/block-identity-2-review
kayg:proto/block-identity-review
kayg:review/when-field
kayg:issue/tasks-create-ids
kayg:issue/tasks-create
kayg:review/combined
kayg:review/task-polish
kayg:review/top-buttons
kayg:review/q1-q5
kayg:archive/integ325-293
kayg:archive/integ325-ci
kayg:issue/calendar-adr
kayg:archive/old/train/2026-10-23bk2
kayg:archive/old/train/2026-10-23bk
kayg:issue/469-mockup-9a
kayg:issue/smart-tasks-mockup
kayg:issue/469-menus
kayg:issue/652-signout-flake
kayg:issue/652-history-fix7
kayg:issue/652-history-fix6
kayg:archive/old/issue/spring-check-perf
kayg:issue/spring-check-perf
kayg:issue/659-rename-fast
kayg:archive/old/train/2026-10-21ar
kayg:issue/search-hardening-3
kayg:issue/652-history-fix5
kayg:issue/660-port-sheets-glass
kayg:issue/652-history-fix4
kayg:issue/652-history-fix3
kayg:issue/652-history-fix2
kayg:issue/652-history-flake
kayg:train/2026-10-21an
kayg:issue/settings-admin-port
kayg:issue/search-port
kayg:train/2026-10-20am
kayg:issue/storage-split-fix2
kayg:issue/storage-split
kayg:archive/old/issue/folder-ids-fix
kayg:train/2026-10-20al
kayg:archive/old/issue/folder-ids
kayg:train/2026-10-20ak
kayg:issue/tables-mockup
kayg:train/2026-10-19aj
kayg:train/2026-10-19ai
kayg:issue/469-merge-fixes
kayg:issue/sidebar-band
kayg:archive/old/issue/608-settings-spec
kayg:train/2026-10-19ah
kayg:issue/swipe-offscreen
kayg:train/2026-10-19ag
kayg:archive/old/issue/590-nlp-adr
kayg:archive/old/issue/587-event-after-write-2
kayg:train/2026-10-19af
kayg:archive/old/issue/587-event-after-write
kayg:issue/469-pill-room-c
kayg:issue/469-pill-room
kayg:train/2026-10-19ae
kayg:issue/469-narrow-handle
kayg:issue/397-ios-swipe-2
kayg:issue/469-desk-fixes
kayg:archive/old/issue/auto-update-adr
kayg:issue/469-filter-gap
kayg:issue/469-port-1b
kayg:issue/442-opacity-flake
kayg:issue/327-web-fast-3
kayg:archive/old/issue/469-port-1
kayg:issue/469-port-1
kayg:issue/327-web-fast-2
kayg:archive/old/issue/327-web-fast
kayg:archive/old/issue/425-stt-bench-vq1
kayg:archive/old/issue/445-no-bleed
kayg:archive/old/issue/400-swipe-mockup-2
kayg:issue/426-client-review
kayg:issue/426-client-2
kayg:issue/426-client
kayg:archive/old/issue/476-safe-area-lab
kayg:archive/old/issue/445-top-light
kayg:issue/471-blocks-mockup
kayg:archive/old/issue/448-links-app-2
kayg:archive/old/issue/448-links-app
kayg:archive/old/issue/398-cold-links
kayg:issue/434-442-small-2
kayg:issue/434-442-small
kayg:archive/old/issue/398-unload
kayg:archive/old/issue/445-bottom-band
kayg:issue/445-bottom-band
kayg:issue/351-rem-3
kayg:issue/351-rem-2
kayg:issue/351-rem
kayg:archive/old/issue/327-first-note
kayg:issue/395-width-phone
kayg:archive/old/issue/327-typing
kayg:issue/396-ios-edges
kayg:issue/397-ios-swipe
kayg:archive/old/issue/327-notes-index
kayg:issue/345-347-contrast-empty-2
kayg:archive/old/issue/44-arenas
kayg:issue/44-arenas
kayg:archive/integ325
kayg:archive/old/issue/327-perf-harness
kayg:archive/old/issue/44-thp
kayg:issue/44-thp
kayg:archive/old/issue/285-sticky-pills
kayg:archive/old/issue/44-trim-3
kayg:issue/44-trim-3
kayg:archive/old/issue/165-cards
kayg:archive/old/issue/165-picker-2
kayg:archive/old/issue/212-multi-select
No reviewers
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal!1161
Loading…
Reference in a new issue
No description provided.
Delete branch "port/tasks-float-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tasks Float port, slice 1 (plan: #1160,
docs/plans/tasks-float-port.md; mockup #1077feat/tasks-float). The desktop Tasks screen is now drawn in the same Float window Notes has, with today's content inside. Not merged; for the orchestrator.What changed
tasks/TasksWindow.svelte(new): mounts the sharedWindowLayoutwith Tasks'Sidein the sidebar slot and the sharedWindowDock(account, app switcher, search) as its foot; the list card (Middle) and the open task's card sit side by side in the window.SideFoot.svelteis deleted; TasksScreen's desktop.shell/.paneCSS and markup go. Phone branch untouched.WindowLayout:listis optional (Tasks has no flat list column) and a[data-win-area]slot that fills the window's inside on the window's own spring. Notes' use is unchanged.window/SideDrawer.svelte(new, pure move out ofShell): the sidebar drawer is one shared part; Notes uses it with the same markup/classes ([data-drawer],[data-drawer-scrim]).window/side-width.svelte.ts(new): the sidebar's remembered width/handle for an app with no list. (Shell still has its own inline copy of the list half; follow-up when its list width is split out.)sidepref; ⌘\ / ⌘. throughcommands; zen is local; no root attribute/custom property written per open or frame (the #1077 perf cause).perf/budgets.json: lines at measured sizes (TasksScreen 13.15 → 13.7, index 232 → 232.026, hash jitter on others); total = sum.tasks-window.spec.ts(new),tasks-lists.spec.ts:91moved from the old SideFoot tabs to the dock's switcher.Decisions
built: falseinlib/apps.ts: it is reached by address (as on prod) and shows in the switcher only while you are in it. Listing it in Notes' switcher is a release decision for kayg. Switching specs therefore go Notes →#/tasks→ the dock's Notes pill.Gates (results in the comments below)
svelte-check 0 errors; vitest 319 pass; tasks-*, app-switch, switching, keys-no-motion, pane-transition, window-layout, composer-tasks, task-check on chromium-1440/390 (dev-01) and webkit-1440/390 (dev-02); bundle gate (first paint 232.025 KB brotli ≤ 240); real Safari frames Notes↔Tasks vs dev, ABAB; product vs mockup shots; pooled typing/list ABAB on perf-01 (queued).
🤖 Generated with Claude Code
Evidence 1: functional gates and bundle
svelte-check (
bun run check, dev-02): 0 errors, 19 warnings (same files as dev). vitest (bun run test): 34 files, 319 tests pass.Playwright,
bunx playwright test e2e/tasks- e2e/task-check e2e/app-switch e2e/switching e2e/keys-no-motion e2e/pane-transition e2e/window-layout e2e/composer-tasks --project=<p> --workers=2, server binary built from this base (dev245875408; Rust unchanged):tasks-tick.spec.ts:61(webkit-390)Failures, each checked against dev (a worktree at origin/dev, same binary):
window-layout.spec.ts:112(chromium-1440 and webkit-1440): also fails on dev (webkit-1440, settled-box race). Not mine.tasks-swipe.spec.ts:74(Matrix Someday swipe, chromium-1440): also fails on dev (chromium-1440).tasks-tick.spec.ts:61/49/72/107(several projects): flaky on dev as well;:61webkit-390 repeated ×6 each: 1 failed on this branch and 1 failed on dev.tasks-card.spec.ts:68(Someday in More, chromium-1440):--repeat-each=6on this branch 6/6 pass, on dev 6/6 pass (first run was a flake).tasks-window.spec.ts(mine): first runs failed on my own spec bugs (it left the shared sidebar preference hidden, which then failed threewindow-layouttests; it counted Notes' still-built window;data-input/data-readyboot flags). Fixed;tasks-window×6 on chromium-1440: 30/30 pass.tasks-lists.spec.ts:91asserted the old foot's tablist: moved to the dock's switcher.Bundle (
bun run build+node scripts/bundle-size.mjs, brotli): first paint JS 232.025 KB (dev 231.946, +0.08; cap 240), first paint CSS +0.1 KB, all JS 548.69 (dev 547.86), TasksScreen chunk 13.70 (dev 13.15). Lines inperf/budgets.jsonset to the measured sizes, total = sum.Evidence 2: real Safari on macos-01 (Safari, 1440×900, Mac lock held with an EXIT trap that quits Safari and safaridriver; blank page 60 rAF/s check passed; #260 shows no benchmark window then)
Server:
calternal-s4(the Mac VM's staged binary; the arms differ only indist), both arms seeded with 40 notes and 14 Today tasks. ABAB inside one session, 6 runs per arm, each run a fresh page, gestures recorded as rAF deltas for 1.6 s. Idle baseline in the same runs: max 27 (tf) / 35 (dev), none ≥ 50 ms.#/tasks/today; chunk fetch + build) session 1Reading: the building of the screen is not slower (second visit: flat, 23 ms both) and the way back is clean on both. The first visit has 100 to 800 ms frames on dev AND on this PR (the lazy chunk's fetch and parse, which prod already has: ADR 0066 keeps Tasks out of idle warming); the two sessions disagree on which arm is worse (151 vs 207, then 448 vs 195), so I read it as the same pre-existing cost with noise, not a regression from this PR, but I did not isolate the chunk cost. If kayg wants the first visit cheap, that is a change to ADR 0066 (idle prefetch of the chunk) and out of this slice.
Shots (real Safari; product = this PR, mockup = https://preview.calternal.cloud/tasks/chrome.html; sample data only). Differences vs the mockup that are NOT this slice: the list header (title count, one layout pill, ⋯, ✦ slot), the Lists/Projects pill and sections in the sidebar, the toolbar pill, groups. The dark product shots were taken after the light "closed" shot, in the same Safari profile, so the sidebar is hidden in them (the shared preference persisted); it is not a bug.
Evidence 3: iPhone Simulator (std, own sim iPhone 18 Pro iOS 27.0, deleted after; std sim lock), light and dark, 390 pt
The phone branch of TasksScreen is untouched by this slice (stack, PhoneFoot, ListDock stay). Shots: this PR
tf-*, devdev-*, the mockupmockup-*. Sample data only. One difference between this PR and dev in the first light pair: the status-bar strip shows sky (this PR) vs a paper strip (dev) and the sky's cloud layer is not painted yet in this PR's shot; both were taken 10 s after openurl on a fresh Safari tab, and no phone code changed, so I read it as backdrop paint timing, not a regression, but I did not re-shoot to prove it.Evidence 4: re-run of the functional gates on the final head (
b7260232c)tasks-tick.spec.ts:61webkit-390; flaky on dev too: ×6 repeat, 1 fail on this branch, 1 fail on dev).tasks-tick.spec.ts:61(chromium-390, same flake) andtasks-swipe.spec.ts:74(Matrix Someday swipe; fails on dev as well).window-layoutall pass on this head (the earlier failure of:112was dev's own, see Evidence 1).Evidence 5: re-gate on dev
42c219afdmerged in (head93573c938; web code unchanged since the merge79aa906ad)I merged
origin/dev(42c219afd, includes the #1160 plan) into the branch: one conflict,perf/budgets.json(took dev's lines, re-measured below). Rust is unchanged by this branch, so one server binary (built from this tree, sha25696f93198a78f…) serves both arms everywhere.Functional gates
bunx playwright test e2e/tasks- e2e/task-check e2e/app-switch e2e/switching e2e/keys-no-motion e2e/pane-transition e2e/window-layout e2e/composer-tasks --project=<p> --workers=2tasks-board:110,tasks-tick:49,window-layout:112)tasks-board:69,window-layout:112)tasks-tick:61)tasks-swipe:74,tasks-card:68)tasks-board:42,tasks-tick:107,window-layout:187)Every failing test, run alone with
--workers=1 --repeat-each=10on this branch AND on dev (a worktree at origin/dev, same binary): 10/10 pass on both, for all oftasks-tick:49,:61,:107,tasks-board:42,:69,:110,tasks-card:68,window-layout:112,:187,tasks-swipe:74(on chromium-1440 and chromium-390). The same full-run command on dev itself also fails a different handful each run (dev, chromium-1440:tasks-card:68,tasks-swipe:64; dev, webkit-1440:tasks-tick:72; dev chromium-390 61 pass). So these are the known full-run flakes (workers=2, parallel specs on one server), different on every run, on both sides; none reproduces alone on this branch or on dev.tasks-swipe:74does not fail on dev in isolation any more (10/10 on chromium-1440, ×10 on dev and on the branch): it fails only inside the full run, as other specs do, so I did not open a separate stability issue for it; the flaky-run pattern above is the stability item (the earlier lane's "fails on dev as well" is true only for the full run).Static gates
bun run check, dev-02 and dev-01): 0 errors, 19 warnings (same as dev).bun run test): 34 files, 319 tests pass.bash perf/web.sh --bundle-only --gate, dev-01, rc 0 on this head): first-paint JS 232.642 KB brotli (dev 232.518: +0.124; cap 240), first-paint CSS 19.111 (dev 19.032: +0.079; cap 22.1), TasksScreen chunk 13.738 (dev 13.140: +0.598), total JS 588.101 (dev 587.223). Sizes were identical on dev-02 (aarch64).perf/budgets.jsonlines are set at the measured sizes (+0.001); 14 other lazy chunks moved by hashed-import jitter (0.001 to 0.06), total = sum of lines (589.905).Real Safari frames, Notes ↔ Tasks (macos-01, Mac lock atomic, Safari and safaridriver quit by the EXIT trap; 1440×900; ABAB, 8 runs per arm, one session; dev = origin/dev
42c219afd, this PR =79aa906adweb code)Blank page: 132 frames in 2 s (mean 18.0 ms), then each run is a fresh page; rAF deltas for 1.6 s per gesture.
#/tasks/today: lazy chunk fetch, parse, build)Reading: nothing this PR adds is ≥ 50 ms: the switch both ways is as clean as the idle baseline once the chunk is there. The first visit by address is a 500 ms stall on dev and on this PR alike (8/8 runs each): it is today's lazy
TasksScreenchunk (ADR 0066 keeps it out of idle warming), not the window. Per the ≥ 50 ms rule I looked for a fix inside this slice and there is none that is only mine: Tasks is not in Notes' switcher yet (built: false, reached by address), so there is no control to carrydata-preload-uiintent warming, and idle-warming the chunk is an ADR 0066 change that also moves Notes' idle cost. Decision for kayg: when Tasks is listed in the switcher (the release step), give its pilldata-preload-ui="tasksScreen"(pointer intent fetches the chunk before the click, no idle cost); until then the first entry by address stalls as it does on prod today.Product vs the approved mockup, real Safari (light and dark, sample data)
Computed values (Safari
getComputedStyleof the same element in both pages, 1440×900, the task open):product= this PR,mockup= https://preview.calternal.cloud/tasks/chrome.html. Slice-1-owned shell: window, sidebar, dock, glass cards. The rest is slices 2 to 4 (list header, Lists/Projects pill and tree, toolbar pill, rows).light / darkwhen they differ)float.svelte.tsWINDOW_SIDE default 260 for Tasks; product keeps Notes' 228 (Notes product also differs from its mockup, 320)NotesSide); mockup--fs-title22.fg-glass(oklab); product tints the card (--glass-pane); same family, not the same layerMatches: the window's gutters, the title line (52), the dock row, both cards' radius (20) and top/height, the glass family, the row title type. Open differences owned by this slice, both a choice for kayg (I followed the shipped Notes window): (1) the sidebar title is 15 px as Notes' (mockup 22 px) and (2) the sidebar is 228 px wide as Notes' (the mockup's per-app default for Tasks is 260; its Notes default is 320, which the shipped Notes also did not take). Both are one-line changes (
TasksWindowbrand CSS,sideWidth("cal.tasksSideW", 260)). The dark mockup needs its own preference (window.__cal.setPref("theme","dark"); it ignores?theme=), done here.Shots follow (product
product-*, mockupmockup-*; the "closed" shots hide the sidebar with the shared preference and put it back).Perf
Ticket
tf1is queued on perf-01 (behind mail-1011 and daily-1116c-r); pooled ABAB ×3: Notes typing + list scroll (harness as on dev) and the Tasks list scroll, the card open/close and typing in Notes after a Tasks visit, each dev / dev2 (control) / this PR. Results in the next comment.product-tasks-light
product-task-open-light
product-tasks-closed-light
mockup-tasks-light
mockup-task-open-light
product-tasks-dark
product-task-open-dark
product-tasks-closed-dark
mockup-tasks-dark
mockup-task-open-dark
Evidence 6: iPhone Simulator (std, own sim iPhone 18 Pro iOS 27.0, deleted after; std sim lock), light and dark, 390 pt, on head
93573c938(web code as79aa906ad)Shots: this PR (
tf-lists,tf-today,tf-open), dev (dev-today), the mockup (mockup-today,mockup-open); sample data. This slice leaves the phone branch of TasksScreen untouched (phone stack, PhoneFoot, ListDock), and the product's Today shot is pixel-identical in layout to dev's (the first lane's sky/strip difference did not reproduce: both show the same paper strip now). Phone differences vs the mockup (inset sheet, sidebar-as-first-screen with the shared tree) are slice 5, by plan.tf-lists-light
tf-today-light
tf-open-light
dev-today-light
mockup-today-light
mockup-open-light
tf-lists-dark
tf-today-dark
tf-open-dark
dev-today-dark
mockup-today-dark
mockup-open-dark
Evidence 7: perf, pooled ABAB on perf-01 (
~/bin/perf-turn tf1, perf-02's lock held by a unit for the turn and released after; dev = origin/dev42c219afd, dev2 = the same dev build as the control, new = this PR79aa906adweb code; one server binary for all arms; chromium headless 1440×900, 4× CPU throttle, CDPThreadTime; fixture: 40 notes + 160 undated tasks)Pooled over sessions, each arm 4 runs per session, ratios to the session's dev mean; the control column is dev2 vs dev (the noise floor). Session 1's Notes half failed to start (the harness's playwright path was missing: a staging mistake, fixed for sessions 2 and 3), so Notes = 2 sessions, Tasks = 3 sessions.
Notes (the Notes Float harness: typing + list scroll), 2 sessions × 4 runs per arm
Tasks (new script
perf-01/tasks-cpu.mjs: Anytime list of 160 tasks scrolled with the wheel; a card opened and closed; typing in Notes after a Tasks visit), 3 sessions × 4 runs per armVerdict: NOT zero regression. Notes and the card/typing paths are flat inside the control's noise. The Tasks list scroll costs about +4.6% main-thread CPU (+7.8% script) over dev, outside the control (-0.1%). Per kayg's rule this blocks the merge until fixed or accepted.
What I found (dev-01 CPU profiles of the same scroll, unminified builds, 8 runs per arm,
perf/…/tasks-prof.mjs): about 20% of the whole scroll is the adaptive glass recompute on both sides (recomputeBehind→watchScrollers→elementsFromPoint, about 2.0 s of 10.4 s), +6% on this PR, and Svelte's effect flush is +16% (about +0.2 s): the window's extra stacked layers (global-layer pieces, window box, cards) make each hit test and each glass recompute a little dearer. Root inclusive time dev 10.37 s, this PR 11.06 s (+6.7%). Two cheap CSS candidates did not help: droppingtransform: translateZ(0)on the list card (11.05 s) and replacing it withcontain: layout paint style(11.38 s, worse). It is the same shell Notes has, so I did not find a slice-local fix in the time I had; candidates for the next round: makewatchScrollersskip scrollers inside the Tasks window's own cards (it re-hit-tests per scroll end), or give the Tasks list the Notes list'scontain: strict. I did not start slice 2: slice 1 is not clean on perf, and a stacked slice would inherit the regression.Evidence 8: the Tasks list-scroll regression, found and fixed (head
d67032e81); the pooled perf gate is queuedCause (dev-01, deterministic counts over the gate's exact 40-step wheel scroll of the Anytime list, 160 tasks, 4× throttle)
Counters injected before the app loads (
elementsFromPointandgetComputedStylecalls,transitionendby property,scrollenddispatches, DOM mutation records, glass recompute runs, CDPRecalcStyleCount):42c219afd)36d038c90)bcf87420c)transitionend(allopacityon.grip)elementsFromPointcallsgetComputedStylecallsEach task row fades its grip in or out (an
opacitytransition) as the list scrolls under the still pointer. The glass module bumpedboxGenon everytransitionend, so every scroll-end recompute then re-ranwatchScrollers: hit tests over each glass plus a computed-style read for every ancestor. That is the ~20% of scroll time the earlier profile found inrecomputeBehind → watchScrollers → elementsFromPoint. dev pays it too, and the Tasks window's deeper stack of layers makes each hit test and style read cost more. The scroller was registered once (DIV.scrollonly, not twice), and the same 2 glasses are registered on both sides (the list'smorphbar and the hiddenBulkBar). So the Tasks list'scontain, or a second registration, was not the lever.Fix (shared glass,
packages/ui/src/lib/behind-glass.ts)A transition that only repaints (
opacity, every*color,box-shadow/text-shadow,fill,stroke,filter/backdrop-filter, the glass's own--glass-busy) no longer bumpsboxGen. It moves no box and changes no hit test (an element at opacity 0 is still hit;visibilityis deliberately not in the list). Box-moving transitions (transform,width,left, …) still bump it as before. Nothing is dropped: one glass, the adaptive ink still recomputes at every scroll end (the runs count above), the glass never fades. New specadaptive-glass.spec.ts"a paint-only transition ending does not re-scan the scrollers; a moving one does".Commits:
bcf87420c(fix),6c421dda8(shorter pattern, the same properties),b3fcc4ce5(spec),d67032e81(six lazy budget lines follow hashed-import jitter).dev-01 pre-check (not the gate; dev-01 load 11–21; tasks-cpu.mjs, minified, 3–4 runs per arm)
Tasks list-scroll CPU: dev 9316 ms, slice before 10409 (+11.7%), slice + fix 9024 (−3.1% vs dev); script 4130 / 4604 / 2652 (−36%); recalc style 175 / 194 / 202 (+15%: more recompute runs fit into the scroll now that each costs ~2 ms instead of ~70 ms). Two of 24 runs timed out under the host's load: one fix run on a card open and one dev run on the return to Notes. Neither reproduced.
Functional gates
bunx playwright test e2e/tasks- e2e/window-layout e2e/app-switch e2e/switching e2e/adaptive-glass e2e/glass --project=<p> --workers=1atbcf87420c:At
b3fcc4ce5(with the new spec),e2e/adaptive-glass e2e/glass: chromium-1440 29 passed, chromium-390 26 passed, webkit-1440 29 passed, webkit-390 26 passed.Static (dev-02): svelte-check 0 errors / 19 warnings (as dev); vitest 34 files, 319 tests pass.
Bundle (
bash perf/web.sh --bundle-only --gate, dev-01, atd67032e81): rc 0. first-paint JS 232.585 KB (dev 232.518). Six lazy chunks moved by hashed-import jitter only, and their lines were raised to the measured size + 0.001 (attachments, lazy, ListSearch, panes, tables, tree-to); total = sum of lines (589.935).Real Safari, Tasks list-scroll frames (macos-01, Mac lock atomic, Safari and safaridriver quit by the EXIT trap; 1440×900; Anytime list of 160 tasks; 24 wheel steps over 3 s; dev vs the fix
bcf87420cweb build (same properties as head); ABAB, 8 runs per arm, two sessions)Pooled over both sessions: frames ≥ 50 ms, dev 4 and fix 2, each a single frame in one run. The blank page before each session also showed a 98 ms and a 121 ms frame with no app at all, so that is this VM's noise floor. No ≥ 50 ms frame repeated in the same place.
Perf gate
Ticket
tf1bon perf-01: pooled ABAB ×3, Notes typing + list and Tasks list/card/typing, with dev / dev2 (control) / headb3fcc4ce5web build (the same web code asd67032e81). My first turn (06:15 IST) failed before measuring: every arm, dev included, timed out waiting for the Notes list. The Tasks fixture I had seeded on dev-01 does not load its Notes list on perf-01. Locks were released at once. Requeued: the Tasks fixture is now seeded inside the turn from perf-01's own Notes fixture with perf-01's own server binary, and the turn stops early if the Notes harness fails. Results will follow in the next comment.Evidence 9: perf gate passes. Tasks list scroll is now below dev (perf-01, pooled ABAB ×3, head
d67032e81)PERF_TURN_FRONT=1 ~/bin/perf-turn tf1bon perf-01 (orchestrator's OK). perf-02's lock was held by asystemd-rununit for the whole turn (07:15–08:02 IST) and released at the end. Arms: dev = origin/dev42c219afd; dev2 = the same dev build (the control); new = this PR's web build atb3fcc4ce5(d67032e81only adds budget lines). One server binary serves every arm. The Tasks fixture was seeded inside the turn from perf-01's own Notes fixture (40 notes in the list, plus 160 undated tasks). Chromium headless 1440×900, 4× CPU throttle, CDPThreadTime. 3 sessions × 4 runs per arm, every run as a ratio to its session's dev mean.Notes (typing + list scroll), 12 runs per arm
Tasks, 12 runs per arm
Verdict: Tasks list-scroll CPU is −2.7% against dev; the whole 95% CI is below dev (upper bound −1.5%), with the control at +0.35%. Before the fix it was +4.61%. Script is −41%. Notes typing and list stay flat: every Notes number is inside the control's own spread, and the upper CIs of the CPU metrics are +0.22% and +0.21%. The card and typing-after-Tasks paths are inside the control too (the card's dev2 control is −5%, which is wider than any difference here). Tasks list recalc style is +2.3% against a +2.0% control. It comes from more of the now-cheap scroll-end recomputes fitting into the scroll (the dev-01 counts in Evidence 8). It is time inside the CPU total, which went down.
Notes on method: the first turn (06:15 IST) failed before measuring because the Notes list in the fixture I had seeded on dev-01 never loaded on perf-01. The fixture is now seeded inside the turn on perf-01, and the turn stops early if the Notes harness fails. The
--layout inertcomparator table does not apply here: the Notes Float pooled harness is the gate for these metrics (preamble).The sidebar title (15 vs 22 px) and width (228 vs 260) keep Notes' shipped values: one sidebar across apps, as the brief says. The orchestrator will raise it with kayg. Slice 2 is not started.
Merged into dev with
--no-ffatea57b84b9(orchestrator, 16 Nov ~08:15 IST). I checked the product-vs-mockup shots myself. The perf gate passes after the behind-glass fix (Tasks list scroll −2.69% CPU vs dev, control +0.35%; Notes typing/list flat). Slice 2 follows.Pull request closed