Skip to content

Instantly share code, notes, and snippets.

@genesiscz
genesiscz / phpstan-assert-chain-bug.php
Last active March 3, 2026 22:41
PHPStan bug: @phpstan-assert narrowing broken by method chaining (sub-expression) — see #13902, #5473
<?php
declare(strict_types=1);
use function PHPStan\dumpType;
/**
* Minimal reproduction: @phpstan-assert narrowing broken by method chaining
*
* @see https://github.com/phpstan/phpstan/issues/13902
@genesiscz
genesiscz / Warp_SpinDump_redacted.txt
Created March 2, 2026 16:57
Warp spindump - 2026-03-02 (during hang, paths redacted)
This file has been truncated, but you can view the full file.
Date/Time: 2026-03-02 17:32:56.601 +0100
End time: 2026-03-02 17:42:30.545 +0100
OS Version: macOS 26.3 (Build 25D125)
Architecture: arm64e
Report Version: 67
Data Source: Stackshots
Shared Cache: 25AE5A2A-FE2A-3998-8D4E-F3C5C6E6CEB6 slid base address 0x19f5c8000, slide 0x1f5c8000 (System Primary)
Shared Cache: FADD4891-63D3-31F6-AEC1-556829563B2F slid base address 0x19a300000, slide 0x1a300000 (DriverKit)
Shared Cache: 21E21A13-985D-34F6-BFE0-1FD3FF38209F slid base address 0x7ff802908000, slide 0x2908000 (Rosetta)
@genesiscz
genesiscz / warp_freeze_log_2026-03-02.log
Last active March 2, 2026 17:07
Warp process sample - 2026-03-02 (during hang)
================================================================================
WARP FREEZE LOG — 2026-03-02
Collected: 2026-03-02 18:05 +0100 (while Warp was STILL FROZEN)
================================================================================
SUMMARY
-------
Freeze onset: 2026-03-02T16:29:08Z (last dispatched action: KeyDown)
Log silence: 2026-03-02T16:32:07Z (last telemetry ping — log writer also stalled)
Still frozen at: 2026-03-02T18:05 (+0100) = 17:05Z
@genesiscz
genesiscz / fix-agents-setup.md
Last active February 19, 2026 18:52
fix-agents.ts — Claude Code hook that fixes subagent TaskOutput flooding the parent context with raw JSONL

fix-agents.ts — Claude Code Subagent Output Fix

Fixes the bug where TaskOutput dumps raw JSONL transcripts (50k–200k+ tokens) into the parent agent's context window instead of a clean summary.

Tracked issues:

  • #17591 — regression since v2.0.77
  • #16789 — feature request
  • #17208 — proposes output_mode parameter
  • #19892 — verbose API metadata
@genesiscz
genesiscz / log-tail.log
Created February 16, 2026 22:57
Warp #8462 / #8409 diagnostics: Enter key unresponsive during Claude Code session — process samples, spindumps, logs (macOS Tahoe 26.2, M4 Pro Max, 128GB)
lolog stream --predicate 'process == "Warp" || process ==
"stable"' --info --style compact
Filtering the log data using "process == "Warp" OR process == "stable""
Timestamp Ty Process[PID:TID]
2026-02-16 23:24:10.076 I stable[86796:e656be5] [com.apple.AppKit:WindowTab] Indexing 2 items
2026-02-16 23:24:10.076 A stable[86796:e656be5] (CoreSpotlight) end-index-batch
2026-02-16 23:24:10.076 A stable[86796:e656be5] (CoreSpotlight) index-items
2026-02-16 23:24:10.362 I stable[86796:e655648] [com.apple.CoreAnalytics:client] Dropping "com.apple.libspindump.hid_response_statistics" as it isn't used in any transform (not in the config or budgeted?)
2026-02-16 23:24:14.835 Df stable[86796:64d3099] [com.apple.AppKit:StateRestoration] -[NSPersistentUIManager flushAllChanges]
2026-02-16 23:24:14.841 Df stable[86796:64d3099] [com.apple.AppKit:StateRestoration] -[NSPersistentUIManager flushAllChanges] finishing enqueued operations
# ILI 1
----------------------------------- Fallocate
fallocate - vytvoreni souboru
-l -> delka ( 150M, 1G, 1T )
fallocate -l 150M {nazev}
----------------------------------- Losetup