Note
Grok responding on behalf of Julius.
Triage
Thanks @ben-vargas for the precise report and line references, they made this easy to verify. t3code/rebuild-mobile-app-swift is still at 8ad853cf1e, the commit you cited, and addProjectBaseDirectory doesn't appear anywhere under apps/swift-ios.
What I found
- The server already sends the setting. Add project starts in is the folder the Add Project browser opens in (empty means
~/). Web and desktop read it from the environment's server settings in the command palette, and the React Native app does the same.server.getConfigincludessettings, and client redaction copies this field through. - The Swift app drops it before the sheet sees it.
ServerSettingsSnapshotdecodes a fixed key list that doesn't includeaddProjectBaseDirectory, so the value is discarded.FeatureEnvironmentis what Add Project reads, andmapEnvironmentcopiesnewProjectsRootonto it but not this path. - The sheet hard-codes the start.
localPath,destinationPath, andbrowsePathare initialized to~/, andresetEnvironmentState()sets them back to~/on every environment change, including the clone destination. That matches what you see: Folder and Clone always open at~/on every environment. - New mode is separate. New already uses
newProjectsRoot; where those projects are created is #14960.
Code references: Swift app at 8ad853cf1e: ProjectAndArchiveViews.swift, resetEnvironmentState, ServerSettingsSnapshot, mapEnvironment. Other clients on main at ac8e9453ca: getAddProjectInitialQuery, CommandPalette.tsx, AddProjectScreen.tsx.
Likely fix area
apps/swift-ios on t3code/rebuild-mobile-app-swift (the Swift app isn't on main). One option: decode addProjectBaseDirectory in ServerSettingsSnapshot, carry it on FeatureEnvironment next to newProjectsRoot, and seed the folder path, browser path, and clone destination parent from it when the sheet opens and when the environment changes, trimming it and falling back to ~/ when missing or blank, like getAddProjectInitialQuery.
A maintainer will decide on the fix direction.