Skip to content

cmd/sgai: bootstrap jj in embedded IDE sessions#38

Merged
ucirello merged 1 commit into
mainfrom
push-nnnzzknmlkus
Apr 1, 2026
Merged

cmd/sgai: bootstrap jj in embedded IDE sessions#38
ucirello merged 1 commit into
mainfrom
push-nnnzzknmlkus

Conversation

@ucirello

@ucirello ucirello commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • prepare workspace-scoped code-server state on the host so embedded IDE sessions can manage their own shell startup files, cache, and bootstrap hooks
  • download, verify, cache, and install a workspace-local jj binary during IDE startup while keeping the container PATH on the stock system defaults
  • surface bootstrap failures back through IDE startup and cover the bootstrap script, PATH rewrite, and early container-stop paths with Go regression tests

Test Plan

  • make absorb-sgai
  • go test ./cmd/sgai -run 'TestBuildDockerRunArgs|TestPrepareIDEWorkspaceState|TestResolveIDEStartError|TestWaitForStartedTargetReturnsBootstrapErrorImmediatelyWhenContainerStops'

@ucirello ucirello marked this pull request as ready for review April 1, 2026 20:20
@ucirello ucirello merged commit f614225 into main Apr 1, 2026
2 checks passed
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