cursor/t3reviewdiffview-observer-issue-134d
In mergeTokensByRowId, each tokensByRowId[rowId] = tokens assignment triggered the didSet observer (Swift Dictionary is a value type), causing tokenAttributedStringsByRowId.removeAll(), clampHorizontalOffsets(), and setNeedsDisplayForVisibleBounds() to fire N times — once per patched row. This defeated the incremental cache invalidation the method intended and multiplied layout work for large token patches. Add a _suppressTokensByRowIdDidSet flag so the didSet observer is skipped during the merge loop. The method already performs its own targeted cache invalidation (removeValue per row) and calls clampHorizontalOffsets() and setNeedsDisplayForVisibleBounds() once at the end.
T3 Code
T3 Code is a minimal web GUI for coding agents (currently Codex and Claude, more coming soon).
Installation
Warning
T3 Code currently supports Codex and Claude. Install and authenticate at least one provider before use:
- Codex: install Codex CLI and run
codex login- Claude: install Claude Code and run
claude auth login
Run without installing
npx t3
Desktop app
Install the latest version of the desktop app from GitHub Releases, or from your favorite package registry:
Windows (winget)
winget install T3Tools.T3Code
macOS (Homebrew)
brew install --cask t3-code
Arch Linux (AUR)
yay -S t3code-bin
Some notes
We are very very early in this project. Expect bugs.
We are not accepting contributions yet.
Observability guide: docs/observability.md
If you REALLY want to contribute still.... read this first
Before local development, prepare the environment and install dependencies:
# Optional: only needed if you use mise for dev tool management.
mise install
bun install .
Read CONTRIBUTING.md before opening an issue or PR.
Need support? Join the Discord.
Releases
7
Android APK · build 49
Latest
Languages
TypeScript
95.5%
MDX
2.1%
JavaScript
0.7%
Astro
0.3%
CSS
0.3%
Other
0.9%