Skip to content

Replace the broken folder picker with a console hint - #81

Merged
molefrog merged 1 commit into
mainfrom
claude/remove-use-existing-folder-g4xtgq
Aug 6, 2026
Merged

Replace the broken folder picker with a console hint#81
molefrog merged 1 commit into
mainfrom
claude/remove-use-existing-folder-g4xtgq

Conversation

@molefrog

@molefrog molefrog commented Aug 6, 2026

Copy link
Copy Markdown
Owner

"Use existing folder" opened a native macOS-only picker over an osascript
call, which cannot work when moi is served to another device — in the web
UI it was simply broken. The button stays as the signpost, permanently
inert, with a tooltip pointing at moi init in the console.

Removes the whole picker path: the /api/workspaces/choose-folder route
and its same-origin guard, the canChooseFolder setup flag, the
useChooseFolder hook, the create dialog's import branch, and the
single-folder discovery helper that only fed the picker.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01LWqAg4T2q7n46i7jdo7nNY

"Use existing folder" opened a native macOS-only picker over an osascript
call, which cannot work when moi is served to another device — in the web
UI it was simply broken. The button stays as the signpost, permanently
inert, with a tooltip pointing at `moi init` in the console.

Removes the whole picker path: the `/api/workspaces/choose-folder` route
and its same-origin guard, the `canChooseFolder` setup flag, the
`useChooseFolder` hook, the create dialog's import branch, and the
single-folder discovery helper that only fed the picker.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LWqAg4T2q7n46i7jdo7nNY

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9844ab16cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<span className="text-center">
Not supported yet — run{' '}
<code className="rounded-xs bg-accent px-1 py-0.5 font-mono whitespace-nowrap">
moi init

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve provider selection in the console fallback

When a user wants to import an existing folder with Codex but the folder is absent from discovery—for example, Codex has never run there or its session falls outside the 400-file scan—this instruction registers the wrong harness. The init command in server/cli.ts provisions and registers every non-OpenClaw target as claude-code, while the removed import flow allowed the user to select codex; it also cannot be corrected by rerunning initialization because registerWorkspace returns an existing entry without updating its type. Provide a provider-aware CLI option or retain another manual import path instead of directing all users to plain moi init.

Useful? React with 👍 / 👎.

@molefrog
molefrog merged commit 9ef1a19 into main Aug 6, 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