Open
Conversation
- Add a working directory row to the empty chat state so users can change directory without going to Overview first; tapping opens the directory picker as a sheet and immediately refreshes session suggestions - Rewrite DirectoryPickerView with hierarchical drill-down navigation, session counts per directory, and a dedicated Worktrees section listing ~/.wisp/worktrees entries (for cross-device resume) - Remove spriteUsesWorktrees: session suggestions now show for any non-worktree chat regardless of other chats on the same sprite, enabling resume from a git repo root - Add ChatViewModel.changeWorkingDirectory which persists the change and re-fetches remote sessions; extract clearRemoteSessions helper and fix selectRemoteSession not resetting hasAnyRemoteSessions - Add String.displayPath extension to consolidate the /home/sprite → ~/ conversion used across three views Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
5 tasks
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
DirectoryPickerViewnow drills down into subdirectories with a "Use" button to confirm selection; worktrees under~/.wisp/worktrees/appear in a dedicated section with{repo} / {branch}display names and session counts; worktrees load once on appear rather than re-scanning on every navigation stepspriteUsesWorktrees;usesWorktreeis now justworktreePath != nil, so non-worktree chats on a sprite that also has worktree chats correctly show their session suggestions (e.g. resuming from a git repo root)changeWorkingDirectoryonChatViewModel— persists the per-chat directory to SwiftData and re-fetches remote sessions; extractedclearRemoteSessions()helper and fixedselectRemoteSessionnot resettinghasAnyRemoteSessionsString.displayPathextension — consolidates the/home/sprite→~/conversion previously duplicated acrossDirectoryPickerView,ChatView, andSpriteOverviewViewTest plan
currentPath; "Parent directory" row goes up; stops at/~/.wisp/worktrees/has entries; shows{repo} / {branch}with session count🤖 Generated with Claude Code