Skip to content

fix(studio,deploy): paused-approval recovery fails with two SDK copies - #1204

Merged
LinuxDevil merged 1 commit into
mainfrom
fix/studio-paused-approval-recovery
Nov 18, 2026
Merged

LinuxDevil merged 1 commit into
mainfrom
fix/studio-paused-approval-recovery

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

The implementer on the deployed Studio stayed stuck on LOUSHO_SESSION_AWAITING_APPROVAL even after #1200.

Cause: the Studio image had two copies of the SDK: lousho@1.0.0-alpha.130 at the top level and 1.0.0-alpha.131 nested under lousho-studio. studioDockerfile pinned lousho to the deploying CLI's own version while lousho-studio came from latest. With two copies, the recovery's error instanceof SDKError check was false, so it gave up.

Fix:

  • adoptOrphanedPause matches the error by its code and approvalId fields instead of instanceof.
  • The Studio image installs only lousho-studio; npm brings its matching lousho to the top level.

Checked: reproduced locally with a copy of the server's implementer data: the message brings the paused edit_file approval back, and a second message gets 409. Studio server tests (152), the deploy tests and both typechecks pass.

🤖 Generated with Claude Code

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>
@LinuxDevil
LinuxDevil merged commit d87c8bf into main Nov 18, 2026
6 checks passed
@LinuxDevil
LinuxDevil deleted the fix/studio-paused-approval-recovery branch November 18, 2026 12:47
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