Skip to content

Instantly share code, notes, and snippets.

View glassdimly's full-sized avatar

Jeremy John glassdimly

View GitHub Profile
@glassdimly
glassdimly / broken-session-fix.md
Last active April 1, 2026 16:20
OpenCode: fix broken sessions (whitespace text parts) — DB nuke + build from source with PR #17742

Fixing Broken Sessions

Error: messages: text content blocks must contain non-whitespace text

When resuming or forking a session fails with this error, it means a whitespace-only text part (e.g. "\n\n") was saved to the session history. The Claude API rejects whitespace-only text content blocks, so the session cannot be replayed.

Symptoms

  • opencode --session <id> or opencode run --session <id> --fork "..." fails immediately with:
@glassdimly
glassdimly / Homebrew.md
Last active December 21, 2015 18:39 — forked from alanivey/Homebrew.md

Prerequisites

Xcode

Go to http://developer.apple.com/downloads, log in with your Apple ID (free) and download the newest version of either Command Line Tools (OS X Lion) for Xcode or Command Line Tools (OS X Mountain Lion) for Xcode. Run the installer in the dmg and you'll have the LLVM compiler, make, and other build tools.

XQuartz

Install XQuarts to satisfy a library dependency for PHP.