Skip to content

docs(workspace): design workspace tabs and files module - #613

Merged
nixuuu merged 5 commits into
devfrom
docs/workspace-tabs-proposal
Nov 13, 2026
Merged

nixuuu merged 5 commits into
devfrom
docs/workspace-tabs-proposal

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Projekt workspace'u — zaakceptowany układ v2

Podgląd plików przechodzi z modala do zakładek jednego wątku. Sygnet projektu, skracany tytuł i karty dzielą rząd nagłówka, z aktywną kartą zawsze widoczną i przełącznikiem overflow. Prawy rail obsługuje jeden minimalny moduł. Bez modułu podsumowanie jest dokowane i widoczne; z modułem jest zamkniętą domyślnie kartą pływającą. Na wąskich ekranach obie powierzchnie używają arkuszy.

Użytkownik zaakceptował układ v2 i udzielił jawnej zgody na implementację. Przyjęte decyzje: jeden zastępowalny czysty preview, utrwalany przez Edit/Keep tab/dwuklik, zakres cwd/worktree wątku i mobilna edycja natywna bez kolorów podczas pisania (kolory w viewerze i Preview changes). Usunięto sekcję otwartych decyzji.

Dokument uwzględnia jeden przycisk menu wiersza (#608), zachowanie treści PR przy odświeżaniu (#611), bounded warming/cache transkryptu (#622/#623/#629), niezależne sortowanie sidebara (#617/#619/#626), kompaktowy tekst stanów preview (#634), poprawne stany ChoiceControl (#637), kolejkę kontynuacji (#630) i podsumowania jej wierszy (#633). Nie dodaje pełnych snapshotów ani prefetch plików podczas warming.

Siedem kompletnych warstw będzie osobnym stosem z podstawą dev. Wszystkie PR implementacyjne pozostaną draftami do ukończenia i weryfikacji całości oraz wspólnego scalenia przez maintenera. Migracje muszą zachować monotoniczność względem aktualnego dev. Dokumentacyjny PR po zielonym CI jest gotowy do scalenia przez maintenera.

Weryfikacja i ograniczenia

  • Rebase na dev 1626a3e6b05494e7aec77942bd818950468a3b58 bez konfliktów.
  • nice -n 10 bun run format i nice -n 10 bun run format:check przeszły. Konfiguracja pomija Markdown; dokument sprawdzono ręcznie. git diff --check bez błędów po usunięciu pustej linii końcowej.
  • Brak zmian kodu aplikacji i kontraktów; testy wykonania oraz pomiary budżetów należą do stosu implementacyjnego.
  • Samodzielna makieta v2 poza repozytorium, 32 435 bajtów, przezroczyste html/body, trzy stany × trzy szerokości × dwa motywy. Poprzednio wyrenderowana i obejrzana bez błędów konsoli.

Copy audit (§8)

Brak zmian produkcyjnych etykiet. Projekt zachowuje Thread, Keep tab, Thread details, Open in tab, Collapse panel / Show panel oraz dostępne nazwy obu kontekstów +. Zachowuje jeden przycisk menu wiersza i kompaktowy tekst statusów pliku. Krótkie i długie etykiety są pokazane w makiecie; rzeczywiste powierzchnie i stany będą audytowane w każdej warstwie UI.

@nixuuu
nixuuu force-pushed the docs/workspace-tabs-proposal branch from fd0808d to c74a5d8 Compare November 13, 2026 11:26
@nixuuu
nixuuu force-pushed the docs/workspace-tabs-proposal branch from 1ae72d7 to da1f104 Compare November 13, 2026 11:43
@nixuuu
nixuuu marked this pull request as ready for review November 13, 2026 11:46
@nixuuu
nixuuu merged commit 9f85593 into dev Nov 13, 2026
8 checks passed
@nixuuu
nixuuu deleted the docs/workspace-tabs-proposal branch November 13, 2026 16:53
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 1
integration files: `thread-file-previews.test.ts`,
`thread-scroll.test.ts`. Existing feed logic files: `feed-rows.test.ts`,
`work-history-gaps.test.ts`. No UI/component test suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

## Change

Stage 1 of the approved seven-stage workspace stack. File links in a
thread open one replaceable preview tab beside the pinned Thread tab.
Edit, Keep tab, double-click or Move keeps it. The shared header handles
overflow; native mobile uses a tab switcher sheet.

Adds device-local tab metadata, in-memory drafts, close guards,
line/range navigation and restoration of file scroll and web editor
undo. Existing file RPCs and SHA-256 mutation checks remain in use.
Links outside a thread keep their current viewer.

Related: #613

## Current-head rebase verification

Rebased onto dev `4bb71c80142e0c1d0616502ce428ca2bf19d8cad`. The
workspace wrapper retains dev's thread scroll-memory preparation and
loaded-view gates on web and mobile. The existing interrupt
request/error handling moved into the thread-command module to keep the
page within the code-size limit, with unchanged behavior and UI copy. No
manual feed/work-fold changes.

Current-head install, gen:check, full typecheck, lint, format:check,
production web build and iOS/Android exports passed with `nice`. Both
nightly native fingerprints match dev. Current-head CI is green,
including all four test shards. Initial thread JS is 765,684 gzip bytes
versus dev 756,367: +9.10 KiB, within the 15 KiB budget.

The final stack head was reviewed in a production browser on the
separate review machine in light/dark at 1440/820/390 px, including
short/long names, source ranges, file-tab switching and file-scroll
restoration. The merged thread-scroll domain integration passed
separately on that head. **Device check pending**. Every implementation
PR stays a draft in stack #643. Current full-suite fallback and the
serial corrective integrations are recorded in #648; interrupted local
runs are not passes.

## Earlier implementation verification (historical)

- Passed locally with `nice`: install, gen:check, typecheck, lint,
format:check and web production build.
- Full `check:tmp`: 2748 passed, 166 skipped, 0 failed; temp directory
clean. The newly rebased mobile foreground integration test also passed
separately.
- Local iOS and Android exports passed with one Metro worker.
Fingerprints equal the same `dev` baseline (`bd89660d5`) with
`CANOPY_CHANNEL=nightly`: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. No native
dependency/configuration changes.
- **Device check pending**. Device support reports `Could not
communicate with device support. Try refreshing devices.` Refresh did
not restore it. The maintainer explicitly authorized continuing later
stages with typecheck, both exports and unchanged fingerprints;
consolidated iOS/Android device review remains required before the stack
is merged. No native performance results are claimed.
- Production browser measurements on the separate review machine at
`e668c19dc`: thread-route JS +9269 bytes gzip (9.05 KiB, budget 15 KiB);
100 warm switches p50 35.5 ms / p95 41.5 ms with 0 file reads; retained
heap +72480 bytes after 20 open/edit/discard/close cycles following
warm-up (budget 5 MiB). Earlier exploratory warm p95 ranged 41.3–56.5
ms; these are not omitted from the evidence.
- File 100 KiB, 30 cold document opens: first plain paint p50 125.4 ms /
p95 139 ms (250 ms budget); DOM p95 92 ms; second-frame stability p95
299.5 ms. The latter includes subsequent syntax work and is not reported
as first plain paint.
- Three alternating baseline/current two-minute renderer runs completed:
handler p95 0.4/0.5 ms, 0.4/0.6 ms and 0.5/0.5 ms. Long-task totals were
3682/3836, 3609/3760 and 3679/3779 ms; runs lasted 120.2–120.9 s. A
separate 30-minute renderer run completed 209 cycles / 41,800 messages:
handler p95 0.6 ms, 244 long tasks / 54,489 ms total; sampled heap
263,495,772 → 262,438,198 bytes and DOM 19,838 → 19,657 nodes. These are
streaming/scroll fixtures, not the complete file-switch/undo/offline
resource scenario, which remains for final stack verification. Sampled
heap is not retained heap after GC.
- No protocol or database migration; no UI test suite added.

This PR stays a draft. The maintainer merges the whole stack only after
all seven stages are finished and verified.

## Copy audit — docs/copy.md §8

- Repeated modal title → compact file tab with the full path in its
tooltip/switcher. Short, sentence-case actions use verbs: Keep tab, Move
left/right, Close saved tabs and Go to line.
- Unsaved state → Unsaved changes in a reserved slot and accessible tab
name. Save/Discard/Keep editing repeat the confirmation's action;
deletion names the file and computer.
- Limits and storage failures state the problem and a next action. No
new humorous copy or inspiration references.
- Short, typical and long names checked in the real browser in
light/dark at desktop, narrow and phone widths, including 320 px. At 12
tabs the active long name remains reachable with no page overflow;
opening another file gives an actionable limit message. Repeated file
links reuse their tab. Oversized edits restore the accepted content and
cannot save a different draft.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 2
integration files: `thread-file-previews.test.ts`,
`computer-relay.test.ts`. Existing feed logic files:
`feed-rows.test.ts`, `work-history-gaps.test.ts`. No UI/component test
suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

## Change

Stage 2 of the approved seven-stage workspace stack, based on #640. The
header's + opens Pull requests, Tasks or Connectors in a full tab. The
right icon rail selects a minimal module, whose header offers a module
chip, +, Open in tab and Collapse panel. Tab and panel metadata stay
local to the device.

Thread details dock by default when the panel has no module. Selecting a
module leaves details closed behind their header button; the floating
card closes on outside click or Escape and returns focus. Narrow layouts
use separate bottom sheets. The panel supports keyboard/pointer resizing
and respects the available main-area width. Existing PR refresh content
retention and shared reads remain in use; task output can occupy a full
tab. Mobile mirrors the module/switcher/sheet model with the native
viewer and editor.

Related: #613

## Current-head rebase verification

Rebased onto corrected stage 1 and dev
`4bb71c80142e0c1d0616502ce428ca2bf19d8cad`, retaining merged thread
scroll memory and default tool-group folding. Current-head install,
gen:check, full typecheck, lint, format:check, production web build and
iOS/Android exports passed with `nice`; both nightly native fingerprints
match dev. Current-head CI is green, including all four test shards.
Initial thread JS is 768,471 gzip bytes versus dev 756,367: cumulative
+11.82 KiB, within the 15 KiB budget.

The final stack head was reviewed again in a production browser on the
separate review machine in light/dark at 1440/820/390 px. The summary
docks without an active module, floats when Files occupies the desktop
panel, and opens as a sheet at narrow/phone widths; Escape closes it.
Files panel/sheet, long names and the phone tab-switcher sheet were
inspected with no horizontal page overflow. No new UI copy in the
rebase; the original copy audit remains applicable. **Device check
pending**. This PR remains a draft in stack #643; full-suite fallback
and serial corrective evidence are recorded in #648.

## Earlier implementation verification (historical)

- Passed with `nice`: install, gen:check, typecheck, lint, format:check
and production web build. Full check:tmp: 2759 passed, 166 skipped, 0
failed; temporary directory clean. No protocol/database changes and no
UI test suite.
- Both final iOS/Android exports passed. Fingerprints unchanged from the
dev baseline: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9` (`CANOPY_CHANNEL=nightly`).
No native dependency/configuration changes.
- **Device check pending**: Device support remains unavailable. The
maintainer authorized continuing with typecheck, both exports and
unchanged fingerprints. Consolidated device review is required before
merging the stack; native runtime/performance and PR scroll restoration
are not claimed as verified.
- Real browser: light/dark, 1440/1280/900/390/320 px, short and long
thread/tab names; module toggles, maximize into a tab, close module →
details dock, floating details placement, outside/Escape and focus
restoration, collapse/restore, keyboard resize bounds and narrow sheets.
Linux window-control CSS reserves were checked; Electron runtime was not
launched. Two review setups were already running on the second machine,
so this stage used the authorized local fallback.
- Thread-route initial JS: 766900 bytes gzip versus 754751 baseline;
cumulative +12149 bytes (11.9 KiB), within 15 KiB. Production browser,
1440×900, 100 warm Thread/Tasks switches after 10 warm-ups: p50 32.2 ms
/ p95 32.4 ms, budget 50 ms, zero thread API requests during the sample.
The local integration run was still active; these results do not replace
the final paired streaming/resource scenario. No initial editor/grammar
dependency added.
- Authenticated PR mutations were not exercised: the private fixture has
no linked account. Existing gateway/integration coverage and retained PR
components cover the unchanged contract; a real-account flow remains a
final QA gap.

This PR stays a draft. The maintainer merges all seven stages together
after complete verification.

## Copy audit — docs/copy.md §8

- Mixed thread-panel sections → Pull requests, Tasks and Connectors with
a separate Thread details surface. Existing glossary terms stay intact.
- Ambiguous panel actions → Open sidebar module, Open in tab, Close
module and Collapse panel. Icon labels describe the same action as their
tooltips; the chip retains an accessible full label when truncated.
- Missing task history → a short explanation and instruction to open
Tasks. Module tab limit errors explain the limit and ask to close a tab.
Existing permission/offline notices remain actionable.
- No humorous copy or inspiration references. Short/long labels and
header controls were checked in both themes and at desktop/narrow/phone
widths; native device coverage is pending as stated above.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 3
integration files: `thread-directory-race.test.ts`,
`thread-directory.test.ts`. Existing feed logic files:
`feed-rows.test.ts`, `work-history-gaps.test.ts`. No UI/component test
suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

The Files module now browses the current thread's cwd/worktree in the
sidebar or a full tab. Expanding a directory fetches one bounded page;
selecting a file opens the existing replaceable preview tab.

The additive `ListThreadDirectory` RPC routes through the thread's home,
checks ownership and relative paths in the gateway, and enumerates on
the worker without a recursive snapshot. Pages contain at most 200
entries / 64 KiB protobuf including the envelope. Eight one-use
iterators expire after 30 seconds; closing Files releases cursors. Git
status uses a shared bounded governor query. Symlinks expose no targets
and cannot be expanded.

Web and mobile share a bounded tree cache, two concurrent reads and
cancellation. Virtual rows preserve the visible path anchor and keyboard
focus; Git letters and accessible labels supplement colors. No database
migration, native dependency/configuration change, UI test suite,
polling or full-snapshot synchronization.

Stage 3 of 7 in stack #643. Base: stage 2. All implementation PRs remain
drafts until the entire stack is finished and verified; the maintainer
merges it at once.

Related: #613

## Pre-merge security correction

Directory iteration and child metadata now use the same verified native
directory handle. Unix walks components with `openat(O_NOFOLLOW)` and
uses `fdopendir` / `fstatat(AT_SYMLINK_NOFOLLOW)`. Windows pins all
ancestors without delete sharing, refuses reparse points and queries
entries plus metadata from the final handle. Cursors close these handles
on completion, release, expiration and disconnect.

The controlled ancestor ABA regression returns only the original inside
name and size; replacing an ancestor before handle acquisition is
rejected. Both regression tests and the existing 9 directory integration
cases passed on Linux, including 10,000 children, owner isolation,
cursor limits and symlink refusal. The Linux worker binary builds and
starts. Native macOS/Windows execution has not been verified in this
correction.

Rebased onto dev `4bb71c80142e0c1d0616502ce428ca2bf19d8cad` and
propagated through all seven draft layers of stack #643. The rebase
preserves the merged thread scroll memory and default tool-group
folding. Current-head install, gen:check, full typecheck, lint,
format:check, production web build and iOS/Android exports passed with
`nice`; both nightly fingerprints match dev. The 2 directory-race tests
and all 9 directory integration cases passed locally, one file at a time
(10,385 assertions combined, clean private temp directories).
Current-head CI is green, including all four test shards.

Local full-suite attempts were interrupted by SIGTERM and are not
counted as passes. Before the last dev rebase, a subsequent detached
`setsid nohup` run continued beyond the tool timeout but failed existing
computer-move reachability/discovery cases under load; its owned process
group was stopped after the failures, with a clean private temp
directory. The maintainer authorized green CI on every stack layer plus
serial corrective/stack integration files as the fallback. The final
stack PR records the complete evidence. Native macOS/Windows execution
and the mobile device check remain unverified.

Current thread-route JS is 769,308 gzip bytes versus dev 756,367:
cumulative +12.64 KiB, within the 15 KiB budget. The final stack head
was reviewed again in a production browser in light/dark at 1440/820/390
px, including short/long names, Files panel/sheet and summary
dock/float/sheet. Earlier performance observations below remain
historical.

## Earlier implementation verification (historical)

- Passed with `nice`: install, gen:check, typecheck (including mobile),
lint, format:check and web production build. Full `check:tmp`: 2768
passed, 166 skipped, 0 failed; nothing left in the private temp
directory. CI is green.
- Gateway/worker/computer-link integration: 9 passed, 0 failed, 10,377
assertions. Covers worktree/home routing, 10,000 long names, bounded
pagination, cursor replay/filter/thread binding/release, directory
changes, owner isolation, traversal and symlink refusal, Git states,
eight-iterator admission, older workers and restart cursor invalidation.
- iOS/Android exports passed. Fingerprints equal the dev baseline with
`CANOPY_CHANNEL=nightly`: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`.
- **Device check pending**: Device support remains unavailable. The
maintainer explicitly authorized continuing with typecheck, both exports
and unchanged fingerprints. Consolidated device review remains required
before merging the stack; no native CPU/FPS/thermal results are claimed.
- Real production browser reviewed light/dark, desktop/narrow/phone,
short/long names, pagination, file preview opening, focus preservation
and sheets. Local fallback used while two review setups occupied the
second machine. Final timing measurements pending completion of heavy
checks.
- Thread-route JS: 767,709 bytes gzip, +12,958 bytes / 12.65 KiB versus
the dev baseline; within the cumulative 15 KiB budget. Tree and
directory transport load lazily.

External changes currently use Reload files; bounded change watching and
reconnect recovery belong to stage 5. Expanded/scroll metadata
persistence belongs to the resource/recovery stage. This PR does not
claim those later slices.

## Copy audit — docs/copy.md §8

- No tree surface → Files / Working directory with verb actions Reload
files, Load more and Show ignored files. Labels use sentence case and
the glossary's directory term.
- Silent or ambiguous partial listing → explicit Reload directory,
update/reconnect guidance and actionable resource-limit errors. No
cursor/protocol jargon on the surface.
- Color-only status → Git letter plus
Modified/Added/Deleted/Renamed/Conflict/Untracked/Ignored accessible
labels. Symbolic links and deleted entries are explicit and inactive.
- Short, typical and long file names reviewed in light/dark at desktop,
narrow and phone widths. Names truncate with full paths available; no
horizontal page overflow. No new humorous copy or inspiration
references.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 4
integration files: `thread-highlight.test.ts`,
`thread-file-previews.test.ts`, `computer-relay.test.ts`. Existing feed
logic files: `feed-rows.test.ts`, `work-history-gaps.test.ts`. No
UI/component test suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

File tabs now render virtual source rows and highlight the active
viewer/editor in a dedicated CPU executor. Mobile keeps native editing
and colors the saved viewer or an explicit Preview changes draft through
a bounded gateway/worker RPC. Source indexing yields in chunks, long
lines remain fully readable, and large files start as plain text.

The additive `GetThreadFileHighlight` contract carries at most 200 lines
/ 64 KiB of semantic offsets and roles, tied to the file hash and draft
revision. The gateway derives ownership and cwd. Draft source cannot
cross an onward-sharing relay and is never persisted. One worker
executor has four waiting slots, bounded source/checkpoint caches and a
100 ms execution deadline after separately bounded grammar
initialization. Raster headers are checked before client decoding;
images above 16 MP are refused and GIF/animated previews are static.

Stage 4 of 7 in stack #643, based on stage 3. All implementation PRs
stay drafts until the entire stack is finished and verified; the
maintainer merges it at once. No database migration or native
configuration change.

Related: #613

## Pre-merge reading-position correction

The mobile source viewer restores the document's saved offset after full
indexing, content measurement and layout. A newly requested line takes
precedence, and preparatory scroll events cannot overwrite the saved
offset. No UI text or native configuration changes.

Rebased onto corrected stage 3 and dev
`4bb71c80142e0c1d0616502ce428ca2bf19d8cad`, preserving merged thread
scroll memory and default tool-group folding. Current-head install,
gen:check, typecheck, lint, format:check, web build and both mobile
exports passed with `nice`; nightly native fingerprints match dev.
Current-head CI is green, including all four test shards. Highlight
integration passed locally (6 tests); file previews (12) and
three-gateway relay (11) passed serially on the otherwise idle review
machine. A first preview run on the loaded host failed after its 100 ms
heartbeat link timed out; it is not counted as a pass. Every run cleaned
its private temp directory. Stage 3 separately passed its directory
regressions on the rebased head.

Current thread-route JS is 770,456 gzip bytes versus dev 756,367:
cumulative +13.76 KiB, within the 15 KiB budget. The final stack head
was reviewed again in a production browser in light/dark at 1440/820/390
px, with long names, source colors, line/range positioning, Files and
summary sheets. Web file scroll was restored to the recorded 1200 px
after switching away and back; this does not establish the native mobile
result.

**Device check pending**, including switch-away/back scroll restoration;
no real-device result is claimed. The maintainer authorized green CI on
every layer plus serial corrective/stack files if the detached full run
still fails under shared-host load. The final stack PR records that run;
interrupted local full suites are not counted as passes. Prior
performance observations below are historical. This PR remains a draft
in stack #643.

## Earlier implementation verification (historical)

- Passed with `nice`: install, full typecheck, gen:check, lint,
format:check, web production build and a compiled Linux worker binary.
Full `check:tmp`: 2776 passed, 166 skipped, 0 failed, nothing left in
the private temp directory. CI is green.
- New highlight integration: 6 passed, 0 failed. Covers home routing
through a real computer link, owner isolation, traversal/symlink safety,
saved/draft hash and revision separation, bounded responses, long-line
fallback, older workers and restart.
- File preview integration: 12 passed, 0 failed, including safe raster
dimensions, a static PNG preview and refusal above the pixel budget.
Three-gateway relay integration: 11 passed, 0 failed, including rejected
draft forwarding and forged incoming envelopes.
- iOS and Android exports passed. Mobile typecheck passed. Native
fingerprints equal the dev baseline with the nightly identity: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`.
- **Device check pending**: Device support remains unavailable. The
maintainer explicitly authorized continuing without device verification.
Consolidated iOS/Android device review remains required before merging
the stack; native CPU/FPS, keyboard/IME, background behavior and thermal
results are not claimed.
- Production browser inspected in light/dark at desktop, narrow and
phone widths, with short and long names. Virtual rows, line/range
positioning, theme colors, editor decorations, dirty/discard flow and
horizontal overflow reviewed. Local fallback used while two review
setups occupied the second machine; the prior remote review setups were
then stopped.
- Local synthetic 100 KiB file, 30 openings: p95 visible plain text 52.8
ms (250 ms budget), stable view 65.7 ms. Warm tab switch: p95 36.8 ms
across 100 samples (50 ms budget), zero additional file reads. These are
local synthetic measurements, not controlled remote-latency or native
results.
- Initial thread JS: 768,832 bytes gzip, cumulative +14,081 bytes /
13.75 KiB versus dev; within the 15 KiB budget. Syntax executor and
editor remain lazy. The 20-cycle browser check had no explicit GC, so
its coarse heap reading is not evidence for the retained-heap budget;
final resource profiling belongs to stages 6–7.

Disk invalidation/watch and conflict comparison remain stage 5; final
scope cleanup and migration removal remain stages 6–7. No UI test suite
was added.

## Copy audit — docs/copy.md §8

- Plain mobile file text → saved viewer colors and the explicit Preview
changes / Keep editing actions; native editing remains immediately
available.
- Large or unsupported syntax → a compact reason, readable plain text
and Enable highlighting where applicable. Errors explain that the file
remains readable; older capabilities give an update action in words.
- Unbounded image decoding → a stated preview limit with an action to
open the file on its computer. No parser, cursor or transport jargon in
the surface text.
- Line highlights supplement original line numbers and Go to line. Dirty
state and failures have text; neither depends only on color.
- Short, typical and long names inspected across the responsive widths
and both palettes. Sentence case and verb actions retained; no humorous
copy or inspiration references.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 5
integration files: `thread-root-checkpoint.test.ts`,
`thread-watch-cancellation.test.ts`, `thread-watch-relay.test.ts`,
`thread-watch.test.ts`. Existing feed logic files: `feed-rows.test.ts`,
`work-history-gaps.test.ts`. No UI/component test suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

Files now watch only the visible directories and active document.
External changes refresh clean content and preserve dirty drafts, with
Compare changes, Copy changes and a confirmed Discard and reload. The
comparison switches between virtual read-only disk/draft versions; it
never force-overwrites a file.

The additive `WatchThreadFiles` stream carries bounded invalidations,
never source or a tree snapshot. Gateway ownership, path checks and home
routing apply before subscription. Shared checkout watches have bounded
replay, reconnect requests visible-scope revalidation, and
cancellation/background releases the stream and retries. Save conflicts
use a typed Connect code and HTTP 412 in the BFF. No database migration
or native configuration change.

Stage 5 of 7 in stack #643, based on stage 4. Every implementation PR
remains a draft until the whole stack is finished and verified; the
maintainer merges the stack at once.

Related: #613

## Pre-merge root, watch and relay corrections

- Every file response carries its root identity. The document retains
that checkpoint with its base and draft across watch stops. A changed
root remains a conflict until explicit discard and reload, even with
identical base bytes. Additive `expected_root_identity` fields reach the
home worker for writes and deletes; a stale root yields `Aborted`.
Unsupported workers cannot silently ignore a supplied checkpoint.
- Released queued additions check cancellation inside the serialized
operation and after reconciliation. Pending additions keep coordinator
ownership until cleanup. The controlled slow-reconciliation regression
with 35 released queued subscriptions leaves zero subscribers, zero
directory watches and zero callbacks after release; a fresh subscription
still works.
- Supported onward routes advertise `thread_files_watch_v1`. A new
three-gateway integration covers negotiation, delivery of a file change
and cancellation at the home worker.

Rebased onto corrected stages 3–4 and dev
`4bb71c80142e0c1d0616502ce428ca2bf19d8cad`, preserving merged thread
scroll memory and default tool-group folding. Current-head install,
gen:check, full typecheck, lint, format:check, production web build and
iOS/Android exports passed with `nice`. Both nightly native fingerprints
match dev. Current-head CI is green, including all four test shards.

Serial integration files all passed with clean private temp directories:
root checkpoint (2 tests / 30 assertions, both with and without a
reopened watch) and queued cancellation (1 / 10) locally; three-gateway
onward watch (1 / 5) and existing watches (6 / 43) on the otherwise idle
review machine. The old draft cannot write or delete identical-byte
replacement files; explicit discard/reload permits the new checkout.
Thirty-five released queued subscriptions leave no subscribers, watches
or callbacks.

Interrupted local full-suite attempts are not counted as passes. Before
the last dev rebase, a detached full run continued beyond the tool
timeout but failed existing computer-move reachability/discovery cases
under load and was stopped with a clean private temp directory. The
maintainer authorized green CI on every layer plus serial
corrective/stack files as the fallback; #648 records the final evidence.
**Device check pending** remains in effect. The final stack head
received a fresh production-browser review in both themes at
1440/820/390 px; prior performance observations below remain historical.
This PR stays a draft in stack #643.

Current initial thread JS is 770,777 gzip bytes versus dev 756,367:
cumulative +14.07 KiB, within the 15 KiB budget.

Copy audit for this correction: “reopen the file” → “reload the file”
names the explicit recovery action for a root conflict; an unsupported
checkpoint asks the user to update the computer and reload before
changing the file. Existing conflict copy is reused for rejected
mutations. No new labels, layout, glossary terms or humorous copy.

## Earlier implementation verification (historical)

- Passed with `nice`: install, generation check, full typecheck, lint,
formatting check, production web build and full `check:tmp` (nothing
left in the private temp directory). CI is green.
- New gateway/worker integration: 6 passed, 0 failed. Real local and
linked-home streams cover owner isolation, traversal/symlink refusal,
scope and envelope limits, replay, last-subscriber cancellation, burst
recovery and dirty/hash conflicts without mutation replay.
- Mobile typecheck and iOS/Android exports passed. Native fingerprints
match the baseline with the nightly identity: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`.
- **Device check pending**: Device support is unavailable. The
maintainer authorized continuing with typecheck, exports and unchanged
fingerprints. Consolidated iOS/Android device review remains required
before the stack is merged; device CPU/FPS/IME and background results
are not claimed.
- Initial thread JS is 768,856 bytes gzip, cumulative +14,105 bytes /
13.77 KiB versus the dev baseline (15 KiB budget). File UI and watch
adapters load on demand. On the isolated review machine, 30 opens of 100
KiB: plain text p50 48.7 ms / p95 52.1 ms; stable view p95 65.7 ms. 100
warm switches: p50 32.2 ms / p95 33.2 ms. Restarting a watch epoch
revalidates the active file; these measurements do not claim zero
network requests during switches. GC was unavailable, so the
retained-heap budget is unverified.
- Manual browser review covered light/dark, desktop/narrow/phone widths
and long paths. A real worker filesystem watcher refreshed clean
content, preserved a dirty draft, exposed both comparison versions, and
reloaded the disk version only after discard confirmation. The save
button is disabled for a known conflict.
- No UI tests added. No full-tree or transcript snapshot recovery,
polling of file contents, write replay or automatic overwrite.

## Copy audit — docs/copy.md §8

- Previously stale content → Changed on disk / Removed from disk, with
explicit Compare changes, Copy changes and Discard and reload actions.
The draft is preserved until confirmation.
- Generic save rejection → a typed conflict with an explanation and an
action; no hash, cursor, parser or transport jargon in UI errors.
- Unavailable live changes → a plain explanation and Reload fallback.
Short labels reserve status space and do not depend on color.
- Comparison labels name the selected version; all destructive
confirmations retain explicit verbs. No humorous copy or inspiration
references. Light/dark and desktop/narrow/phone layouts preserve
truncation and explicit actions.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 6
integration files: `thread-root-checkpoint.test.ts`,
`thread-watch-cancellation.test.ts`, `thread-watch-relay.test.ts`,
`thread-watch.test.ts`. Existing feed logic files: `feed-rows.test.ts`,
`work-history-gaps.test.ts`. No UI/component test suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

Workspace now releases read work, live streams and cached bytes when a
paired scope or thread access ends. A replaced worktree root preserves
the old draft and requires explicit discard/reload. Clean content is
bounded to four warm files on web and two on mobile, in addition to byte
budgets; inactive files receive invalidation markers without background
reads.

This also forwards file-read cancellation through the BFF, fences late
responses after cleanup, clears mobile token caches and excludes IME
composition from workspace shortcuts. No database migration or native
configuration change.

Stage 6 of 7 in stack #643, based on stage 5. All implementation PRs
remain drafts. The maintainer merges the whole stack at once.

Related: #613

## Pre-merge root-checkpoint correction

Rebased onto corrected stages 3–5 and dev
`4bb71c80142e0c1d0616502ce428ca2bf19d8cad`, preserving merged thread
scroll memory and default tool-group folding. Root identities are
checked for every retained document in a thread, including hidden tabs.
Resource/access guards retain the new expected-root argument through
writes and deletes; explicit discard and reload remain necessary after a
root replacement.

Current-head install, gen:check, full typecheck, lint, format:check,
production web build and iOS/Android exports passed with `nice`. Both
nightly native fingerprints match dev. Current-head CI is green,
including all four test shards. Serial integration files on the
otherwise idle review machine passed with clean private temp
directories: root checkpoint (2 tests / 30 assertions), queued
cancellation (1 / 10), onward relay (1 / 5), and expanded
watch/resource/access coverage (9 / 58). Stages 3 and 5 also passed the
three blocker regressions locally on their introducing heads.

Current initial thread JS is 771,163 gzip bytes versus dev 756,367:
cumulative +14.45 KiB, within the 15 KiB budget. No UI text or web
layout changed in this correction. The final stack head received a fresh
production-browser review in both themes at 1440/820/390 px, including
long names, Files panel/sheet and summary dock/float/sheet. Earlier
performance observations below remain historical; **Device check
pending** remains in effect.

Interrupted local full suites are not counted as passes. Before the last
dev rebase, a detached full run continued beyond the tool timeout but
failed existing computer-move reachability/discovery cases under load
and was stopped with a clean private temp directory. The maintainer
authorized green CI on every layer plus serial corrective/stack files as
the fallback; #648 records the final evidence. This PR remains a draft
in stack #643.

## Earlier implementation verification (historical)

- Gateway/worker integration: 9 passed, 0 failed. Real local and
linked-home streams cover owner/path safety, bounded replay,
paired-scope cleanup, thread access revocation, root replacement and
preservation of drafts.
- Passed with `nice`: install, generation check, full typecheck, lint,
formatting, production web build and iOS/Android exports. Full
`check:tmp`: 2,785 passed, 166 skipped, 0 failed; nothing left in the
temp directory.
- CI is green. The first run had one existing remote thread-sequence
recovery assertion returning the previous title after home reconnection.
The unchanged test passed in isolation (1 passed, 0 failed, clean temp
directory), then the failed CI shard passed on rerun.
- Nightly native fingerprints match baseline: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`.
- Browser review: light/dark, 1440/820/390 px widths, short and long
file names, virtual source and line ranges, docked summary, Files panel,
floating summary and phone sheet. No added UI suite.
- On the isolated review machine: 100 warm switches p50 31.8 ms / p95
32.9 ms and **0 additional Files requests** (including subscriptions).
After warmup and 20 edit/discard/close cycles with GC exposed, retained
JS heap grew 517,260 bytes / 0.49 MiB (5 MiB budget).
- Initial thread JS: 769,295 bytes gzip, cumulative +14,544 bytes /
14.20 KiB against dev (15 KiB budget). This measures the static import
closure; editor/grammar loading remains deferred.
- These stage-6 measurements do not verify RSS/bitmap memory or native
runtime budgets. Final cumulative streaming/navigation pairs, controlled
transport probes and the 30-minute file/Undo/offline endurance run are
reported in stage 7 (#648), including the browser HTTP/1.1 emulation
outlier and remaining measurement gaps; those results do not relabel the
stage-6 head as separately measured.
- **Device check pending**: Device support is unavailable. The
maintainer authorized typecheck, iOS/Android exports and unchanged
native fingerprints while continuing the stack. Consolidated device
review is still required before merge.
- No UI tests, database migrations or native dependency changes.

## Copy audit — docs/copy.md §8

- Stale/inaccessible content → “File access ended. Reopen the thread to
check access.” The action matches the cleared scope.
- A changed root → an explanation followed by Copy changes / Reload; an
old draft never silently becomes a new-root edit.
- Existing short labels and conflict confirmations are preserved. IME
input is excluded from shortcuts. Responsive/theme review preserves
explicit actions and truncation at desktop, narrow and phone widths.
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Final integration rebase including history/fold recovery

Rebased all seven layers of stack #643 onto dev
`8e78568c7e86c188039743dde6cb879c34de4a6e`, including #671 provider
warnings, #673 reconnect/backoff, #670 connector refresh, #674
deterministic steer recovery and #672 empty-work/history recovery. Two
thread-page conflicts were resolved in their introducing stages:
preserve the conversation/file tab wrapper together with history loading
rows/actions, prefetch, fold synchronization/coverage, diagnostics and
scroll anchors. Feed, history and fold implementation files retain the
merged dev behavior. Earlier generated-descriptor conflicts were
resolved through `bun run gen`; proto additions and field numbers are
preserved. The independently confirmed five workspace fixes are
unchanged. No pending Git or gh-stack rebase operation.

Verification scope on the final heads: install, explicit gen, gen:check,
full typecheck, lint, format:check, production web build and focused
workspace/feed tests at every stage. Commands run detached with `setsid
nohup` and `nice`; heavy files run serially through `check:tmp`. Stage 7
integration files: `thread-directory-race.test.ts`,
`thread-directory.test.ts`, `thread-file-previews.test.ts`,
`thread-highlight.test.ts`, `computer-relay.test.ts`,
`thread-root-checkpoint.test.ts`, `thread-watch-cancellation.test.ts`,
`thread-watch-relay.test.ts`, `thread-watch.test.ts`,
`thread-scroll.test.ts`, `thread-watch-failures.test.ts`,
`thread-live-updates.test.ts`, `connector-sessions.test.ts`,
`connector-session-errors.test.ts`, `codex-provider-warnings.test.ts`,
`prompt-after-turn-end.test.ts`, `thread-work-window.test.ts`. Existing
feed logic files: `feed-rows.test.ts`, `work-history-gaps.test.ts`,
`feed-prefix.test.ts`, `work-fold-state.test.ts`,
`work-tool-groups.test.ts`, `steer-folds.test.ts`,
`notice-folds.test.ts`. No UI/component test suite added.

All seven PRs remain ready as requested. The maintainer merges the
complete stack after CI is green on every head; no merge is performed
here. Device check remains pending as previously authorized. No product
copy change in this integration rebase.

Everything below is historical evidence from before this final
integration rebase, including earlier draft statuses and
export/fingerprint measurements.

Thread file links now use the workspace in every transcript. A link
outside the current workspace opens the correct thread and selects its
file tab. The old web modal, mobile file screen and their separate
mutation state are removed; attachment, blob and bot viewers keep their
existing flows.

The web editor now has one highlighting path, using off-main-thread
tokens. Architecture and client documentation describe the completed
workspace, module surfaces and scoped file lifecycle. No database
migration, protocol change or native configuration change.

Stage 7 of 7 in stack #643, based on stage 6. All seven implementation
PRs stay drafts. The maintainer merges the whole stack at once after
verification, including the deferred device check.

Related: #613

## Pre-merge corrective rebase

Rebased all seven draft layers onto dev
`4bb71c80142e0c1d0616502ce428ca2bf19d8cad`, preserving the merged thread
scroll memory and default tool-group folding. The stack includes
directory-handle confinement in stage 3, mobile source scroll
restoration in stage 4, document root checkpoints/mutation fences plus
queued-watch cancellation and onward capability in stage 5, and retained
hidden-document root checks in stage 6. No manual feed/work-fold edits.

Current-head install, gen:check, full typecheck, lint, format:check,
production web build and iOS/Android exports passed with `nice` at every
stage after the final rebase. Both nightly native fingerprints match dev
at all seven layers. Current-head CI is green on all seven PRs,
including all four test shards for each layer.

On the final head, all 9 changed integration files passed serially
**locally after the static checks and exports finished**: **53 tests,
10,694 assertions, 0 failures**. The merged thread-scroll integration
also passed (3 tests / 23 assertions), making **56 tests / 10,717
assertions across 10 files**, with every private temp directory clean.
The same ten files also passed serially on the otherwise idle review
machine. Introducing-stage regressions passed separately in stages 3–6:
directory ABA/refusal and bounded listing locally in stage 3;
highlighting locally and previews/relay on the review machine in stage
4; retained root/cancellation locally and onward watch/existing watches
on the review machine in stage 5;
root/cancellation/onward/resource/access files on the review machine in
stage 6. Every test invocation used `nice` and ran one file at a time.

The controlled ancestor swap returns only the original inside filename
and size; a substituted ancestor before handle acquisition is refused.
Identical-byte checkout replacement rejects the retained draft and
direct stale write/delete, with and without reopening the watch;
explicit discard/reload permits the new checkout. Thirty-five released
queued additions leave no subscriptions, native watches or callbacks; a
fresh subscription works. A real three-gateway route negotiates the
watch feature, delivers a change and releases the home worker watch.

There is **no claimed full local-suite pass** for this corrective
rebase. Earlier local full attempts were interrupted by SIGTERM. Before
the last dev rebase, a detached `setsid nohup` / `nice` attempt ran
beyond the tool timeout but failed existing computer-move
reachability/discovery cases under load; its owned process group was
then stopped with SIGINT (exit 130, private temp directory clean). One
earlier computer-move owner-discovery failure passed in isolation (1
test / 30 assertions). A first stage-4 preview run on the loaded host
also failed after its 100 ms computer-link heartbeat expired; the same
head passed all 12 previews on the idle review machine. These failures
and interrupted runs are not counted as passes. The maintainer
authorized green CI on all seven PRs plus serial corrective/stack files
as the fallback.

Current initial thread JS is 766,417 gzip bytes versus dev 756,367:
cumulative **+10,050 bytes / 9.81 KiB**, within the 15 KiB budget. The
new stage-6 maximum is +14.45 KiB, also within budget; editor and
grammar imports remain deferred. Other detailed timing/endurance
measurements below are historical and are not relabelled as measurements
on this head.

Fresh production-browser review of this final head on the separate
review machine covered light/dark at 1440/820/390 px, short/long names,
docked summary with no module, Files with summary closed, floating
summary and Escape, narrow/phone summary and Files sheets, and the phone
tab-switcher sheet. Switching away/back restored the saved web-file
offset (1200 px); `sample.ts:31-40` scrolled to and highlighted the
range. No horizontal document overflow was found at narrow/phone widths.
The owned browser tab, servers, container, tunnel, runtime directory and
review checkout were removed afterward.

Native macOS/Windows directory-handle execution remains unverified.
**Device check pending**, including native mobile scroll restoration on
switching away/back; typecheck, exports and web review do not establish
that runtime result. All seven PRs stay drafts for the maintainer's
independent re-check of stack #643; none was marked ready or merged.

## Earlier implementation verification (historical)

- Passed with `nice`: install, generation check, full typecheck (Svelte:
0 errors/warnings), lint, formatting check and production web build.
Full `check:tmp`: 2,785 passed, 166 skipped, 0 failed; nothing left in
the private temp directory.
- iOS/Android exports passed. Nightly native fingerprints match the
baseline: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`.
- Initial thread JS: 764,558 bytes gzip versus dev 754,751: +9,807 bytes
/ 9.58 KiB (15 KiB budget). Removing the old modal reduces stage 6 by
4,737 bytes gzip. Editor and grammar code remain deferred.
- Production browser reviewed in light/dark at 1440/820/390 px, with
short and long names, Files in a panel/sheet, line/range source, summary
placement, editing, Undo and keyboard save. File views are tabs; no
legacy thread-file modal host remains.
- On the isolated review machine, 30 opens of 100 KiB: plain text p50
48.6 ms / p95 65.2 ms; stable view p95 81.9 ms. 100 warm switches: p50
31.9 ms / p95 32.4 ms, **0 additional Files requests**. After warmup and
20 edit/discard/close cycles with explicit GC, retained JS heap grew
421,077 bytes / 0.40 MiB (5 MiB budget).
- Three alternating 2-minute renderer pairs, 1000 turns / 2800 messages
per run: baseline/current handler p95 0.4/0.4, 0.4/0.4 and 0.5/0.5 ms.
Pairs 2/3 renderer task busy: 12.99/12.57% and 12.62/12.76%; layout
5.27/5.05 and 5.15/5.13 ms/s. Long-task totals for those pairs:
3752/3704 and 3723/3724 ms. The first baseline trace is partial and is
not used for a full-duration CPU comparison.
- Production endurance: 30 minutes / 648 open-edit-Undo-close cycles,
including 22 offline/reconnect draft checks, completed without an error.
Task busy 9.08%, layout 4.93 ms/s, 43 long tasks / 2939 ms total. rAF
gap p95 16.8 ms; 100 gaps above 34 ms across 107,732 callbacks (0.093%).
This is a scheduler proxy, **not compositor lost frames**. Final heap
after GC: 69,592,520 bytes / 66.37 MiB; the separate warmed 20-cycle
retained-heap result above is the budget check. Both runs used a visible
1440×900 Chromium page with reduced motion disabled.
- File 100 KiB under browser transport emulation (100 ms, 10 Mbit/s), 30
opens over a private HTTP/2 proxy: plain p50 248.6 ms / p95 265.5 ms,
stable p95 282.3 ms. A separate HTTP/1.1 proxy applies 100 ms response
delay and a shared 1.25 MB/s response budget outside the browser: 30
opens, plain p50 265.0 ms / p95 265.6 ms, stable p95 282.3 ms, maximum
565.6 ms. Both controlled proxy runs meet the 800 ms goal; neither
proves physical linked-home WAN latency.
- Diagnostic limitation retained: browser-wide HTTP/1.1 emulation over
the same BFF had plain p95 4181.1 ms, with about 3.9 s spent before
request dispatch in slow samples. That result differs from the
independently paced HTTP/1.1 run above and is not silently discarded or
presented as a confirmed application fix. No speculative SSE code change
was made: a focused real-gateway/worker cancellation probe passed.
- Directory reload, 30 samples: local p95 33.7 ms, browser-shaped
HTTP/1.1 p95 133.7 ms. A 10,000-child directory kept 45 tree items in
DOM. These are reload/virtualization measurements, not cold
module-import times. Editor input on 100 KiB, 30 inputs with Undo: p50
27.6 ms / p95 35.0 ms to the second frame (including automation round
trips).
- Three alternating production SPA navigation pairs, 30 measured
openings per member after warmup: baseline/current p95 108.5/107.8,
109.7/109.7 and 113.6/106.9 ms; p50 67.2/71.1, 86.7/78.3 and 79.0/72.5
ms. These measure thread articles/composer readiness to the next frame,
not browser TTI or cold startup. An earlier 20-sample probe had p95
96.6/106.8 ms and exceeded the tolerance; the larger alternating runs
are reported alongside it rather than suppressing that sample.
- Measurements used headless Chromium with software rendering. Actual
compositor lost frames, isolated application RSS, bitmap memory and
native process/JS profiling remain unmeasured. Browser/proxy transport
shaping is a controlled surrogate, not a measurement of a physical
linked computer's WAN route. Native results are not claimed.
- **Device check pending**: Device support is unavailable. The
maintainer authorized typecheck, exports and unchanged fingerprints
while continuing. Consolidated device review remains required before
merge; mobile runtime performance is unverified.
- No UI tests added. Existing gateway/worker integration covers scope,
paths, bounded listing, watch lifecycle and conflicts.

## Copy audit — docs/copy.md §8

- No new UI labels or errors. Existing workspace actions replace the old
modal actions.
- File names remain selectable and paths keep their explicit line/range
meaning. Attachment copy is unchanged.
- No new glossary terms, humorous copy or inspiration references. Short
and long paths retain truncation and explicit actions in both themes at
desktop, narrow and phone widths; native device review is pending.
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