Repository navigation
perf(shell): make settled transcript cards free per frame - #3490
Conversation
Settled cards (quiet tools, background jobs, agent results) keep one rendered frame keyed by width, card style and revision, so a finished card costs nothing on later frames; cards still changing re-render as before. Frames are byte-identical to the previous renderer. Runtime render-cache tests added. Refs #2921 Refs #3489
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Changes
lib/shell-card.tsinvalidate()clears itlib/background-jobs-tools.tsextensions/gentle-agents.tsextensions/quiet-tools.tstests/shell-render-cache-runtime.test.tsTest plan
node --experimental-strip-types --teston this state's files (render cache, shell-card, gentle-agents, background-jobs, quiet tools, changes, gentle-shell, desktop RPC/feed, change-diff) with--test-concurrency=1: 973 tests, 972 pass, 0 fail, 1 skipped (opt-in benchmark).scripts/check-types.mjs: 0 diagnostics.renderCardwrap path (25-33 % of the main thread before) no longer appears.Chain context
main. Base:main.mainatbe74d44ce.extensions/gentle-shell.tsmentioned in perf(shell): conversation cards rebuild with renderCard on every frame #2921 (cardComponent), and Desktop UI changes.Refs #2921
Refs #3489
Summary by CodeRabbit