Skip to content

Directory symlink displayed as empty file #18963

Closed as not planned
Closed as not planned

Description

@chris-sharl

Description

Bug: Directory symlink displayed as empty file

Environment:

  • OS: macOS (darwin)
  • OpenCode version: 1.3.0
    Description:

A directory symlink pointing to ai/skills is displayed as an empty file instead of an expandable directory in the file tree.

.opencode/skills -> ai/skills

Expected behavior:

Directory symlinks should be displayed as directories and be expandable (similar to VS Code behavior).

Plugins

No response

OpenCode version

1.3.0

Steps to reproduce

  1. Create a directory symlink:
    ln -s ai/skills .opencode/skills
  2. Open the project in OpenCode
  3. Check how .opencode/skills appears in the file tree

Additional info:

  • VS Code displays the symlink correctly as a directory
  • ls -la .opencode/ output:
    drwxr-xr-x  3 user  staff   96 ... .
    drwxr-xr-x 12 user  staff  384 ... ..
    drwxr-xr-x  3 user  staff   96 ... rules
    lrwxr-xr-x  1 user  staff   12 ... skills -> ai/skills
    

Screenshot and/or share link

No response

Operating System

macOS 26.3.1

Terminal

iTerm2

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 24, 2026
  2. github-actions commented on Mar 24, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct from the above, please add a comment explaining how it differs.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions