Troubleshooting Guide #
This troubleshooting guide has been organized into focused categories for easier navigation and maintenance.
Categories #
TypeScript & Configuration #
Issues related to TypeScript configuration, dprint, and other development tools:
- TypeScript path warnings with dprint
- Learning Rust canonical HTML conflicts with dprint and Stylelint
- Type predicate assignment errors with complex conditional types
Testing #
Problems with test execution and test suite organization:
- Duplicate describe blocks causing missing or misattributed test output
- Test suite organization best practices
Editor Setup #
Editor installation and configuration issues:
- VS Code development container setup
- Helix editor installation on Debian/Ubuntu
- Editor-specific configuration problems
Dependencies & Package Management #
Package management and dependency resolution problems:
- pnpm workspace configuration issues
- Dependency resolution conflicts
- Pi update allowScripts warnings
Performance Optimization #
Performance-related issues and optimizations:
- Build preparation optimization strategies
- WSL performance improvements
- File system vs binary execution trade-offs
Configuration Format Issues #
Problems with configuration file formats and why TOML can be problematic:
- TOML table repetition and silent overwrites
- Configuration debugging nightmares
- Better alternatives to TOML (JSON, YAML, JSON5)
- Real-world examples of TOML-caused production incidents
Figma and browser automation #
The WebGL wall: why AI agents cannot meaningfully automate Figma through browser tools:
- Canvas content is invisible to DOM inspection and browser automation
- Figma MCP covers node structure but not comments, prototypes, or annotations
- No automated solution exists for prototype review or comment extraction
- Workarounds require human-in-the-loop screenshotting
pi-safeguard #
Security guardrail false positives and judge model selection:
pathSignalsflags every file as a system path when home is under/var/home/(Fedora, NixOS)- pi-budget-model fails to find a judge model when the active model is the latest major version
Pi auto-mode repeated Git path probes #
Why guarded reads emit missing-Git debug records for expected workspace bin paths:
- auto-mode probes every
PATHdirectory concurrently before selecting real Git - linked-worktree allowlist discovery repeats resolution for each guarded read
- broad workspace-bin
PATHinheritance is expected and needed, not the defect
Pi 0.87 extension API breakage #
Why auto-mode failed every guarded call and reviewers lost their prompt after the Pi 0.87 update:
- hand-copied transcript projection threw on the new
systemmessage role - direct provider dispatch skipped
normalizeContext(), sending no system prompt and no tools - silent
lint:typeshid the accompanying type errors
lint:types silent pass #
Why every package type check exited 0 without running tsc:
testing.tsimported thetsc-filter.tscommand-line entry- rolldown moved its
import.meta.mainguard into a shared chunk where it is false
Pi goal stale global blocker #
Retired @narumitw/pi-goal behavior and migration:
- paused or interrupted goals block unrelated built-in and custom tools
- cached package files are not active configuration
- migrate globally to repository-owned
@monochromatic-dev/pi-goal
C-Like Comment Syntax #
Issues with C-style comment syntax that affect multiple programming languages:
- Block comment nesting limitations and why
/* */comments cannot be nested - Commenting out code that contains existing block comments
- IDE comment features and best practices
- Language-specific comment syntax differences
Aquascope connectors in Firefox #
Aquascope interpreter connector lines can disappear in Firefox:
- Chromium paints generated LeaderLine SVG connectors while an observed Firefox view omits them
- Pointer dots and targets still describe the same embedded interpreter state
- Exact Firefox rendering mechanism remains unconfirmed
iOS Safari touch events #
iOS Safari claims touch-action: none support but does not reliably honor it:
pointercancelfires despitetouch-action: noneon the target element- Long-press triggers system context menu instead of application gesture
- Three-part workaround:
touchstart/touchmovepreventDefault,pointerdownpreventDefault,-webkit-touch-callout: none - Twelve years of WebKit bug 133112 and counting
Bundling #
Client-side bundling issues where Node. js code leaks into browser bundles:
node:protocol dynamic imports cause CORS errors in browser consoles- Environment guards for dual-target modules
dprint-plugin-exec #
Why the exec plugin silently does nothing and why certain tools are incompatible:
- Plugin name resolution selects only one plugin per extension;
chaining requires
associations - Include-only associations exclude extension matches for unlisted extensions
- Exec reads stdout as formatted content; in-place file modifiers (oxlint --fix) are incompatible
cacheKeyFilesHash: nullin resolved config is expected (hash is moved to globalcacheKey)
mise watch #
mise watch flag forwarding bugs and dev-mode restart suppression:
mise watchsilently drops--no-metaand-J(filter-prog) flags- Unnecessary restarts on metadata-only or same-content file writes
- Server restart generates fresh auth token, breaking client reconnection
Bash and CLI #
Bash shell and CLI tool quirks that cause confusing behavior:
2>&1 > filesplits stderr and stdout instead of merging them, producing interleaved output that misrepresents execution order- rg
--globfinds files but-lwith a content pattern does not -- content-vs-filename search confusion - Clack note formatter snapshots need newer nested
styleText()behavior - GitHub CLI implicit repository lookup invokes a PATH-shadowed Git wrapper
- GitHub REST Issue creation should be serial and paced
- GitHub REST omits its Issue title length limit
- nano-spawn timeout is not a hard child-process deadline
- OpenCodeReview does not create regular GitHub Issues from findings
CLI bin entries #
Problems with CLI tools installed via node_modules/.bin/:
- Missing shebang causes Unix to fall back to
/bin/sh, triggering ImageMagickimporthangs - Cross-platform shebang and
.cmdwrapper interaction
VSCode-Specific #
VSCode-specific troubleshooting (already exists):
- Multiple workspace instances in WSL
- Remote development setup
- VSCode extension issues
virt-manager SPICE auto resize #
Guest resize failures in a labwc session using xwayland-satellite:
spice-vdagent.serviceraces xwayland-satellite and exits against staleDISPLAY=:0- A user-unit dependency and explicit
DISPLAY=:12restore the SPICE channel - Cold-reboot and multiple-window-size verification
QEMU virtio-gpu host-memory capsets #
GPU and display capability adoption for the labwc migration VM:
- A
qemu:overrideadds a 2 GiB host-memory window, Venus, and AMD native context - libvirt's default
spawn=denyseccomp policy blocks the Venus render server - A session-driver workaround enables reboot-verified OpenGL 4.6, Venus Vulkan, native RADV, and the existing SPICE resize path
Comment-preserving structured edits in Rust #
Quirks found while choosing TOML,
JSONC,
and XML editing crates for the monorepo manager
(doc/planning/monorepo-manager-from-scratch-design.md,
"Managed file editing"):
toml_edit0.25.15 drops or moves comments on index assignment, removal, andTable::insert- taplo 0.14.0 rejects TOML 1.1 inline-table trailing commas
json-five0.3.1 drops block comments' closing slash and panics on multibyte line-comment endsjsonc-parser0.33.2 parses loose syntax by default and ignoresallow_comments: falsein the CST parser- Biome JSON crates 0.5.7 need exact dependency pins after breaking patch releases
- XML serializers write literal tabs and newlines into attribute values, which reparse as spaces
hcl-editdrops comments inside binary operationshcl-editrewrites<<-heredoc introducers and body indentationhcl-rsevaluation diverges from the HCL reference on arithmetic, object iteration order, and% 0
Hash selection and cross-machine probes #
Found while choosing meow's cache key hash and measuring it on a second machine:
gxhashneeds theaestarget feature and has no software fallback- Rust hash crates hide backends behind features and cfg, and some test suites pass while testing nothing
rustupproxies auto-install into the default home when a chained remote step dropsRUSTUP_HOME- macOS
pmset -g thermlognever returns;pmset -g thermis the one-shot form rustixconfiguresfs::fadviseout on Apple targets
Quick Links #
For common issues:
- **Slow builds? ** → Build performance
- **Test failures not showing? ** → Duplicate describe blocks
- **TypeScript path warnings? ** → dprint configuration
- **Learning Rust HTML fails dprint and Stylelint? ** → Canonical HTML source-policy conflict
- **
Cannot find namefor DOM types in a non-browser package? ** → All packages must extend config-typescript/dom - **Type errors from
node_modulesJSR packages? ** → JSR.tsfiles andskipLibCheck - **Configuration not working as expected? ** → TOML issues and alternatives
- **Figma automation not working? ** → The WebGL wall
- **CORS errors for
node:imports in browser? ** → node: protocol in bundles - **CLI hangs with ImageMagick errors? ** → Missing shebang
- **pi-safeguard blocks every file? ** → pathSignals false positive on /var/home
- **Unrelated Pi tools blocked after
/goalinterruption? ** → Retired goal package blocker - **Aquascope pointer lines missing in Firefox? ** → Aquascope connector discrepancy
- **Touch gestures broken on iPhone? ** → iOS Safari touch-action betrayal
- **dprint exec plugin not running? ** → Plugin silently does nothing
- **Dev server restarts on every save? ** → mise watch flag dropping + content-hash filter
- **Output order looks wrong with
2>&1 > file? ** → Redirect ordering splits streams - **rg missing files with spaces in paths? ** → Content-vs-filename search confusion
- **GitHub issue commands fail in the repository's Git wrapper? ** → Pass explicit repository context
- **Need to route OpenCodeReview findings into GitHub Issues? ** → Add a fail-closed adapter
- **
pi updatereintroduces@google/genai,koffi, orprotobufjs? ** → Pi update allowScripts warnings - **virt-manager console does not resize a labwc guest? ** → Order spice-vdagent after xwayland-satellite
- **labwc VM uses virgl but has no hardware Vulkan? ** → Add virtio-gpu host-memory capsets
- **Slint nested Wayland client still inherits host dark or light preference? ** → Serve a private XDG Settings portal
- **Mise inline TypeScript task reports an already-declared imported binding? ** → Keep interpolated imports in one scope owner
- **Mise inline Node task receives no declared usage arguments?
** →
Parse mise's
usage_argsvalue - **Nested Wayland quit makes hosted winit client report broken pipes? ** → Close the client before stopping the compositor
- **Escape does not reach applications inside Ghostty? ** → Distinguish keybind consumption from PTY encoding
- **Escape fails across Firefox and Ghostty after agent input automation? ** → Reset interrupted ydotool virtual-key state
- **Android
uiautomator dumpcannot get idle state while an app loads? ** → Wait for stable rendered content
Contributing #
When adding new troubleshooting content:
- Choose the most appropriate category file
- Follow the existing format with clear problem/solution structure
- Include reproduction steps and root cause analysis when possible
- Update this index file if adding new categories