Repository navigation
Scope DiffPanel patch cache keys by theme - #94
Merged
Merged
Conversation
- pass a cache scope into `getRenderablePatch` and include resolved theme in DiffPanel cache keys - add a test proving `buildPatchCacheKey` changes when cache scope changes
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
WalkthroughThe changes extend the caching mechanism in diff rendering to support theme-scoped cache keys. The Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
radroid
referenced
this pull request
in radroid/t3code
Aug 8, 2026
…dored subtrees Closes two advisories against the desktop app the fork ships. Upstream is still on 41.5.0, so the sync does not deliver this — it is a fork-owned pin that retires itself once upstream passes 41.10.3. - GHSA #94 (high): a sandboxed iframe can bypass the `allow-popups` restriction via the OpenURL navigation path. Fixed in 41.10.3. - GHSA #92 (medium): `ProtocolResponse.url` reuses the default session cache instead of the registering session. Fixed in 41.9.1. Dependabot bumped `apps/desktop/package.json` alone, so `vp install` failed on the frozen lockfile in 40s and CI never reached typecheck. Regenerated `pnpm-lock.yaml` with `pnpm install --lockfile-only`; the diff stays inside the electron tree and nets -37 lines. Also adds `.github/dependabot.yml` (fork-owned; upstream has none) ignoring `.repos/**`, and records the seam-ledger rows the change owes: `apps/desktop/package.json` as row 36, and `pnpm-lock.yaml` grown to risk 12416, now the top row.
github-actions Bot
referenced
this pull request
in radroid/t3code
Aug 10, 2026
…dored subtrees Closes two advisories against the desktop app the fork ships. Upstream is still on 41.5.0, so the sync does not deliver this — it is a fork-owned pin that retires itself once upstream passes 41.10.3. - GHSA #94 (high): a sandboxed iframe can bypass the `allow-popups` restriction via the OpenURL navigation path. Fixed in 41.10.3. - GHSA #92 (medium): `ProtocolResponse.url` reuses the default session cache instead of the registering session. Fixed in 41.9.1. Dependabot bumped `apps/desktop/package.json` alone, so `vp install` failed on the frozen lockfile in 40s and CI never reached typecheck. Regenerated `pnpm-lock.yaml` with `pnpm install --lockfile-only`; the diff stays inside the electron tree and nets -37 lines. Also adds `.github/dependabot.yml` (fork-owned; upstream has none) ignoring `.repos/**`, and records the seam-ledger rows the change owes: `apps/desktop/package.json` as row 36, and `pnpm-lock.yaml` grown to risk 12416, now the top row.
radroid
referenced
this pull request
in radroid/t3code
Aug 10, 2026
…dored subtrees Closes two advisories against the desktop app the fork ships. Upstream is still on 41.5.0, so the sync does not deliver this — it is a fork-owned pin that retires itself once upstream passes 41.10.3. - GHSA #94 (high): a sandboxed iframe can bypass the `allow-popups` restriction via the OpenURL navigation path. Fixed in 41.10.3. - GHSA #92 (medium): `ProtocolResponse.url` reuses the default session cache instead of the registering session. Fixed in 41.9.1. Dependabot bumped `apps/desktop/package.json` alone, so `vp install` failed on the frozen lockfile in 40s and CI never reached typecheck. Regenerated `pnpm-lock.yaml` with `pnpm install --lockfile-only`; the diff stays inside the electron tree and nets -37 lines. Also adds `.github/dependabot.yml` (fork-owned; upstream has none) ignoring `.repos/**`, and records the seam-ledger rows the change owes: `apps/desktop/package.json` as row 36, and `pnpm-lock.yaml` grown to risk 12416, now the top row.
2 tasks done
TomCohenDev
pushed a commit
to TomCohenDev/t3code
that referenced
this pull request
Oct 18, 2026
…-machine-map-format style(machine-map): format machine map read warning
yasinuslu
added a commit
to yasinuslu/t3code
that referenced
this pull request
Oct 28, 2026
…ssion cannot be resumed' (pingdotgg#94) from fix/claude-resume-recovery into dev
gmackie
pushed a commit
to gmackie/t3code
that referenced
this pull request
Oct 29, 2026
…to the current composer' (pingdotgg#94) from T3CODE-55-composer-review-port into custom-local
Quinntyx
added a commit
to Quinntyx/t3code
that referenced
this pull request
Nov 18, 2026
Quinntyx
added a commit
to Quinntyx/t3code
that referenced
this pull request
Nov 19, 2026
Reverts pingdotgg#94. A form POST that opens a new tab now opens an ordinary Browser tab that replays the original body, content type and referrer instead of a GET.
Abdullah1738
added a commit
to Abdullah1738/t3code
that referenced
this pull request
Nov 24, 2026
Merge pinned main 8c61334 into imessage/marker-cross-thread-reads at 1c89090. Merge base: d5a5ee1. Preserve pingdotgg#83 marker/cross-thread cache telemetry, separate evidence/detail counters, tick attribution and gate-admitted physical counts alongside pingdotgg#94 durable ambiguous wake recovery/status diagnostics and pingdotgg#97 runtime log isolation for non-installed entry scripts. Conflict decision (one hunk): - integrations/spectrum-bridge/src/toollog.ts:39, disjoint-intent: retain HEAD's ID_KEYS including tickId and NUMBERS including markerPolls, crossThreadReads, crossThreadPages, markerSkips, fallbacks, trackedThreads, detailReads, evidenceReads, discoveryReads, markerChecks and crossThreadChecks. These are supersets of main's ID/numeric keys. Insert main's WAKE_EVENTS allowlist between those declarations, retaining all six lifecycle events. Main's already-merged wake metadata filtering and log-cap exemptions remain intact. Both independent behaviors survive; no competing design answer was selected and no product decision arose. Only the marked conflict region was manually edited. Every byte outside that region and every other pre-existing staged entry were verified unchanged, including router.ts and installed-entry log isolation. Repeated toollog allowlist conflicts remain a reconciliation hotspot. Narrow local validation with existing dependencies: - bun test test/toollog.test.ts: 46 pass, 0 fail, 158 assertions. - git diff --cached --check passed; no conflict markers or unstaged files. - Original index comparison and reviewed tree reconfirmed before commit. Parent owns merged-head Sol re-review and both required offbox commands. Previous 1c89090 test results do not certify this merged tree. No fetch, push, install, deploy, restart or live database access occurred. Model: gpt-6.1-sol; harness: Codex (T3 Code).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DiffPanelpatch parsing to pass a cache scope intobuildPatchCacheKeydiff-panel:light/diff-panel:dark) to avoid cross-theme reusegetRenderablePatchbehavior unchanged aside from configurable cache scopingbuildPatchCacheKeychanges when cache scope changesTesting
apps/web/src/lib/diffRendering.test.tsverifies different cache scopes produce different keysNote
Low Risk
Low risk: changes only adjust diff parsing cache-key scoping to avoid cross-theme reuse, plus a small unit test; no data/auth flows affected.
Overview
DiffPanelnow scopes patch parsing cache keys by the resolved theme (e.g.diff-panel:lightvsdiff-panel:dark) by threading acacheScopeintogetRenderablePatch()andbuildPatchCacheKey()usage, preventing cached diff artifacts from being reused across themes.Adds a unit test ensuring
buildPatchCacheKey()output changes when the provided scope changes.Written by Cursor Bugbot for commit 8a567ba. This will update automatically on new commits. Configure here.
Note
Scope DiffPanel patch cache keys by theme and modify
apps/web/src/components/DiffPanel.tsxto passcacheScopetogetRenderablePatchAdd
cacheScopetogetRenderablePatchand includeresolvedThemein the DiffPanel memo to derive theme-scoped patch cache keys; add a test forbuildPatchCacheKeyscope variance in diffRendering.test.ts.📍Where to Start
Start with the
DiffPaneluseMemoforrenderablePatchin DiffPanel.tsx and then reviewgetRenderablePatchusage ofcacheScope.Macroscope summarized 8a567ba.
Summary by CodeRabbit
Release Notes
Improvements
Tests