fix(tui): preserve resolved server directory - #45354
Merged
Merged
Conversation
jlongster
force-pushed
the
remote-directory
branch
from
August 26, 2026 19:15
9911abc to
d43539e
Compare
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.
Issue for this PR
User-reported regression: connecting the TUI to a remote server from a directory that does not exist on that server renders the UI but leaves prompt submission unusable. No linked issue.
Type of change
What does this PR do?
Startup already tries the client cwd and falls back to the server's default directory, but discarded that result when initializing the data provider. Pass the resolved directory into the provider and use it for the new-session command and new-tab action. Client-local filesystem paths remain unchanged.
How did you verify your code works?
v2.git diff --checkpassed. Targeted lint completed with no errors.bun typecheckfrompackages/tuipasses after rebasing onto currentv2; the earlier upstream type error has been fixed.Screenshots / recordings
No layout changes. The regression tests exercise the production TUI with its test renderer and an HTTP fixture server.
Checklist