[Bug] iOS companion app hangs after context compaction due to missing re-sync event
Bug Description
iOS companion app hangs after a context compaction. Repro: with the iOS app connected to a session whose host is the macOS Terminal, a compact (manual /compact OR harness auto-compact) leaves the iOS app stuck on the progress throbber, ignoring all further input. The macOS Terminal host keeps running fine. Typing any input directly into the macOS Terminal "kicks" the session and output then resumes in BOTH Terminal and iOS. Diagnosis: compact rewrites the conversation/context wholesale; the iOS remote client never receives the re-sync event, so it waits on a state that already changed. Trigger is the compact event itself, not who invoked it — so auto-compact strands an iOS-only session the same way (no Terminal available to recover). Repeatable; observed multiple times.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.167
- Feedback ID: 22ffb346-d437-4624-af66-66cf8126775c
Errors
[{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T16:47:24.736Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T16:51:54.307Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T17:31:40.186Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T17:32:37.041Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T18:12:29.799Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T18:44:19.495Z"},{"error":"TypeError: undefined is not an object (evaluating 'H.replace')\n at m1K (/$bunfs/root/src/entrypoints/cli.js:3127:2218)\n at buildExecCommand (/$bunfs/root/src/entrypoints/cli.js:3127:3483)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-06-06T19:03:57.649Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗