Skip to content

Updated findings: Hook system completely broken, but custom commands/agents work (v2.0.76) #1

@pybe

Description

@pybe

Environment

  • Claude Code Version: 2.0.76
  • Node.js: v25.2.1
  • Platform: android arm64
  • Device RAM: 10.8 GB
  • Date tested: 2026-01-07

Summary

Tested the known issues documented in this repo against a current Termux setup. Found some discrepancies with the documented limitations.

Findings

✅ Issues FIXED/Working (contrary to repo docs)

Issue Repo Status Actual Status Fix
Image reading ❌ Unavailable ✅ Working npm install @img/sharp-wasm32 --force && npm install sharp --force
WebAssembly ❌ Missing ✅ Available Built into Node.js v25
Custom slash commands ❌ Disabled ✅ Working Commands in ~/.claude/commands/ load fine
Custom subagents ❌ Not discovered ✅ Working Agents in ~/.claude/agents/ load fine

❌ Issues WORSE than documented

Issue Repo Status Actual Status
PostToolUse hooks ❌ Not firing ❌ Confirmed broken
ALL other hooks ✅ Working (per repo) ❌ Also broken

Hook System Testing Details

The repo documentation suggests only PostToolUse hooks are broken. Testing reveals ALL hooks fail to fire automatically:

Events logged in current session:
- SessionStart: 0 (should fire at session start)
- PreToolUse: 0 (should fire before each tool)
- PostToolUse: 0 (should fire after each tool)

However, manual execution works perfectly:

# Manual test - works fine
echo '{"tool_name":"Bash"}' | ~/.claude/Hooks/my-hook.ts --event-type PostToolUse
# ✅ Event logged successfully

This confirms the issue is with Claude Code's internal event dispatcher on Android/arm64, not with the hook scripts themselves.

Sharp/Image Reading Fix

The documented workaround works perfectly:

npm install @img/sharp-wasm32 --force
npm install sharp --force

After this fix:

  • Sharp loads with emscripten/WASM build
  • Image reading fully functional
  • ~12ms per image processing time

Custom Commands/Agents

Contrary to the repo documentation and GitHub issues #9435 and #11205, custom commands and agents do work on my setup:

  • ~/.claude/commands/upload-report.md → Loaded and visible in / menu
  • ~/.claude/agents/*.md → All 4 custom agents loaded and functional

This may be version-specific (v2.0.76) or configuration-dependent.

Recommendations

  1. Update the KNOWN_ISSUES.md to reflect that custom commands/agents may work in newer versions
  2. Add the sharp WASM fix to the install script
  3. Escalate the hooks issue - it's more severe than GitHub #15617 suggests (all hooks broken, not just PostToolUse)

Related GitHub Issues

  • #2248 - Sharp/Image reading (closed, workaround available)
  • #9435 - Custom slash commands (may be fixed in v2.0.76)
  • #11205 - Custom subagents (may be fixed in v2.0.76)
  • #15617 - PostToolUse hooks (actually ALL hooks broken)

Happy to provide more details or test specific scenarios. Great work on this repo - it's a valuable resource for Termux users!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions