Repository navigation
fix(studio,deploy): paused-approval recovery fails with two SDK copies - #1204
Merged
Merged
Conversation
The deployed Studio image had lousho 1.0.0-alpha.130 at the top level and 1.0.0-alpha.131 nested under lousho-studio: the deploy pinned lousho to the deploying CLI's own version while taking lousho-studio from latest. With two copies the recovery's instanceof SDKError check was false, so a session paused before a restart stayed stuck. The recovery now matches the error by its code, and the Studio image installs only lousho-studio, which brings its matching lousho. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The
implementeron the deployed Studio stayed stuck onLOUSHO_SESSION_AWAITING_APPROVALeven after #1200.Cause: the Studio image had two copies of the SDK:
lousho@1.0.0-alpha.130at the top level and1.0.0-alpha.131nested underlousho-studio.studioDockerfilepinnedloushoto the deploying CLI's own version whilelousho-studiocame fromlatest. With two copies, the recovery'serror instanceof SDKErrorcheck was false, so it gave up.Fix:
adoptOrphanedPausematches the error by itscodeandapprovalIdfields instead ofinstanceof.lousho-studio; npm brings its matchingloushoto the top level.Checked: reproduced locally with a copy of the server's
implementerdata: the message brings the pausededit_fileapproval back, and a second message gets 409. Studio server tests (152), the deploy tests and both typechecks pass.🤖 Generated with Claude Code