Repository navigation
fix(walkthrough): wait for the walkthrough to be ready before completing open_walkthrough - #437
Merged
Conversation
…ing open_walkthrough
Contributor
chriswritescode-dev
deleted the
fix/walkthrough-tool-waits-until-ready
branch
October 16, 2026 21:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
open_walkthroughreturned as soon as generation started. The desktop auto-open fires when that tool call completes, so the panel opened empty while the walkthrough was still building, and nothing happened when it finished. On mobile the "Open walkthrough" button appeared before there was anything to open.The tool call now completes only once the walkthrough is ready, so the existing frontend behavior lines up with completion without frontend changes.
Tool plugin (
services/opencode-manager-tool-plugin.ts)GET /change-walkthroughs/:sessionId?source=<key>every 2 seconds whilegeneratingis true.walkthroughSourceKey, embedded in the generated plugin source rather than duplicated.Trade-off (accepted)
Type of Change
Checklist
pnpm lintpasses locallypnpm typecheckpasses locallyTests
staged,branch:main), failure, cancellation, abort while waiting, description.Validation
test/services/opencode-manager-tool-plugin.test.ts: 42 passed.Summary by CodeRabbit