Skip to content

[Framework] assign-models.js reads from symlinked .opencode/agents instead of canonical .agents/agents #96

Closed

Description

@striderZA

Problem

utils/assign-models.js line 5 sets AGENTS_DIR = path.resolve(__dirname, "..", ".opencode", "agents"). This works only when .opencode/agents is a real resolved symlink to .agents/agents. Anywhere that symlink is inert (see the Windows symlink issue), this script silently finds 0 agent files instead of erroring — compounding that bug for anyone trying to fix model assignments on an affected machine.

Fix

Point AGENTS_DIR directly at the canonical source of truth: .agents/agents, not the .opencode symlink indirection.

Acceptance criteria

  • utils/assign-models.js reads/writes .agents/agents/*.md directly
  • Script works correctly regardless of .opencode/agents symlink state

Activity

  1. added
    bugSomething isn't working
    cross-platformCross-platform compatibility (Windows/macOS/Linux)
    framework-reviewIdentified during comprehensive framework review
    on Aug 2, 2026
  2. striderZA commented on Aug 2, 2026

    @striderZA
    OwnerAuthor

    Fixed in commit edaac99 (local, not yet pushed). Verified via node tests/agents/validate.mjs (206/206 PASS) and npm test (158/158 PASS).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcross-platformCross-platform compatibility (Windows/macOS/Linux)framework-reviewIdentified during comprehensive framework reviewpriority-mediumFix when possible

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions