Always-on Usage

Copy library / Guides / Grok Bot

Grok Bot asar recovery — tree-sitter startup fix

Title and summary are in the original language, not translated.

Subscribe

What it does
Community recovery runbook when Grok Bot desktop fails to start after a broken app.asar leaves empty tree-sitter dep stubs.
Scenarios
Code & ship
What the source covers
  • Author & original linkYes
  • What it doesYes
  • Verbatim source excerptYes
  • Screenshots / mediaYes
  • Steps / chaptersYes
  • Verbatim prompt / configNot in source
  • Results / numbersNot in source
  • Risk notesYes
  • Related entriesYes

— means the source doesn't say; we don't fill it in.

Verbatim source excerpt
Recover Grok Bot desktop when the main process dies on startup with:
RongleCat/awesome-grok-bot (GitHub) · Open original ↗

From the project README, verbatim and untranslated.

Screenshots
README
Image from the project README
Steps / points from the source
  1. Electron main sets NODE_PATH to app.asar/dist/deps and requires tree-sitter (shell parser).
  2. Native deps are shipped under app.asar.unpacked/dist/deps (real package.json + .node files).
  3. A same-day app.asar rewrite left only empty directory stubs for dist/deps/* inside the archive.
  4. Module resolution looked inside the broken asar path and failed, even though unpacked packages were still on disk.
  5. If dist/deps/tree-sitter/package.json is already in the current app.asar with a size above zero, the script exits and leaves the file alone.
  6. A backup is eligible only when its header has that same file. A larger file is not preferred just because it is larger.
  7. Names containing broken are never chosen, including app.asar.broken-before-restore-*.
  8. -CheckOnly prints the result and changes nothing. Exit 0 means healthy. Exit 2 means the index is missing tree-sitter.

Verbatim from the source, untranslated.

Prompt

The source does not include a prompt you can copy verbatim.

How to copy
  1. Open the repo: github.com/Pitchfork-and-Torch/grok-bot-asar-recovery ↗
  2. Read the README, send the repo link to your Bot and have it reproduce it
  3. Get it working small first, then add a routine
Risks and limits
  • Involves payments, orders or bookings: let the bot draft first and act only after you confirm
  • The author's result may not reproduce for you; the original post is the reference
Usage estimate
Estimate with the metal calculator