You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zmx aborts with HyperlinkSetOutOfMemory during long Codex sessions #182
Hey there! Iâm using zmx through supacode, and several codex sessions disappeared mid-work today. The supacode side effect was that the terminal tabs closed, but the logs point to zmx itself aborting after HyperlinkSetOutOfMemory warnings.
This looks like it could be related to OSC 8 / terminal hyperlink handling, see #171.
Right after that, the global zmx log showed the affected sessions being cleaned up as stale:
stale socket found, cleaning up session=supa-e56597be-...
stale socket found, cleaning up session=supa-d2fd4263-...
Expected
zmx should not abort when the terminal state tracker hits hyperlink capacity / OSC 8-heavy output.
If hyperlink tracking fails, zmx should either ignore/strip those sequences for its internal state tracking or recover gracefully, while keeping the session alive for attached clients.
Alright I'm trying to figure out what's going on. The fact that this sends stream errors seems to indicate an upstream issue. Following the breadcrumbs:
There appears to be some precedence for handling this during certain operations to increase the capacity, but it looks like this code path is simply bubbling the error up.
Activity
neurosnap commentedon Jul 3, 2026
Alright I'm trying to figure out what's going on. The fact that this sends stream errors seems to indicate an upstream issue. Following the breadcrumbs:
There appears to be some precedence for handling this during certain operations to increase the capacity, but it looks like this code path is simply bubbling the error up.
I tried had an LLM try to simulate the error in a test case: neurosnap/ghostty@55edf81
I don't fully understand the internals of ghostty here but it looks like there's an edge case with hyperlink capacity and page boundaries?
neurosnap commentedon Jul 3, 2026
Created ghostty discussion: ghostty-org/ghostty#13160
neurosnap commentedon Jul 20, 2026
Upstream fix: ghostty-org/ghostty#13394
fix: HyperlinksetOutOfMemory issue