Trash search: open results read-only with Restore (Q2) #694
Closed
kayg
wants to merge 1 commit from
issue/trash-search-open into dev
pull from: issue/trash-search-open
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:port/tasks-float-1
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!694
Loading…
Reference in a new issue
No description provided.
Delete branch "issue/trash-search-open"
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?
A Trash list-search result currently calls
restoreNoteas soon as it is tapped or selected with Enter. Both now callopenTrashed, which reads the deleted text and shows a read-only preview with an explicit Restore button. Trash row titles use the same function.The requested base has no existing row-open handler: its titles are plain text beside Restore/Delete buttons. This change adds the shared row preview as well as fixing search. It uses the existing
notes.link-statesresponse, limited to the first 16 KiB, and labels the content as a preview. The dialog uses native modal focus handling and Escape dismissal; late read responses cannot overwrite a newer preview.New browser tests cover touch, Enter, and row opening, assert no restore request and actual server Trash membership before Restore, then verify restoration against the server. No old test asserted search auto-restore.
Validation through one build slot: svelte-check has 0 errors and 14 existing warnings; web unit tests have 6 passes; targeted list-search, trash-search and trash specs have 42 passes and 38 layout skips across Chromium/WebKit at 390/1440, with one worker. Matching pinned browser revisions were installed after the first launch-only failure. No full suite or perf run was performed.
Refs #692. Do not merge as part of this job.
Starting the approved Q2 refresh on branch issue/trash-search-open-2 in ~/wt/trash-694b, from origin/dev
26388703. I will preserve the newer phone lists, verify Trash row/search/bulk Restore and Undo on desktop and phone, and run the requested four browser projects plus unit, type, lint and bundle gates. No merge or deploy.Finding: cherry-picking
8824bdedonto dev26388703conflicted in App.svelte and TrashList.svelte. Resolved by keeping dev's lazy sign-in/context menu, row selection, two-finger selection and phone list code, while adding the shared read-only Trash preview. The preview itself now loads on demand to preserve dev's bundle work. Existing coverage skips Info Delete/Undo at phone widths; bulk Restore asserts row removal and toast only. Adding server-backed content/metadata, restored-list and Undo assertions.Finding: initial frontend gates pass: editor typecheck, web typecheck (0 errors, 14 warnings), lint (15 checks), web units (6), selected editor units (53), and toast units (14). Bundle gate fails: web.bundle.all_js_brotli p95 301 KiB > 300 KiB (308165 bytes); first JS is 245644 bytes and passes its 240 KiB limit. Measuring untouched dev next to distinguish inherited bundle size from this change. Native build/Trash tests are in progress under one build slot.
Finding: native server build passes; targeted Trash unit run passes 28 tests (0 failed). Added desktop/phone UI Delete→Trash row→preview→Restore coverage, phone search click/tap/Enter coverage, exact restored full-text/frontmatter and path checks, All notes/tag-list checks, single and bulk Restore Undo, and browser page-error/crash assertions. Browser plugin is unavailable, so validation uses the repository's real-server Playwright harness, one worker under build-slot.sh. Screenshots and logs are outside the repository in /tmp/trash-694b.
Finding: untouched dev
26388703passes the bundle gate at 307045 bytes of total Brotli JavaScript, leaving 155 bytes under the 307200-byte budget. This branch is 308165 bytes, an increase of 1120 bytes and 965 bytes over budget. First-load JavaScript grows by 225 bytes and remains under its budget. This is a real gate failure from the added feature, not an inherited failure. I am preserving the budgets and recording it explicitly; I will not hide the failure or expand this Trash refresh into unrelated bundle changes. The related missing-link/Trash preview backend tests also pass: 9 tests, 0 failed. The requested browser matrix is now running 196 cases with one worker.Finding: the first desktop row Restore test exposed a test synchronization error. The trace shows successful Delete and Restore, followed by clicking the earlier Delete notification's Undo while the Restore notification was queued in the desktop bar. The restored note stayed live, as expected for undoing its earlier Delete. The test now waits for the notification whose text is “Restored [this title]” and clicks its Undo, rather than any visible Undo. No timing sleeps or product notification changes are needed. The expanded bulk Restore/Undo test already passes on desktop.
Evidence: the final Chromium row flow passes at both 1440 and 390 pixels, including UI Delete, read-only preview, Close/Escape, explicit Restore, exact text/frontmatter and path preservation, Undo, and return to All notes and the tag list. Screenshots are attached here, outside the repository. The remaining WebKit matrix is still running.
Finished the requested refresh on issue/trash-search-open-2. Head:
39bc79b4f0. Replacement PR: #706, targeting dev and superseding #694. Conflicts are resolved with dev's newer list/selection code preserved. No merge, deploy or issue closure.The final browser matrix passes (79 skipped; 117 passed (5.4m)); related unit, typecheck and lint gates pass. No native WebKit crash was observed. The initial four new row-test failures came from an unscoped Undo lookup; the final full rerun uses the matching Restore notification and passes.
Blocked gate: bundle total Brotli JavaScript is 308165 bytes, 965 bytes above the unchanged 307200-byte budget. Baseline dev is 307045 bytes. First-load JavaScript passes. The replacement PR is WIP and the blocker is explicit in its body.
Screenshots: #694 (comment) . Logs and artifacts remain under /tmp/trash-694b, outside the repository.
Gate output verbatim:
Typecheck, lint, frontend units and bundle gate: verbatim output
Native build and Trash units: verbatim output
Related link-state units: verbatim output
Final Trash, search and lists browser matrix: verbatim output
Branch
issue/trash-search-open-3, head1f35cecf3e(from39bc79b4).Changes: Trash preview now uses the note editor in preview mode on the note page (desktop note pane, phone pushed screen), title once (the H1), "In Trash · read only", Back + accent Restore pills, Escape closes, plain keys no longer reach app shortcuts. Toasts: Sonner stack
expand(never overlap); a new bar toast replaces the one showing (inbar.test updated).Gates (host, workers=1): specs trash, trash-search, list-search, select-rows, toast-bar on chromium-1440/390, webkit-1440/390:
97 passed, 51 skipped, 0 failed. packages/ui toast e2e:24 passed; primitives vitest:38 passed.bun run --cwd apps/web check:svelte-check found 0 errors and 14 warnings in 8 files(warnings pre-existing). lint:Filter motion: 415 source files checked; stable function lists.Bundle (
perf/web.sh --bundle-only --gate): total JS brotli 307940 B (limit 307200:over budget: web.bundle.all_js_brotli@0: p95 301 > 300, 740 B over;39bc79b4was 308165, so -225 B). first-load JS brotli 245516 (limit 245760 ok; was 245644). plugins 37.9 KB ok, first css 20.7 KB ok. Dev has 155 B headroom, so the feature still does not fit without cutting ~740 B elsewhere.Frames at 4x CPU (Chromium, rAF deltas): 390 open p50 16.7 ms, max 33 ms (warm), close max 17 ms. 1440 open/close max 117-150 ms with 4 frames over 50 ms, same as switching to an ordinary note in the same setup (baseline 4 frames over 50 ms, max 133 ms).
Update, head
3f0ea54d91: round chevron back button (same row as list screens), flat pill (no light square), links drawn as links (inert), one toast at a time in bar and phone stack. Specs 97 passed / 0 failed on all four projects; check 0 errors; lint ok; primitives 38 unit + 24 e2e pass. Bundle: total JS brotli 308272 (limit 307200, over by 1072; was 307940 at the previous push, 308165 on39bc79b4); first-load 245665 (ok). Links cost ~157 B and toast replacement ~74 B of that.Starting Train BM1 on branch train/2026-10-29-bm1 from current origin/dev
d83e54dbe5. Merge order: PR #747c760aa00, phone frost92f0e49f, Trashb96ef316. Will keep bundle budgets unchanged, run all requested gates, split browser projects across compute02 and 10by32-02-std, and open a PR to dev without merging or deploying. Evidence stays in issue comments.Merged the three requested heads in order. One modify/delete conflict: Trash added a loader in lazy.ts, removed by #747. Resolved by registering TrashPreview in lazy-ui.svelte.ts and rendering its reactive resolved component in Shell and PhoneStack. It now shares idle warming and CSS readiness with other lazy surfaces. The phone geometry and bulk Undo changes were retained. No budget changes.
Remote browser host access finding: netbird status lists 10by32-02-std.vpn.kayg.org at 10.69.69.12 as Connected (P2P). The requested netbird ssh command failed with dial tcp 10.69.69.12:22: i/o timeout; a subsequent hostname lookup also briefly returned no such host. Retrying by the peer IP while local gates continue. No production host was touched.
Also found fixed 800 ms sleeps in the incoming phone-card-geometry and trash-header-geometry tests. Replacing them with the shared motion-settling helper before browser gates.
Blocked on the requested two-host browser split: repeated netbird ssh attempts to 10by32-02-std.vpn.kayg.org failed (DNS no such host or TCP port 22 timeout). Retrying using its NetBird IPv4 10.69.69.12 and IPv6 also failed within bounded deadlines. NetBird itself reports the peer Connected. No credentials or host settings were changed. To preserve full test coverage unattended, I will run the whole browser matrix locally under one build slot with one worker, and clearly report that the two-host execution requirement could not be met.
Integration review found that the lazy chunk recovery plugin enumerates recoverable surfaces and asserts the import count. Added TrashPreview to that list and raised the exact count from 13 to 14, preserving recovery reload behavior for the new preview. The preload regression now asserts its idle fetch as well. Budget limits are untouched.
Workspace tests passed (cargo test --workspace --locked -j3 exit 0); fmt and clippy passed. Filter-motion lint passed: 434 source files, 15 tests. Web typecheck failed with two errors in my nested lazy-preview else/await rendering: TypeScript retained the absent-component narrowing across the await. Replaced it with the effect-based loading pattern already used by Sheet, App and NoteList, plus one guarded component render. Will rerun typecheck and lint after initial gates finish.
Initial combined bundle gate failed with unchanged budgets: total JS brotli 304.4 KB (limit 300), first-load JS brotli 241.2 KB (limit 240). Gate output: over budget: web.bundle.all_js_brotli@0: p95 304 > 300; over budget: web.bundle.first_js_brotli@0: p95 241 > 240. Emitted chunks include index 241.2 KB, idle-screens 28.5 KB, torph/svelte 9.3 KB, recovery replay 6.0 KB and TrashPreview 0.9 KB. Investigating actual dependency/chunk bytes; limits will remain unchanged. Editor unit tests: 299 passed; UI unit tests: 43 passed.
Bundle gate passes without budget changes. Before: total JS 304.4 KB, first load 241.2 KB. After: total JS 299.584961 KB (306775 bytes), first load 239.964844 KB (245724 bytes). The margin is small and reported as measured. Changes: combine idle surfaces while leaving Palette and ListSearch independent; keep backdrop-library controls, look controls, shortcut help and timestamp labels with their idle-loaded screens; move Insert/Info commands and the move-sheet completion to their owning screens; reuse the API error reader. Toast remains eager, no product behavior or budget limits were relaxed. Terser and editor-library chunk splitting experiments were larger and were reverted. Web checks and full browser matrix follow.
Gate output verbatim:
Final web checks passed: typecheck (0 errors, 14 warnings), filter-motion lint (434 source files; 15 tests), editor unit tests (299), UI unit tests (43), web storage/ownership node tests (6), and bundle gate. Pushed head
6014e16c. Running the full app browser matrix locally with one worker due to the recorded remote SSH blocker, then the primitives matrix. No artifacts are committed.Browser finding: chromium-1440 lazy-offline.spec.ts failed at its cached-chunk name assertion. It still expects ContextMenu, LinkCard, SignIn, TagPicker and TrashList as five separate filenames; the bundle trim intentionally combines them in idle-screens. Received an empty set because its response filter only recognizes those old filenames. The offline page itself reached data-app=ready and rendered Note text successfully before the assertion. Will preserve the initial result, repeat the failing test three times, then update its cache assertion to the actual shared chunk and repeat the corrected test. Pending-open cancellation and lazy startup/idle recovery tests have passed so far in Chromium desktop.
Browser finding: chromium-1440 settings-links.spec.ts:25 copied the correct #/settings/appearance/accent-colour address (clipboard assertion passed), then failed waiting for .copied-check at line 36. This incoming test may be checking the old confirmation element: the incoming CopyLink component has its own in-place check. Investigating source and preserving the matrix result; will repeat the exact failing test three times before classifying or changing it. No geometry assertion was relaxed.
Browser runner finding: the sign-out fixtures fail before exercising product code because process.env.CALTERNAL_BIN is undefined (signout-fixture.ts:217, spawn file argument undefined). Playwright config itself has a default binary path, so its shared servers started, but this separate fixture requires the environment variable. The initial full matrix invocation omitted that variable. I will preserve this failed invocation and repeat each affected test three times with CALTERNAL_BIN set to the already built train binary. This is a runner setup error, not evidence of a sign-out regression. The full matrix continues, including the phone geometry checks.
Phone geometry evidence: chromium-390 passed phone-card-geometry.spec.ts:16, "phone note card: centred pills, one gutter for title and body", in the full matrix (case 1467/3978). Original expected values and tolerances are unchanged: back/more icons centred within 1 pt; left title/body gutters 40 pt; right body gutter 18 pt; title top gap 31.5 pt (toBeCloseTo(...,0)). The fixed wait was replaced by the shared motion-settling helper. Chromium desktop also passed Trash preview header alignment and the read-only/Restore row flow. WebKit remains pending.
Browser finding: chromium-390 settings-fit.spec.ts:56 (scrolling right after navigating to Settings and Appearance) failed in the initial matrix. Preserving its assertion output and adding it to the required three-repeat run. This is a new finding beyond the known stale cache/confirmation selectors and missing CALTERNAL_BIN setup. Classification remains pending the repeats.
Browser finding: chromium-390 touch-select.spec.ts:226 reached picked tint, selected check and unselected rings, then failed its settled --pick-x assertion: expected 40px, measured 32px (line 236). The incoming frost styles change phone editor geometry. Will repeat this exact test three times and verify the intended selected-block inset before correcting either code or its geometry expectation. Original phone-card geometry already passed unchanged. No tolerance is being widened.
Browser finding: webkit-1440 opacity.spec.ts:57 failed for narrow and wide pages out of focus mode. The surface-alpha assertions passed, but the 0% screenshot colour check measured blue 108 against the strict expected >108 (red+20), at line 73. The corresponding full-page and focus cases did not fail. These two pixel checks are queued for three repeats; no threshold or tolerance has been changed. Initial classifications remain pending repeated evidence.
Settings scroll finding narrowed by read-only review: the failure snapshot shows Settings aria-hidden and the daily-note textbox active. App.svelte:98 captures the initial empty route before startSession resolves; its callback at line 107 redirects to today. main.ts sets data-app=ready immediately after mounting. The test navigates to Settings after that early signal, so the pending startup redirect can send it back to Notes before the wheel event. This does not demonstrate a frozen Settings scroller. Will preserve the original repeats, then wait for the initial note before beginning the test's explicit Settings navigation; the immediate-wheel assertion itself remains unchanged. The underlying startup redirect race is pre-existing and is not changed by this train.
Opacity finding narrowed with rendered evidence: the retained narrow-page failure trace contains data-scheme=dark. The test relies on the time-of-day theme while its screenshot assertion assumes a strongly blue photo. Backdrop.svelte applies brightness(0.62) saturate(0.9) in dark mode, in addition to the backdrop dim. Its alpha checks pass; the resulting quantized blue-red difference is exactly20, which fails the strict >20 comparison. After preserving the original repeats, will pin this fixture to light mode, keeping the existing alpha assertions and >20 pixel threshold unchanged. This removes time-of-day dependence without changing product frost or geometry.
Phone geometry evidence: webkit-390 passed phone-card-geometry.spec.ts:16 in the full matrix (case3395/3978). Both Chromium and WebKit now pass the approved card geometry test with its original expected values and tolerances. No geometry test bound was widened. WebKit desktop also passed Trash header alignment and the read-only/Restore row flow. The full matrix continues into phone edges, followed by the small projects and all required failed-test repeats.
All four main browser projects completed in the initial full matrix. Applicable approved phone-card geometry checks passed in both engines, Trash read-only/Restore and header geometry passed, and lazy preload/recovery checks passed. The matrix currently records85 failures:72 sign-out cases stop at the missing CALTERNAL_BIN runner variable; the other13 are2 old cache-filename assertions,4 old copied-check selectors,3 startup-navigation/scroll test races,2 time-of-day opacity pixel boundaries, and2 old40px selected-block slide expectations (actual canonical32px). All failures remain queued for three repeats. No test bounds or product geometry were relaxed. Small projects are now running; full gate is not yet green.
Initial full app matrix finished on6014e16c, run locally after remote-host access failed. Original gate output verbatim:
Primitives browser gate output verbatim:
Repeating every failing app test three times with the explicit already built train binary; also running the four dependency-blocked throttled cases three times with --no-deps. Original assertions are retained for this phase.
Three-repeat evidence for the original Chromium desktop failures:54 sign-out executions passed (18 cases, each3/3) after setting CALTERNAL_BIN to the already built train binary. The unchanged stale cache-filename assertion failed3/3 and the unchanged copied-check selector failed3/3. Original repeat gate output:54 passed,6 failed; both failed assertions are persistent test mismatches, not flaky results. Both previously blocked throttled projects also passed their two cases3/3 each (12 executions total) with --no-deps. Chromium phone repeats are running next. No product code or original assertions have changed during this phase.
New repeat finding after correcting CALTERNAL_BIN: Chromium phone refusal/recovery cases now reach their real assertions and some fail at review4-signout.spec.ts:379. Expected contiguous text "before refusal refused edit"; received text contains "before refusal !refused edit". The inserted exclamation mark appears to come from this test's editability probe. Save status reaches saved and the refusal status clears before the text assertion. Investigating the test's caret/probe sequence; preserving every repeat result. This was hidden by the initial runner setup failure and is not being classified as a setup error.
Refusal repeat source evidence: review4-signout.spec.ts:374 clicks the whole textbox, then types an exclamation mark to trigger the final save. On the phone that viewport-dependent click places the caret between the two phrases later required to be contiguous, producing "before refusal !refused edit". The test itself inserted that mark; refusal status clears and Saved is reached. The cross-tab equality check follows the failing substring assertion. After preserving the original three repeats, will position the probe caret at the document end before typing, keeping all refusal, Saved, preserved-text and cross-tab equality assertions unchanged.
Original Chromium phone repeats completed: 48 passed, 18 failed. Scrolling passed 3/3 after its initial full-matrix failure, consistent with the startup navigation race in the retained snapshot. The unchanged cache filename, copied-check selector and 40px slide expectation each failed 3/3. Three refusal/recovery variants also failed 3/3 at the contiguous-text assertion because the test's exclamation-mark probe was inserted between the expected phrases; refusal clearing and Saved assertions passed first. The other sign-out cases passed with the explicit binary. These results are preserved; no product or original test code has changed yet. WebKit desktop repeats are running.
Original WebKit desktop repeats completed: 54 passed, 3 expected browser-specific skips, 9 failed. The narrow/wide out-of-focus opacity cases each failed 3/3 in dark mode at blue108 versus strict >108; the old copied-check selector failed 3/3. Scrolling passed 3/3 after its initial failure, consistent with the startup navigation race. Applicable sign-out cases passed with the explicit binary; one browser-specific case skips by design once its fixture starts correctly. WebKit phone is the last original-repeat group. No original assertions or product code have changed yet.
New repeat finding narrowed to fixture bootstrap: WebKit phone's "signing in again restores editing" case failed before its body, at signout-fixture.ts:221. TLS proxy health returned0 until the default5-second poll timeout. The API process immediately above has an explicit30-second startup allowance for a loaded host; the proxy does not. This case normally skips in WebKit once the fixture is ready. Will preserve all three outcomes and give the proxy the same bounded30-second startup allowance as the API. No product assertion or UI performance budget changes.
Original repeat phase completed: 219 passed, 43 failed, 5 expected skips across267 executions (every85 failed case and4 blocked case selected3 times). Persistent failures were stale cache/confirmation/slide expectations, dark time-of-day pixel assumptions and viewport-dependent caret probes. Scrolling passed all three repeats in each initially failing project, confirming the navigation-race sensitivity. One WebKit fixture bootstrap failed intermittently before a browser-specific skip.
Applied eight test/harness corrections without changing product code, bundle limits, pixel thresholds or approved phone-card geometry bounds: shared cache chunk names; current Copied status with observation before click; initial-note prerequisite before Settings navigation; fixed light photo fixture; canonical32px selected-block slide and motion settling; caret at document end for recovery probe; proxy startup allowance matching the API's30s; expose the existing default binary through CALTERNAL_BIN for isolated fixtures. Read-only review found no important issues and confirmed recovery/pixel assertions remain intact.
Corrected cases are now being repeated3 times, with no binary override so the shared default is exercised. Original results remain preserved.
Finished Train BM1. PR: #756
Combines the three approved heads into dev in the requested order: PR #747
c760aa00, phone frost92f0e49f, and Trashb96ef316. Base:d83e54dbe5. Final head:040074a3be.TrashPreview uses the shared idle loader and recovery URLs. Toast remains eager. Phone card geometry passed in Chromium and WebKit with the original bounds. Trash read-only/Restore, header geometry and bulk Undo checks passed in the main browser projects.
The first combined build exceeded the unchanged budgets: 304.4 KB total JS and 241.2 KB first load. Shared idle chunks and moving settings/help/timestamp work to its owning surfaces brought the final build to 299.584961 KB total JS (306775 bytes) and 239.964844 KB first load (245724 bytes). Headroom is only 425 bytes total and 36 bytes first load. Budgets and measurement rules are unchanged.
The requested second host, 10by32-02-std, remained unreachable through bounded NetBird SSH attempts by name and peer IP. The complete matrix ran locally on 6by32-compute02 with one worker and one build slot. This does not satisfy the requested two-host split or provide ARM host evidence. No production host was touched.
Completed checks:
Initial failures and repeated evidence:
Final test and harness corrections were checked with targeted three-repeat runs; the initial full matrix was not repeated after those fixture changes. Forge CI will run the final head. Read-only reviews found no important issues. No evidence files or artifacts are committed. No merge or deploy was performed.
Initial full matrix by project:
Gate exit output verbatim (including the initial failures and later checks):
Original full matrix summary verbatim:
Original repeat groups verbatim:
Corrected repeat groups verbatim:
Final bundle gate output verbatim:
Closing: this work is already in dev and in prod as
6e5f99de("Open Trash search results in a shared read-only preview"), an ancestor of the prod build41f2efa3. What is left on this branch is a rebased duplicate of that commit plus a WIP save. Found during BM15 prep (#947).Pull request closed