Skip to content

feat(chat/vibe): "+" folder button — allocate a working directory#241

Merged
AVADSA25 merged 1 commit into
mainfrom
claude/folder-button
Jul 13, 2026
Merged

feat(chat/vibe): "+" folder button — allocate a working directory#241
AVADSA25 merged 1 commit into
mainfrom
claude/folder-button

Conversation

@AVADSA25

Copy link
Copy Markdown
Owner

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.

…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>
@AVADSA25
AVADSA25 merged commit 504b8bb into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants