mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[GH-ISSUE #22] Bug: Cross-tool handoff to OpenCode fails with 'Command exited with code 1' #11
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DaveW001 on GitHub (Mar 1, 2026).
Original GitHub issue: https://github.com/yigitkonur/cli-continues/issues/22
Bug Description
Cross-tool handoff TO OpenCode fails when using
continues resume <id> --in opencode. The command exits with code 1 and displays the OpenCode help menu instead of launching with the session context.Environment
npm install -g continues)Steps to Reproduce
npm install -g continuesExpected Behavior
OpenCode should launch with the session context from the source tool loaded and ready to continue.
Actual Behavior
The OpenCode help menu is displayed instead of launching with context, indicating argument parsing failure.
Error Details
When running with
--verbose, a DeprecationWarning appears:Root Cause Analysis
The issue appears to be in how
continuesspawns the OpenCode process with session context arguments. OpenCode 1.2.15+ may have different CLI argument parsing than expected by the current implementation insrc/utils/resume.js.Additional Context
continues resume <gemini-session> --in opencode❌Related Code
The issue likely stems from:
src/utils/resume.jsaround line 103 (spawn logic)Labels
bug, compatibility, opencode
@DaveW001 commented on GitHub (Mar 1, 2026):
🔬 Additional Validation Testing, Insights
I've completed some more testing of the continues tool on Windows 11 with Node.js v22.x. Here are the results:
Test Environment
✅ What Works
continues opencodeworks perfectly❌ Issues Confirmed
1. OpenCode Handoff (This Issue)
continues resume <id> --in opencodecontinues inspect --write-md+ manual import2. Gemini Native Resume (NEW BUG)
continues geminiUnknown argument: continuecontinueinstead of--resumeCompatibility Matrix
Bottom Line: The tool works great for discovery and export (read-only operations), but automatic handoff has compatibility issues with OpenCode and Gemini that need fixing.
@yigitkonur commented on GitHub (Mar 2, 2026):
hey @DaveW001 — this should be fixed in #29. turned out to be three bugs stacked on top of each other:
--promptwhich doesn't exist on itsrunsubcommand (yargs strict mode → help menu → exit 1)--continueinstead of--resumeshell: truewould you mind giving it a spin once it's merged and letting me know if it works on your end? thanks for the detailed report, made it way easier to track down.
@DaveW001 commented on GitHub (Mar 3, 2026):
Retest Results (v4.0.9)
Tested the fixes by building from GitHub main branch (v4.0.9) on Windows 11.
Test Results
Unknown argument: continueBefore (v2.3.0)
After (v4.0.9)
Thank you for the quick fix! 🎉
Note: The npm package (2.4.3) still shows v2.3.0 and doesn't include these fixes yet. Users will need to build from source until v4.0.9 is published to npm.