Repository navigation
feat(studio): W03a Studio home ~/.lousho/studio + one-time legacy import - #1133
Merged
Merged
Conversation
Studio-global state (settings, secrets, Author sessions, spend log, alerts, serve config, workspace registry) moves out of the launch project's .lousho/ into a shared Studio home: LOUSHO_STUDIO_HOME when set, else ~/.lousho/studio. Workspace-local agent data stays under each workspace root's .lousho/. - studioPaths gains defaultStudioHome() and a legacyImports path; createApp/startStudioServer accept studioHome and default to it. - LegacyImportService reads a workspace's old project-level settings/secrets, copies only what the home lacks (originals never mutated), and records per-workspace imported/skipped state in legacy-imports.json so repeat calls report handled instead of copying twice. - New authenticated routes: GET/POST /workspaces/:ws/legacy-import and POST .../skip; POST answers 409 when nothing is left to offer. - runtimeClient exposes legacyImportStatus/importLegacy/skipLegacyImport. - Tests get an isolated temp Studio home via a vitest setup file and explicit studioHome where they assert the old on-disk layout; the Playwright config gives the e2e server its own temp home. - Fixes the pre-existing no-this-alias lint error in steerGate.ts. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
LinuxDevil
force-pushed
the
fb-w03a-studio-home
branch
from
November 14, 2026 11:08
288c94b to
0788b2e
Compare
# Conflicts: # apps/agent-forge/server/index.ts
# Conflicts: # apps/agent-forge/server/app.ts
# Conflicts: # apps/agent-forge/playwright.config.ts
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
.lousho/to a shared Studio home:LOUSHO_STUDIO_HOMEwhen set (resolved absolute), else~/.lousho/studio..lousho/— unchanged.StudioPathsgainslegacyImports(<home>/legacy-imports.json);createApp/startStudioServeracceptstudioHomeand default todefaultStudioHome().LegacyImportService(new): detects a workspace's old project-level settings/secrets, copies only what the home lacks (originals never modified or deleted), and records per-workspaceimported/skippedso repeat calls report handled state instead of copying twice.GET/POST /workspaces/:ws/legacy-import,POST /workspaces/:ws/legacy-import/skip(409LOUSHO_LEGACY_IMPORT_EMPTYwhen nothing remains);runtimeClientexposeslegacyImportStatus/importLegacy/skipLegacyImportfor the W03b banner.LOUSHO_STUDIO_HOME; tests asserting the old on-disk layout pass explicitstudioHome; Playwright config gives the e2e server its own temp home.no-this-aliaslint error insteerGate.tsthat was failingnpm run lint.Test plan
npm run typecheck+typecheck:servercleannpm run lint: 0 errors (44 pre-existing warnings)fallow dupesclean; health findings are repo-baseline churn noiseTicket:
audit/forge-builder/tickets/p10-standalone/W03a-studio-home-and-legacy-import.mdGenerated with Devin