Skip to content

Commit 053384f

Browse files
authored
refactor(ui): adopt @lit/task for async data lifecycle (#115131)
* refactor(ui): adopt @lit/task for async data lifecycle - migrate chat diff/discussion, new-session discovery, and MCP app setup reads - migrate usage, plugins, transcript/checkpoint, worktree, memory-import, and model-setup reads - delete read-lane request counters, abort-controller epochs, and current-request predicates while retaining mutation epochs and keyed caches * chore(ui): drop dead plugin search helper (knip) * chore(deps): allowlist @lit/task as root UI-workspace dependency in knip * fix(ui): preserve usage refresh lifecycle * test(ui): source workboard fixture copy from en locale (raw-copy gate) * test(ui): read workboard fixture copy via t() (typed locale access) * style: format test-support imports
1 parent 74954fd commit 053384f

29 files changed

Lines changed: 1964 additions & 1611 deletions

‎config/knip.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ const rootToolingAndWorkspaceDependencies = [
248248
"@copilotkit/aimock",
249249
"@lit-labs/signals",
250250
"@lit/context",
251+
"@lit/task",
251252
// scripts/ui.js anchors these lookups at ui/package.json before invoking the UI workspace.
252253
"@vitest/browser-playwright",
253254
"dompurify",

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,6 +1980,7 @@
19801980
"@copilotkit/aimock": "1.37.2",
19811981
"@lit-labs/signals": "0.3.0",
19821982
"@lit/context": "1.1.6",
1983+
"@lit/task": "1.0.3",
19831984
"@mdx-js/mdx": "3.1.1",
19841985
"@shikijs/core": "4.3.1",
19851986
"@shikijs/engine-javascript": "4.3.1",

‎pnpm-lock.yaml‎

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ui/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@create-markdown/preview": "2.0.3",
1919
"@lezer/highlight": "1.2.3",
2020
"@lit/context": "1.1.6",
21+
"@lit/task": "1.0.3",
2122
"@modelcontextprotocol/ext-apps": "1.7.4",
2223
"@modelcontextprotocol/sdk": "1.30.0",
2324
"@noble/ed25519": "3.1.0",

0 commit comments

Comments
 (0)