feat(chat/vibe): "+" folder button — allocate a working directory#241
Merged
Conversation
…a chat
Mickael asked for a folder button next to Send (like Claude Code's working dir)
and saw nothing shipped — this ships it.
- New "+" folder button immediately left of Send in BOTH Chat (codec_chat.html)
and Vibe (codec_vibe.html). Clicking it opens the native macOS folder chooser
via a new POST /api/pick-folder endpoint (osascript "choose folder"; returns
{ok,path} or {cancelled}), stores the path per-browser (localStorage), and
shows it as a removable chip above the input.
- The chosen folder is sent as `workdir` with every message. routes/chat.py folds
it into the system prompt ("WORKING FOLDER: <path> — save/read relative files
here"), so file operations resolve there without rewiring every file skill.
Verified: /api/pick-folder registered; both pages' JS parse (node --check); tags
balanced; chat route tests pass; ruff clean. UI render confirmed after
merge+sync (live dashboard runs from main).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Adds the folder-picker button next to Send in Chat and Vibe (native macOS folder chooser via POST /api/pick-folder), a removable chip, and threads the chosen into the system prompt so file ops resolve there. Both pages' JS parse, tags balanced, chat tests pass.