Skip to content

Instantly share code, notes, and snippets.

View Pyseph's full-sized avatar

Pyseph Pyseph

  • 16:10 (UTC +01:00)
View GitHub Profile
@Pyseph
Pyseph / README.md
Created November 6, 2026 13:49
t3code: thread details pull request row right-click menu, before and after

Thread details pull request row: right-click menu, before and after

Screenshots for the pingdotgg/t3code PR that gives the thread details card's pull request row the pull request link menu.

  • before.png: main at 6577c6b618. Right-clicking the pull request row opens the card's Show in thread details menu.
  • after.png: the branch at 87e7f865c1. Right-clicking the same row opens Copy link and Open on GitHub.

Both come from the web client in the repo's full-app browser harness (apps/web/test/fakeEnvironment.ts): the real AppRoot and router against the in-process fake server, at 1400x900, with a VCS status whose branch has pull request #42 (fake data). The web build draws the "after" menu with its DOM fallback; the desktop app shows the same items in a native menu. Each image is a 2x crop around the card.

@Pyseph
Pyseph / README.md
Last active November 6, 2026 14:08
t3code check:changed: listing ignored inputs without walking node_modules (size:M revision of #30736), timings and equivalence rows

check:changed ignored-input listing, size:M revision: raw rows

Branch perf/check-changed-skip-node-modules, commits 6e8168a03f and 24412204d4 (batches sized from the longest path) on 6577c6b618 (pingdotgg/t3code main). It replaces #30736 (a8f1b5b852); the raw rows for that revision are in https://gist.github.com/Pyseph/39d10df5712b73c447479995f4f029e0.

Machine: Windows 11 Home 10.0.26200, NTFS, AMD Ryzen 9 9950X (16 cores, 32 threads), git 2.47.0.windows.1, Node 26.12.1 via vp env exec --node 26.12.1. Timed runs ran under an exclusive lock that kept this project's other benchmarks and tests off the machine, at below-normal priority. Other unrelated work on the machine was not stopped.

Files

File What
@Pyseph
Pyseph / cold.ndjson
Created November 5, 2026 13:51
t3code: thread memory after a restart and the left-thread budget. Heap and paint rows by scenario (browser harness), test logs, harness
{"arm":"full","mode":"coldopen","run":1,"size":"W100","shape":"wire","turns":100,"heavy":6,"enc":"full","policy":"none","pins":"old","tail":60,"seed":true,"phase":"fixture","estimateMs":1,"estimateMB":0.91,"itemsJsonMB":0.59,"items":900}
{"arm":"full","mode":"coldopen","run":1,"size":"W100","shape":"wire","turns":100,"heavy":6,"enc":"full","policy":"none","pins":"old","tail":60,"seed":true,"phase":"cold-open","thread":"heavy-0","paintMs":1199.9,"decodedMs":877.1,"frames":101,"blankFrames":4,"maxGapMs":808.3,"released":false,"endVisible":true}
{"arm":"full","mode":"coldopen","run":1,"size":"W100","shape":"wire","turns":100,"heavy":6,"enc":"full","policy":"none","pins":"old","tail":60,"seed":true,"phase":"cold-open","thread":"heavy-1","paintMs":890.9,"decodedMs":626.7,"frames":67,"blankFrames":1,"maxGapMs":574.5,"released":false,"endVisible":true}
{"arm":"full","mode":"coldopen","run":1,"size":"W100","shape":"wire","turns":100,"heavy":6,"enc":"full","policy":"none","pins":"old","tail":60,"seed":true,"phase":"co
@Pyseph
Pyseph / RAM-26413.md
Created November 5, 2026 12:54
t3code: finished delegated sessions, measurement notes for the release-on-completion fix

RAM-26413: release a finished delegated child's provider session (worker win-3ee5c4c, V scope)

Issue: pingdotgg/t3code#26413 (open, no labels, no maintainer comment: NOT triaged). Related: #30148 (ordinary threads, not addressed), #25624 (open PR, configurable idle timeout), #16917, #15173. Worktree: <SCRATCH>\t3code-26413, branch fix/release-finished-delegate-sessions from origin/main 8b44f42b14. Commit 5e79b4b632ebe70d87193252d913f4a21d4d3d45 (not pushed). PR draft: ...\RAM\26413\PR.md. Raw measurement rows and the scratch measurement test: ...\RAM\26413\measure-main.jsonl, measure-branch.jsonl, measure26413.test.ts.txt.

Candidate: release a completed delegate's session at once (ranked 1)

  • Size: +80 source lines in 4 files, 322 insertions / 2 deletions total with tests (9 files).
  • Impact: removes up to 30 minutes of one claude process plus MCP children per finished delegate (0.86-0.94 GB each on this PC; #26413 saw 12 such sessions, about 5 GB).
  • State: committed locally, tested, not
@Pyseph
Pyseph / raw--rows.ndjson
Created November 5, 2026 12:54
t3code: diff file tree Expand all folders, timing rows by folder count (browser harness)
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"open","ms":766.3,"longest":159,"blocking":109,"nodes":112}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Collapse all folders","rep":0,"dirs":300,"directories":601,"ms":25.3,"longest":0,"blocking":0}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Expand all folders","rep":1,"dirs":300,"directories":601,"ms":176.9,"longest":161,"blocking":111}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Collapse all folders","rep":2,"dirs":300,"directories":601,"ms":24.1,"longest":0,"blocking":0}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Expand all folders","rep":3,"dirs":300,"directories":601,"ms":140.5,"longest":124,"blocking":74}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Collapse all folders","rep":4,"dirs":300,"directories":601,"ms":25,"longest":0,"blocking":0}
{"arm":"main","run":1,"files":600,"lines":30,"scenario":"Expand all folders","rep":5,"dirs":300,"directories":601,"ms":138.5,"longest":125,"block
@Pyseph
Pyseph / raw--ab-instant.ndjson
Created November 5, 2026 12:54
t3code: Files panel Expand all, browser cost by folder count and width, profiles and rows
ROW {"arm":"main","run":"A1","warm":true,"folders":200,"entries":1482,"width":64,"delayMs":-1,"peakInFlight":64,"callsDuringExpand":200,"clickToLastResponseMs":125,"clickToPaintMs":124,"longTasks":0,"longTaskTotalMs":0,"longTaskMaxMs":0,"blockingMs":0,"commits":13,"renders":310,"panelRenders":13,"commitsEverDuring":13}
ROW {"arm":"main","run":"A1","warm":false,"folders":500,"entries":3760,"width":64,"delayMs":-1,"peakInFlight":64,"callsDuringExpand":500,"clickToLastResponseMs":301,"clickToPaintMs":299,"longTasks":2,"longTaskTotalMs":175,"longTaskMaxMs":115,"blockingMs":75,"commits":18,"renders":420,"panelRenders":18,"commitsEverDuring":18}
ROW {"arm":"main","run":"A1","warm":false,"folders":500,"entries":3760,"width":4,"delayMs":-1,"peakInFlight":4,"callsDuringExpand":500,"clickToLastResponseMs":923,"clickToPaintMs":924,"longTasks":0,"longTaskTotalMs":0,"longTaskMaxMs":0,"blockingMs":0,"commits":150,"renders":3312,"panelRenders":150,"commitsEverDuring":150}
ROW {"arm":"main","run":"A1","warm":false,"folders":
@Pyseph
Pyseph / raw--A-fresh.ndjson
Created November 5, 2026 12:54
t3code: chat view composer-focus leak, heap rows by scenario (browser harness), test logs
{"phase":"00-before-mount","attachedNodes":249,"heapUsedMB":76.7,"heapTotalMB":78.7,"domNodes":642,"listeners":43,"arm":"main","mode":"heap","run":1,"cached":false,"heavy":20}
{"phase":"01-shell-only","attachedNodes":10053,"heapUsedMB":199.9,"heapTotalMB":205.8,"domNodes":12717,"listeners":4555,"arm":"main","mode":"heap","run":1,"cached":false,"heavy":20,"shells":300}
{"phase":"02-opened-4","attachedNodes":13163,"heapUsedMB":258.6,"heapTotalMB":269.6,"domNodes":23867,"listeners":4970,"arm":"main","mode":"heap","run":1,"cached":false,"heavy":20,"k":4}
{"phase":"02-opened-8","attachedNodes":13163,"heapUsedMB":286.6,"heapTotalMB":298.1,"domNodes":23867,"listeners":4970,"arm":"main","mode":"heap","run":1,"cached":false,"heavy":20,"k":8}
{"phase":"02-opened-12","attachedNodes":13163,"heapUsedMB":317.4,"heapTotalMB":328.6,"domNodes":23867,"listeners":4970,"arm":"main","mode":"heap","run":1,"cached":false,"heavy":20,"k":12}
{"phase":"02-opened-20","attachedNodes":13163,"heapUsedMB":370.4,"heapTotalMB":382.2,"domNode
@Pyseph
Pyseph / raw-corr.jsonl
Created November 5, 2026 09:03
t3code: server typecheck state keyed on pnpm-lock.yaml, a falsified idea: comparison and timing rows (Windows)
{"step":"baseline","head":"9d39ec0b60","files":["revision","typecheck.tsbuildinfo"],"rev":"f376ff44ff","cand":{"code":0,"ms":14263,"cache":"miss","diags":475,"errors":0},"clean":{"code":0,"ms":11599,"diags":475,"errors":0},"same":true}
{"step":"git:origin/main~40","head":"8b44f42b14","files":["revision","typecheck.tsbuildinfo"],"rev":"9fd6812a90","cand":{"code":2,"ms":11387,"cache":"miss","diags":523,"errors":15},"clean":{"code":2,"ms":10247,"diags":523,"errors":15},"same":true}
{"step":"git:head","head":"9d39ec0b60","files":["revision"],"rev":"f376ff44ff","cand":{"code":0,"ms":2371,"cache":"hit","diags":475,"errors":0},"clean":{"code":0,"ms":13570,"diags":475,"errors":0},"same":true}
{"step":"git:origin/main~150","head":"594532a73f","files":["revision","typecheck.tsbuildinfo"],"rev":"863fca59a8","cand":{"code":2,"ms":13300,"cache":"miss","diags":523,"errors":15},"clean":{"code":2,"ms":11605,"diags":523,"errors":15},"same":true}
{"step":"git:head","head":"9d39ec0b60","files":["revision"],"rev":"f376ff44ff","c
@Pyseph
Pyseph / bench.cjs
Created November 5, 2026 07:21
t3code: server typecheck with HEAD-cleared incremental state, 92 correctness comparisons and timing rows on Windows
// v3 (c7c1d31b85): baseline B1 = `vp run tcbase` (cached task running `effect-tsgo tsrs --noEmit`, the new main script's command), candidate C = `vp run typecheck` (incremental task).
// usage: node bench.cjs <scenario> [n] scenarios: noop body sig contract cold
// Arms: C = candidate task `vp run typecheck` (incremental), B1 = `vp run tcbase` (tsc --noEmit, cached task = old `--cache` behaviour),
// B0 = `vp run --no-cache tcbase` (old `vp run typecheck` in the package: script cache is off).
const fs = require('node:fs'), path = require('node:path'), cp = require('node:child_process');
const { run } = require('./tm.cjs');
const { overlay, DIR, head } = require('./common.cjs');
const WT = '<SCRATCH>/t3code-b102';
const SRV = WT + '/apps/server';
const ARMS = { C: ['vp', 'run', 'typecheck'], B1: ['vp', 'run', 'tcbase'], B0: ['vp', 'run', '--no-cache', 'tcbase'] };
@Pyseph
Pyseph / aa-main-v2--base-w4-0.json
Created November 5, 2026 01:43
t3code: Files Expand all, shared Git ignore checks plus wider client, timing rows, parity digests and harness (Windows)
{"label":"base-w4-0","impl":"base","inflight":4,"cwd":"<SCRATCH>\\t3code-perf-work\\FS001\\fixtures\\h","node":"v26.12.1","platform":"win32","path0":["<HOME>\\AppData\\Local\\pnpm","<HOME>\\AppData\\Local\\vite-plus\\data\\js_runtime\\node\\26.12.1","<HOME>\\bin"],"runs":[{"iteration":0,"durationMs":97402.8508,"cpuUserMs":7969,"cpuSystemMs":51407,"elu":0.8721305357438448,"directoriesRead":4646,"totalEntries":36215,"responseJsonBytesSum":3564938,"gzipBytesSum":847124,"ignoredCount":0,"serializeMs":359.4879999996691,"errors":0,"digest":"d1aa68f16b4add6bbdc9f203acab910be18353b2a27ae3931eed038ffa5d8c20","commandsN":4644,"exit":{"1":4644},"spawnMedianMs":6.458800000000338,"commandMedianMs":42.59070000000065}]}