Skip to content

Fix OpenCode 2.0.3 transcript and mobile stream compatibility - #15

Merged
eivindjonassen merged 2 commits into
mainfrom
fix/opencode-2.0.3-mobile-compatibility
Sep 14, 2026
Merged

eivindjonassen merged 2 commits into
mainfrom
fix/opencode-2.0.3-mobile-compatibility

Conversation

@eivindjonassen

Copy link
Copy Markdown
Member

Summary

  • Upgrade the adapter to the generated @opencode/client 2.0.3 package.
  • Accept and render idle transcript messages for succeeded, failed, and interrupted turns. Refresh the owning session's transcript on session.idle.
  • Add a Promise.withResolvers fallback for mobile runtimes. The new client's event iterator otherwise throws immediately and triggers a reconnect loop.
  • Add regression tests and update the API contract and compatibility documentation.

Verification

  • pnpm check passed, including 68 adapter tests, 305 mobile tests, and iOS and Android Hermes exports.
  • Expo Doctor passed all 18 checks.
  • Published both fixes to the iOS and Android preview channels for runtime 0.1.4.
  • The user confirmed restored connectivity on the physical iPhone. Android device verification and a transcript-specific device retest remain pending.

eivindjonassen and others added 2 commits September 14, 2026 22:53
Upgrade the generated client, accept and render idle transcript messages, and reconcile transcripts when sessions idle. Add a Promise.withResolvers fallback for mobile runtimes to prevent immediate event-stream failures and reconnect loops.

Add regression coverage and record iOS and Android preview publication plus confirmed iPhone connection recovery. Verified pnpm check and Expo Doctor.
@eivindjonassen
eivindjonassen merged commit 98b6284 into main Sep 14, 2026
2 checks passed
@eivindjonassen
eivindjonassen deleted the fix/opencode-2.0.3-mobile-compatibility branch September 14, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant