Files
t3code/packages/client-runtime/package.json
T
olafuraandClaude Opus 4.8 5e805ec7f8 fix: harden lazy-load reset and dedup against window reshape (PR review)
Detect a live-window reshape from an order-independent oldest boundary
(`liveWindowOldestActivityId`: min by createdAt/id) instead of
`activities[0]`. The reducer sorts unsequenced rows to the end while the
server snapshot lists legacy unsequenced rows first, so the first live
append re-sorts the array and shifts index 0 — which previously looked
like a reshape and wrongly cleared the user's scrolled-up history.

Run the older-pages reset in useLayoutEffect so the cleared state commits
before paint; otherwise a thread switch renders one frame with the previous
thread's lazy-loaded pages still merged in, flashing stale work-log and
approval rows.

Applied to both web (ChatView) and mobile (use-thread-composer-state); the
shared sentinel helper lives in client-runtime with unit tests.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-20 17:27:49 +02:00

153 lines
4.2 KiB
JSON

{
"name": "@t3tools/client-runtime",
"private": true,
"type": "module",
"exports": {
"./connection": {
"types": "./src/connection/index.ts",
"default": "./src/connection/index.ts"
},
"./authorization": {
"types": "./src/authorization/index.ts",
"default": "./src/authorization/index.ts"
},
"./environment": {
"types": "./src/environment/index.ts",
"default": "./src/environment/index.ts"
},
"./errors": {
"types": "./src/errors/index.ts",
"default": "./src/errors/index.ts"
},
"./rpc": {
"types": "./src/rpc/index.ts",
"default": "./src/rpc/index.ts"
},
"./operations": {
"types": "./src/operations/index.ts",
"default": "./src/operations/index.ts"
},
"./operations/projects": {
"types": "./src/operations/projects.ts",
"default": "./src/operations/projects.ts"
},
"./platform": {
"types": "./src/platform/index.ts",
"default": "./src/platform/index.ts"
},
"./relay": {
"types": "./src/relay/index.ts",
"default": "./src/relay/index.ts"
},
"./state/auth": {
"types": "./src/state/auth.ts",
"default": "./src/state/auth.ts"
},
"./state/assets": {
"types": "./src/state/assets.ts",
"default": "./src/state/assets.ts"
},
"./state/connections": {
"types": "./src/state/connections.ts",
"default": "./src/state/connections.ts"
},
"./state/entities": {
"types": "./src/state/entities.ts",
"default": "./src/state/entities.ts"
},
"./state/filesystem": {
"types": "./src/state/filesystem.ts",
"default": "./src/state/filesystem.ts"
},
"./state/git": {
"types": "./src/state/git.ts",
"default": "./src/state/git.ts"
},
"./state/models": {
"types": "./src/state/models.ts",
"default": "./src/state/models.ts"
},
"./state/orchestration": {
"types": "./src/state/orchestration.ts",
"default": "./src/state/orchestration.ts"
},
"./state/presentation": {
"types": "./src/state/presentation.ts",
"default": "./src/state/presentation.ts"
},
"./state/preview": {
"types": "./src/state/preview.ts",
"default": "./src/state/preview.ts"
},
"./state/projects": {
"types": "./src/state/projects.ts",
"default": "./src/state/projects.ts"
},
"./state/project-grouping": {
"types": "./src/state/projectGrouping.ts",
"default": "./src/state/projectGrouping.ts"
},
"./state/relay": {
"types": "./src/state/relayDiscovery.ts",
"default": "./src/state/relayDiscovery.ts"
},
"./state/review": {
"types": "./src/state/review.ts",
"default": "./src/state/review.ts"
},
"./state/runtime": {
"types": "./src/state/runtime.ts",
"default": "./src/state/runtime.ts"
},
"./state/server": {
"types": "./src/state/server.ts",
"default": "./src/state/server.ts"
},
"./state/session": {
"types": "./src/state/session.ts",
"default": "./src/state/session.ts"
},
"./state/shell": {
"types": "./src/state/shell.ts",
"default": "./src/state/shell.ts"
},
"./state/source-control": {
"types": "./src/state/sourceControl.ts",
"default": "./src/state/sourceControl.ts"
},
"./state/terminal": {
"types": "./src/state/terminal.ts",
"default": "./src/state/terminal.ts"
},
"./state/threads": {
"types": "./src/state/threads.ts",
"default": "./src/state/threads.ts"
},
"./state/thread-reducer": {
"types": "./src/state/threadReducer.ts",
"default": "./src/state/threadReducer.ts"
},
"./state/thread-sort": {
"types": "./src/state/threadSort.ts",
"default": "./src/state/threadSort.ts"
},
"./state/vcs": {
"types": "./src/state/vcs.ts",
"default": "./src/state/vcs.ts"
}
},
"scripts": {
"typecheck": "tsgo --noEmit",
"test": "vp test run"
},
"dependencies": {
"@t3tools/contracts": "workspace:*",
"@t3tools/shared": "workspace:*",
"effect": "catalog:"
},
"devDependencies": {
"@effect/vitest": "catalog:",
"vite-plus": "catalog:"
}
}