[Bug] Kimi RC workspace folder picker does not display symbolic link directories
Maintainers usually reply within 1 day
@markankamaransheogarat-sys is already working on this.
Since Nov 24, 2026.
- #5360 by @markankamaransheogarat-sys — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- backend
Research direction
Start in packages/agent-core-v2/src/app/hostFolderBrowser/hostFolderBrowserService.ts: find where the directory listing is built with readdir and filtered on dirent.isDirectory(), which is false for symlinks. Add a branch that stats symlink entries and includes those resolving to directories, while swallowing errors for broken links and looping paths and keeping the existing workspace-boundary checks in place. Done means symlinked directories appear in the RC New Workspace picker and a test covering regular dirs, symlinks, broken symlinks and permission errors passes.
Written by the indexing model from the issue text.
Description
What version of Kimi Code is running?
2.3.2
Which open platform/subscription were you using?
kimi code
Which model were you using?
kimi-3.1-pro
What platform is your computer?
linux
What issue are you seeing?
Title
[Bug] Kimi RC workspace folder picker does not display symbolic link directories
Description
The Kimi Code Remote Control (RC) web interface does not display symbolic link (symlink) directories in the workspace folder picker.
This prevents users from creating a new workspace through the RC web UI when the desired project directory is accessed via a symbolic link.
However, the same directory works correctly when launching Kimi Code from the terminal using its symlink path.
This suggests that the issue is related to directory enumeration or symlink handling in the RC workspace folder browser, rather than the underlying filesystem or Kimi Code's ability to access the target directory.
Environment
- Kimi Code version: 2.3.2
- Feature: Remote Control (RC) web interface
- Affected functionality: New Workspace → Folder Picker
- Filesystem: Symbolic links pointing to both directories inside and outside the current parent directory
Steps to Reproduce
-
Create a symbolic link pointing to an existing project directory.
Example:
ln -s /data/projects/my-project /home/user/projects/my-project -
Open the Kimi Code RC web interface.
-
Select New Workspace.
-
Navigate to
/home/user/projects/. -
Observe that
my-projectdoes not appear in the folder picker. -
Try the same directory from the terminal:
cd /home/user/projects/my-project kimiKimi Code starts successfully from the symlink directory.
Actual Behavior
- Symbolic link directories are missing from the RC workspace folder picker.
- Users cannot navigate into these directories through the web interface.
- Consequently, users cannot create a new workspace using a symlink path through RC.
This affects both:
- Symlinks pointing to directories within the current project tree.
- Symlinks pointing to directories outside the current project tree, such as another disk or a shared project location.
Expected Behavior
The RC workspace folder picker should:
- Detect symbolic links that point to valid directories.
- Display them as navigable directories.
- Allow users to enter these directories.
- Allow users to create workspaces using either the symbolic link path or the resolved physical path.
- Handle broken symlinks, symlink loops, and permission errors gracefully.
- Preserve existing filesystem security restrictions, especially for symlinks pointing outside permitted workspace boundaries.
Ideally, users should be able to choose between preserving the original symlink path and resolving it to the physical target path.
Possible Root Cause
The directory enumeration logic in the host folder browser may only include entries for which:
dirent.isDirectory()
returns true.
In Node.js, Dirent.isDirectory() returns false for symbolic links, even when they point to valid directories.
The directory browser should also check:
dirent.isSymbolicLink()
and use stat() to determine whether the symlink target is a directory.
Relevant source file to investigate:
packages/agent-core-v2/src/app/hostFolderBrowser/hostFolderBrowserService.ts
This is a potential root cause and should be verified against the affected release.
Suggested Fix
Update the host folder browser to recognize both regular directories and symbolic links pointing to directories.
For example:
if (dirent.isDirectory()) {
// Include regular directories
} else if (dirent.isSymbolicLink()) {
const targetStat = await stat(entryPath);
if (targetStat.isDirectory()) {
// Include symbolic link directories
}
}
The implementation should also handle broken links, permission errors, and circular symlinks without causing directory browsing to fail.
It would be useful to preserve the original symlink path while resolving the target path internally for filesystem operations, with an option to use the physical path when registering a workspace.
Workaround
Currently, a possible workaround is to launch Kimi Code directly from the symlink directory:
cd /home/user/projects/my-project
kimi
Then use /rc from the CLI to access the existing session through the Remote Control web interface.
This avoids using the RC folder picker to create the workspace, but it does not fix the underlying issue.
Request
Could the development team investigate and fix symbolic link handling in the RC workspace folder picker?
Supporting symlink directories would make RC significantly more useful for developers who organize projects using symlinks, shared directories, mounted volumes, or multiple development environments.
Thank you!
What steps can reproduce the bug?
Environment
- Kimi Code version: 2.3.2
- Feature: Kimi Code Remote Control (RC) Web UI
- Affected page: New Workspace → Folder Picker
Steps to Reproduce
-
Create a normal project directory and two symbolic links pointing to directories inside and outside the parent directory:
mkdir -p /tmp/kimi-test/projects/real-project mkdir -p /tmp/kimi-test/external-project # Symlink pointing to a directory inside the parent directory ln -s /tmp/kimi-test/projects/real-project \ /tmp/kimi-test/projects/internal-link # Symlink pointing to a directory outside the parent directory ln -s /tmp/kimi-test/external-project \ /tmp/kimi-test/projects/external-link -
Start Kimi Code and open the Remote Control (RC) web interface.
-
Click New Workspace to open the folder picker.
-
Navigate to:
/tmp/kimi-test/projects/ -
Observe that the normal directory
real-projectis visible, but the symbolic link directoriesinternal-linkandexternal-linkare missing. -
Try accessing the same directories through the terminal:
cd /tmp/kimi-test/projects/internal-link kimiKimi Code launches successfully from the symbolic link directory.
-
Repeat the test with
external-link. The same issue occurs in the RC folder picker.
Actual Result
Symbolic link directories are not displayed in the RC workspace folder picker, so users cannot navigate into them or create workspaces through the web interface.
What is the expected behavior?
Expected Result
Both internal and external symbolic links pointing to valid directories should be displayed and navigable in the folder picker. Users should be able to create workspaces using either the symlink path or the resolved physical path.
Additional information
Additional Information
This issue occurs before a workspace or session is created, so a session ID and context usage are not applicable.
Launching Kimi Code directly from a symlink directory via the CLI works correctly. Using /rc to expose the existing CLI session through the web interface is a possible workaround.
Contribution
- I am willing to submit a PR for this bug fix myself (please wait for maintainer approval in this issue first)
- Dominant language
- TypeScript
- Stars
- 8.3k
- Forks
- 1.4k
- Avg merge
- 12h 6m
- Merged PRs (30d)
- 596
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MoonshotAI/kimi-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5539 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MoonshotAI/kimi-code#5256 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MoonshotAI/kimi-code#5062 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MoonshotAI/kimi-code#5057 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MoonshotAI/kimi-code#5025 ·
Maintainers usually reply within 1 day
All issues in MoonshotAI/kimi-code
Similar issues
-
Add Alice&BotOpen
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
midnightntwrk/midnight-faucet-api#215 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NanmiCoder/cc-haha#2034 · 1 comment ·
Maintainers usually reply within 1 day
-
mobile prio:low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day