Skip to content

TUI fails to start due to infinite recursion when scanning skills directories with cyclic symlinks #40349

Closed as not planned

Description

@Cai892

Description

When running opencode on Windows, the TUI screen remains completely blank. Commands like -h and -v work normally, but entering the TUI shows nothing.

Troubleshooting process:

  1. opencode --mini worked fine initially, indicating core functionality was intact.
  2. Running opencode (without --mini) resulted in a blank screen.
  3. Ran opencode --pure --print-logs --log-level DEBUG to collect detailed logs.
  4. Logs revealed thousands of duplicate skill name warnings with endlessly nested paths (e.g., vue\vue\vue\...\SKILL.md), indicating the program entered an infinite recursion loop while scanning skills directories.
  5. Deleting ~/.claude/skills and ~/.agents/skills immediately resolved the issue.

Plugins

None

OpenCode version

1.18.11

Steps to reproduce

  1. Have two skill directories in the user folder:
    • C:\Users\<username>\.claude\skills\
    • C:\Users\<username>\.agents\skills\
  2. Create cyclic symbolic links (junction points) between them (e.g., skills/vue pointing to each other).
  3. Run opencode and observe a blank TUI screen.
  4. Check logs with --log-level DEBUG and observe infinite duplicate skill name warnings with recursive paths.

Screenshot and/or share link

Log snippet:

level=WARN message="duplicate skill name" name=vue existing="C:\\Users\\cai\\.claude\\skills\\vue\\vue\\vue\\...\\SKILL.md" duplicate="C:\\Users\\cai\\.agents\\skills\\vue\\vue\\vue\\...\\SKILL.md"

The vue segment repeats hundreds of times, indicating the scanner entered an infinite loop. Full log file grew to several MB with thousands of similar warnings.

Image

Operating System

Windows 11 (10.0.26200.8655)

Terminal

Windows Terminal / PowerShell

Activity

  1. github-actions commented on Aug 4, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Oct 4, 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