Skip to content

refactor: avoid duplicate cwd resolution in runSingleAgent #1

Description

@Wolido

In runSingleAgent, the effective working directory is computed twice:

  1. When resolving relative skill paths (baseDir = cwd ?? defaultCwd).
  2. When computing the isolated subagent session directory (effectiveCwd = cwd ?? defaultCwd).

These two expressions are identical and should be unified into a single effectiveCwd variable declared once and reused in both places.

This is a pure maintainability cleanup with no functional change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions